Subject: kern/22813: tlp driver reports wrong error for 21041
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlelstv@serpens.de>
List: netbsd-bugs
Date: 09/16/2003 13:09:08
>Number:         22813
>Category:       kern
>Synopsis:       tlp driver reports wrong error for 21041
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 16 11:10:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael van Elst
>Release:        NetBSD 1.6.1_STABLE
>Organization:
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."
>Environment:
	
	
System: NetBSD fud 1.6.1_STABLE NetBSD 1.6.1_STABLE (FUD) #4: Mon Sep 15 14:42:36 MEST 2003     src@fud:/d/0/src/sys/arch/i386/compile/FUD i386
Architecture: i386
Machine: i386
>Description:
When a DECchip 21041 based card isn't granted bus requests before the
internal receive FIFO fills up, it will report this in the buffer
descriptor in bit 0. Bit 3 of the descriptor is undefined.

Newer chips, like the 21143 do not use bit 0, it is always zero,
but they do use bit 3 to report MII errors.

The error bits in the descriptor are reported in /sys/dev/ic/tulip.c
line 1277ff.

>How-To-Repeat:
send lots of data to a 21041 based Ethernet card on a slow motherboard
and watch the kernel report MII errors instead of overflows.

>Fix:
Make the error printing dependent on sc->sc_chip.

>Release-Note:
>Audit-Trail:
>Unformatted: