Re: sunhme problem : transmit timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

It looks like the problem is solved using the udelay(1) patch. At least I cannot reproduce it anymore (so far...).

cheers,

   	Vincent Guffens


On Fri, Apr 18, 2003 at 09:06:45PM +0200, Vincent Guffens wrote:
> Dear list,
> 
> I have installed Debian 3.0 on an UltraSparc II. The sunhme driver is used for the ethernet interface.
> 
> I have the following problem : when the network is used, the following error message appears in the kernel logs :
> 
> NETDEV WATCHDOG : eth0 : transmit timeout
> 
> eth0 : transmit timed out, resetting
> eth0 : Happy Status 03030000 TX[000003ff:00000301]
> eth0 : link is up using internal transceiver at 100 Mb/s, Full Duplex
> 
> However, there is no way to have the card working again. After a ifdown/ifup, the message will appear again 
> in the log and ifup won't succeed.
> 
> 
> the linux version is 2.4.18
> the drviver version is : 1.99
> 
> I have tried the patch above that was proposed to solve this problem (the patch doesn't apply on 2.4.18 but I have patched 
> it by hand)
> 
> I can provide more information and try other patches if needed,
> 
> Thanks in advance for your help,
> 
> --- drivers/net/sunhme.c.~1~ Sun Aug 11 18:37:34 2002
> +++ drivers/net/sunhme.c Sun Aug 11 18:38:17 2002
> @@ -1640,6 +1640,7 @@
>   HMD((", enable global interrupts, "));
>   hme_write32(hp, gregs + GREG_IMASK,
>        (GREG_IMASK_GOTFRAME | GREG_IMASK_RCNTEXP |
> +       GREG_IMASK_TXALL |
>         GREG_IMASK_SENTFRAME | GREG_IMASK_TXPERR));
>  
>   /* Set the transmit ring buffer size. */
> @@ -2125,8 +2126,8 @@
>    happy_meal_mif_interrupt(hp);
>   }
>  
> - if (happy_status & GREG_STAT_TXALL) {
> -  HMD(("TXALL "));
> + if (happy_status & GREG_STAT_HOSTTOTX) {
> +  HMD(("HOSTTOTX "));
>    happy_meal_tx(hp);
>   }
>  
> @@ -2155,7 +2156,7 @@
>  
>    if (!(happy_status & (GREG_STAT_ERRORS |
>            GREG_STAT_MIFIRQ |
> -          GREG_STAT_TXALL |
> +          GREG_STAT_HOSTTOTX |
>            GREG_STAT_RXTOHOST)))
>     continue;
>  
> @@ -2172,8 +2173,8 @@
>     happy_meal_mif_interrupt(hp);
>    }
>  
> -  if (happy_status & GREG_STAT_TXALL) {
> -   HMD(("TXALL "));
> +  if (happy_status & GREG_STAT_HOSTTOTX) {
> +   HMD(("HOSTTOTX "));
>     happy_meal_tx(hp);
>    }
> 
> 
> 
>  
> 
> 
> -- 
> 				Vincent Guffens, UCL/CESAME
> 				010/ 47 80 30 -- Euler a017
> 				http://www.auto.ucl.ac.be/~guffens	
> 
> Value your freedom, or you will lose it, teaches history. 
> "Don't bother us with politics," respond those who don't want to learn.
> 	      	-- Richard M. Stallman
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
				Vincent Guffens, UCL/CESAME
				010/ 47 80 30 -- Euler a017
				http://www.auto.ucl.ac.be/~guffens	

Value your freedom, or you will lose it, teaches history. 
"Don't bother us with politics," respond those who don't want to learn.
	      	-- Richard M. Stallman
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux