mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
4ce7a0868c
commit
a9ee805d45
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288108
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue