Subject: Re: kern/37438
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Mihai Chelaru <kefren@ngnetworks.ro>
List: netbsd-bugs
Date: 12/14/2007 10:05:03
The following reply was made to PR kern/37438; it has been noted by GNATS.
From: Mihai Chelaru <kefren@ngnetworks.ro>
To: gnats-bugs@NetBSD.org
Cc: jakllsch@siwenna.wlan.kollasch.net
Subject: Re: kern/37438
Date: Fri, 14 Dec 2007 12:02:02 +0200
Hi,
Regarding this PR, did you try a simple patch like the one below ? I'm using
it here with 8139B cards and watchdog timeout messages are gone. I don't know
if/how this changes the behaviour of other card types.
Index: if_rtk_pci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/if_rtk_pci.c,v
retrieving revision 1.30.2.1
diff -u -r1.30.2.1 if_rtk_pci.c
--- if_rtk_pci.c 16 May 2007 20:44:12 -0000 1.30.2.1
+++ if_rtk_pci.c 14 Dec 2007 09:56:30 -0000
@@ -211,6 +211,17 @@
}
/*
+ * Bus mastering
+ */
+ pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+ pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) |
+ PCI_COMMAND_MASTER_ENABLE);
+
+ if ((pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) &
+ PCI_COMMAND_MASTER_ENABLE) == 0)
+ aprint_error("Cannot enable bus mastering\n");
+
+ /*
* Map control/status registers.
*/
#ifdef RTK_USEIOSPACE
--
Mihai