From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5068 invoked from network); 16 Jun 1998 17:21:25 -0000 Received: from cri.ens-lyon.fr (140.77.1.32) by mail2.redhat.com with SMTP; 16 Jun 1998 17:21:25 -0000 Received: from sauternes.ens-lyon.fr (root@sauternes [140.77.11.130]) by cri.ens-lyon.fr (8.8.5/8.8.1) with ESMTP id TAA20727; Tue, 16 Jun 1998 19:21:02 +0200 (MET DST) Received: by sauternes.ens-lyon.fr via sendmail with stdio id (Debian Smail3.2.0.101) for becker@cesdis.gsfc.nasa.gov; Tue, 16 Jun 1998 19:21:01 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 16 Jun 1998 19:20:59 +0200 (CEST) To: axp-list@redhat.com, debian-alpha@lists.debian.org, Donald Becker Cc: Laurent Forat , Pierre Raynaud , Loic.Prylli@ens-lyon.fr Subject: alpha 2.0.34 kernel patch and TULIP driver - a solution In-Reply-To: From: Kristoffer.Rose@ens-lyon.fr References: <199806160057.UAA01096@pentium.localnet> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13702.40651.866702.173580@sauternes.ens-lyon.fr> Reply-To: Kristoffer.Rose@ens-lyon.fr Dear All, I've bothered everybody with my troubles with my PWS500a (Miata) and the build-in tulip interface (and any kernel). Now I'd like to tell you what solution finally worked for me, thanks to Loic.Prylli@ENS-Lyon.FR, as it manifests itself for the linux-2.0.34. CONFIGURATION: PWS500a (Miata) with tulip driver for (from /proc/pci): Bus 0, device 3, function 0: Ethernet controller: DEC DC21142 (rev 48). Medium devsel. Fast back-to-back capable. IRQ 24. Master Capable. Latency=32. Min Gnt=20.Max Lat=40. I/O at 0x8800. Non-prefetchable 32 bit memory at 0xb000000. PROBLEM: the tulip driver would not work...with 2.0.33 (and 2.0.103) it gave me lots of transmit/receive failed errors and chose a bad interface after a while, getting completely stuck. SOLUTION: Patch the driver such that (it compiles and) insist on using the user-requested interface. It is beyond me why on earth would it ever not do that - auto-detection should be an option, not forced! INSTRUCTIONS for Linux 2.0.34: 1. Get the patched kernel sources as usual: (or get a pristine linux-2.0.34 and apply alpha-patches-2.0.34-0.1.gz from the same place yourself). 2. Get the miata-patched tulip.c (based on version 0.88) from (and name it drivers/net/tulip.c and compile as you usually do, with tulip as a module). 3. Experiment with different "options=n" arguments when loading the tulip driver, and with different ports and cables to your hub... For me one port (of two) worked on the hub, with one cable (of three), and with the module load command insmod tulip options=11 The hub is a plain 10baseT hub. Cheers, Kristoffer Encl: Loic's patch to tulip 0.88 making it respect user options more than just for a single try. =========================================================================== --- tulip.c-0.88 Mon May 25 04:04:01 1998 +++ tulip.c-0.88+loic Sun Jun 14 01:47:14 1998 @@ -1336,11 +1336,14 @@ } /* Set the timer to switch to check for link beat and perhaps switch to an alternate media type. */ +if (tp->medialock) printk("Loic's patch active: remaining with user media type.\n"); +else { init_timer(&tp->timer); tp->timer.expires = RUN_AT(5*HZ); tp->timer.data = (unsigned long)dev; tp->timer.function = tulip_tbl[tp->chip_id].media_timer; add_timer(&tp->timer); +} return 0; } =========================================================================== Kristoffer Høgsbro Rose, Ph.D., prof.associé Laboratoire de l'Informatique du Parallélisme équipe PLUME, bureau LR5-026 Ecole Normale Supérieure de Lyon; 46, Allée d'Italie; F-69364 Lyon 07 cedex phone: +33(0)4 7272 8642; fax:...8080