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
This commit is contained in:
Ed Maste 2015-09-22 12:56:34 +00:00
parent 4ce7a0868c
commit a9ee805d45
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288108

View file

@ -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