From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9611150115.AA01150@feral.com> Date: Thu, 14 Nov 96 17:15:35 PST From: Matthew Jacob Subject: Re: 2.0.24: Tulip.c still not working I've mailed Linus and others about this before, but I get no response. There are two issues that confuse things, apparently. First, the multicast fix (code after "Now add this frame") seems to make the auto media detect code get invoked all over again and causes things to be broken. Second, v2.1.8 and later seem to have troubles (at least on my UDB)- but this isn't directly related to the tulip driver- this happens even with the de4x5 driver on. I have a patch against the 2.0.24/2.1.7 tulip driver that fixes some issues (mostly for correctly supporting the PCI stuff for the Znyx ether arrays and some of the SMC card support), but I've had to do the gross thing about taking the multicast patch and enclosing it within #ifndef __alpha__. I will look at solving this when I have time. I recommend you try this commenting out as well. If anyone else knows what gives, enlighten us. ----- Begin Included Message ----- >From owner-linux-kernel-outgoing@vger.rutgers.edu Thu Nov 14 17:06:33 1996 Return-Path: Date: Fri, 15 Nov 1996 00:54:43 +0100 (MET) From: Fritz Ganter Reply-To: ganter@fvkma.tu-graz.ac.at To: torvalds@cs.helsinki.fi, xp-list@redhat.com, linux-kernel@vger.rutgers.edu Subject: 2.0.25: Tulip.c still not working Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-kernel@vger.rutgers.edu Content-Length: 2453 Hello all! I still get not running my smc8432 on an Alpha Cabriolet. This is since the patch in 2.0.24, the patch in 25 didn't fix the problem. After switching to runlevel 3 (I think ifconfig is called) I get following: Nov 15 00:33:37 jassi kernel: eth0: enabling BNC port. Nov 15 00:34:16 jassi last message repeated 9 times Nov 15 00:34:56 jassi last message repeated 4 times The device never comes up, if have to do a "ifconfig eth0 down" to get the kernel quiet. The patch with disables my card is: --- tulip.c Fri Nov 15 00:36:36 1996 +++ tulip.c.25 Thu Nov 14 23:56:03 1996 @@ -37,7 +37,7 @@ /* #define TULIP_FULL_DUPLEX 1 */ /* Define to fix port. */ -#define TULIP_FIX_PORT 1 +#define TULIP_FIX_PORT 1 /* Define to probe only first detected device */ /*#define TULIP_MAX_CARDS 1*/ @@ -1133,6 +1133,25 @@ } while (++i < 15); /* Now add this frame to the Tx list. */ + { + unsigned long flags; + unsigned int entry; + + save_flags(flags); cli(); + entry = tp->cur_tx++ % TX_RING_SIZE; + tp->dirty_tx++; + restore_flags(flags); + + tp->tx_skbuff[entry] = 0; + /* Put the setup frame on the Tx list. */ + tp->tx_ring[entry].length = 192 | + (entry == TX_RING_SIZE-1 ? 0x0a000000 : 0x08000000); + tp->tx_ring[entry].buffer1 = virt_to_bus((char *)tp->setup_frame); + tp->tx_ring[entry].buffer2 = 0; + tp->tx_ring[entry].status = TRING_OWN; + /* Trigger an immediate transmit demand. */ + tio_write(TPOLL_TRIGGER, CSR1); + } } } Ignore the diff for TULIP_FIX_PORT 1. Here is my /proc/pci for the card: Bus 0, device 5, function 0: Ethernet controller: DEC DC21041 (rev 17). Medium devsel. Fast back-to-back capable. IRQ 18. Master Capable. Latency=32. I/O at 0xb800. Non-prefetchable 32 bit memory at 0x4000000. and the boot message: Nov 15 00:33:37 jassi kernel: tulip.c:v0.10 8/11/95 becker@cesdis.gsfc.nasa.gov Nov 15 00:33:37 jassi kernel: +0.72 4/17/96 http://www.dsl.tutics.tut.ac.jp/~linux/tulip Nov 15 00:33:37 jassi kernel: eth0: smc8432 (DEC 21041 Tulip) at 0xb800, 00:00:c0:7f:b6:ce, IRQ 18 I think this should really be fixed! Fritz "who dances with the Linux" Ganter. ganter@fvkma.tu-graz.ac.at WWW: http://fvkma.tu-graz.ac.at/ganter ganter@quant-x.com EDV-Consulting F.Ganter Grazerstr. 26a,A-8045 Graz support@quant-x.com Member of the Quant-X Group: Alpha based Systems running Linux ----- End Included Message ----- -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com