summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-11-24 17:46:58 +0000
committeryongari <yongari@FreeBSD.org>2009-11-24 17:46:58 +0000
commita25c3915deae5a8049a07aa2ddd20c29b98b6a7e (patch)
treeaf534648556a7ceef9604dd64bb58697b05a41c1 /sys/dev/bge
parentc0320571458261fb0e2ea728e41b96476f7b791a (diff)
downloadFreeBSD-src-a25c3915deae5a8049a07aa2ddd20c29b98b6a7e.zip
FreeBSD-src-a25c3915deae5a8049a07aa2ddd20c29b98b6a7e.tar.gz
BGE_FLAG_40BIT_BUG should be set before creating DMA tags.
Pointy hat to: yongari
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index be6c52d..e6a4844 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -2665,6 +2665,13 @@ bge_attach(device_t dev)
}
/*
+ * The 40bit DMA bug applies to the 5714/5715 controllers and is
+ * not actually a MAC controller bug but an issue with the embedded
+ * PCIe to PCI-X bridge in the device. Use 40bit DMA workaround.
+ */
+ if (BGE_IS_5714_FAMILY(sc) && (sc->bge_flags & BGE_FLAG_PCIX))
+ sc->bge_flags |= BGE_FLAG_40BIT_BUG;
+ /*
* Allocate the interrupt, using MSI if possible. These devices
* support 8 MSI messages, but only the first one is used in
* normal operation.
@@ -2798,13 +2805,6 @@ bge_attach(device_t dev)
#ifdef DEVICE_POLLING
ifp->if_capabilities |= IFCAP_POLLING;
#endif
- /*
- * The 40bit DMA bug applies to the 5714/5715 controllers and is
- * not actually a MAC controller bug but an issue with the embedded
- * PCIe to PCI-X bridge in the device. Use 40bit DMA workaround.
- */
- if (BGE_IS_5714_FAMILY(sc) && (sc->bge_flags & BGE_FLAG_PCIX))
- sc->bge_flags |= BGE_FLAG_40BIT_BUG;
/*
* 5700 B0 chips do not support checksumming correctly due
OpenPOWER on IntegriCloud