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: w...@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 _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"