From 15d896acbb2c1a9b347ffa8d6e887dbd706dcfc3 Mon Sep 17 00:00:00 2001 From: jdp Date: Fri, 15 Dec 2006 00:27:06 +0000 Subject: Disable bge MSI support for now. A couple of people warned me that there are problems with it on several revisions of this chip. I'll re-enable it after I've sorted out which chip revisions work and which don't. --- sys/dev/bge/if_bge.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 4022b0b..378f1c2 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -114,6 +114,12 @@ __FBSDID("$FreeBSD$"); #define BGE_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP) #define ETHER_MIN_NOPAD (ETHER_MIN_LEN - ETHER_CRC_LEN) /* i.e., 60 */ +/* + * Disable the use of MSI until we sort out on which chip revisions support + * it properly. + */ +#define BGE_DISABLE_MSI 1 + MODULE_DEPEND(bge, pci, 1, 1, 1); MODULE_DEPEND(bge, ether, 1, 1, 1); MODULE_DEPEND(bge, miibus, 1, 1, 1); @@ -2143,6 +2149,9 @@ bge_attach(device_t dev) */ if ((msicount = pci_msi_count(dev)) > 1) msicount = 1; +#ifdef BGE_DISABLE_MSI + msicount = 0; +#endif if (msicount == 1 && pci_alloc_msi(dev, &msicount) == 0) { rid = 1; sc->bge_flags |= BGE_FLAG_MSI; -- cgit v1.1