https://access.redhat.com/articles/1259003
How to tell if a PCI device is supported on Red Hat Enterprise Linux 7 and 8
Updated 2019年三月1日05:36 -
RHEL6 provided a modules.pcimap
file that users could check to determine whether their devices were supported. This file is no longer available on RHEL 7 and RHEL 8, but the modules.alias
file can be a useful replacement.
1. Determine the device's PCI ID
You can find this out from the manufacturer of your device, or use lspci -nn
, like so.
# lspci -nn | grep Ether
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)
The PCI ID is made up of a Vendor ID and a Device ID. The PCI ID is displayed after the device description, in the format [XXXX:YYYY]
, where XXXX is the Vendor ID, and YYYY is the Device ID. In this case, the PCI ID is [8086:1502]
, the Vendor ID is 8086, and the Device ID is 1502.
2. Check kernel modules for support
Search for the Vendor and Device ID in the installed kernel modules.
# egrep -i "<VendorID>.*<DeviceID>" /lib/modules/$(uname -r)/modules.alias
If no result returns, the device is not supported.
For example,
# egrep -i "8086.*1502" /lib/modules/$(uname -r)/modules.alias
alias pci:v00008086d00001502sv*sd*bc*sc*i* e1000e
The device with the PCI ID of [8086.1502]
is supported by the e1000e kernel module.
# egrep -i "abcd.*1234" /lib/modules/$(uname -r)/modules.alias
The device with the PCI ID of [abcd.1234]
is not supported on RHEL7.
See How to determine if a PCI or USB device is supported by a Red Hat Enterprise Linux kernel if you want to find out this information for a RHEL release prior to RHEL7.
转帖者的案例:
[root@server1 ~]# lspci -nn | grep Ether
18:00.0 Ethernet controller [0200]: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
18:00.1 Ethernet controller [0200]: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
19:00.0 Ethernet controller [0200]: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
19:00.1 Ethernet controller [0200]: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
1a:00.0 Ethernet controller [0200]: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] (rev 01)
1a:00.1 Ethernet controller [0200]: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] (rev 01)
[root@server1 ~]# egrep -i "14e4.*165f" /lib/modules/$(uname -r)/modules.alias
alias pci:v000014E4d0000165Fsv*sd*bc*sc*i* tg3
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# egrep -i "8086.*10fb" /lib/modules/$(uname -r)/modules.alias
alias pci:v00008086d000010FBsv*sd*bc*sc*i* ixgbe
[root@server1 ~]#
[root@server1 ~]#