svn commit: r288108 - head/sys/arm64/cavium
Ed Maste
emaste at FreeBSD.org
Tue Sep 22 12:56:35 UTC 2015
Author: emaste
Date: Tue Sep 22 12:56:34 2015
New Revision: 288108
URL: https://svnweb.freebsd.org/changeset/base/288108
Log:
arm64 ThunderX PCIe workaround: enumerate only one slot for now
Otherwise an em(4) NIC is detected 32 times.
Submitted by: wma at semihalf.com
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D3706
Modified:
head/sys/arm64/cavium/thunder_pcie_pem.c
Modified: head/sys/arm64/cavium/thunder_pcie_pem.c
==============================================================================
--- head/sys/arm64/cavium/thunder_pcie_pem.c Tue Sep 22 11:38:58 2015 (r288107)
+++ head/sys/arm64/cavium/thunder_pcie_pem.c Tue Sep 22 12:56:34 2015 (r288108)
@@ -183,8 +183,16 @@ static int
thunder_pem_maxslots(device_t dev)
{
+#if 0
/* max slots per bus acc. to standard */
return (PCI_SLOTMAX);
+#else
+ /*
+ * ARM64TODO Workaround - otherwise an em(4) interface appears to be
+ * present on every PCI function on the bus to which it is connected
+ */
+ return (0);
+#endif
}
static int
More information about the svn-src-all
mailing list