mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +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 New Issue
Block a user