Date: Tue, 22 Sep 2015 12:56:35 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288108 - head/sys/arm64/cavium Message-ID: <201509221256.t8MCuZV2035281@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509221256.t8MCuZV2035281>