Subject: kern/37438: rtk_pci, bus mastering, watchdog timeout
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <jakllsch@kollasch.net>
List: netbsd-bugs
Date: 11/26/2007 19:55:00
>Number:         37438
>Category:       kern
>Synopsis:       rtk_pci does not ensure bus-mastering is on
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 26 19:55:00 +0000 2007
>Originator:     jakllsch@kollasch.net
>Release:        NetBSD 4.99.34
>Organization:
	
>Environment:
System: NetBSD siwenna.wlan.kollasch.net 4.99.34 NetBSD 4.99.34 (SIWENNA) #13: Thu Nov 15 21:10:37 UTC 2007 root@siwenna.wlan.kollasch.net:/usr/src/sys/arch/i386/compile/SIWENNA i386
Architecture: i386
Machine: i386
>Description:

if_rtk_pci.c does not enable bus mastering on the controller.
If the machine's firmware did not turn this on, the interface
does not work.  "rtkX: watchdog timeout" messages result.

>How-To-Repeat:

Try to use a RTL8139B-based network card on a machine
with firmware that does not enable PCI bus-mastering.

>Fix:

This has been done in other drivers, such as in if_ath_pci.c.