bxe0: <QLogic NetXtreme II BCM57840 4x10GbE (B1) BXE v:1.78.91> mem 0x380000000000-0x3800007fffff,0x380000800000-0x380000ffffff,0x380002000000-0x38000200ffff irq 10 at device 9.0 on pci0bxe0: PCI BAR0 [10] memory allocated: 0x380000000000-0x3800007fffff (8388608) -> 0xfffffe008d400000bxe0: PCI BAR2 [18] memory allocated: 0x380000800000-0x380000ffffff (8388608) -> 0xfffffe008dc00000bxe0: PCI BAR4 [20] memory allocated: 0x380002000000-0x38000200ffff (65536) -> 0xfffffe0084678000bxe0: ERROR: Invalid SHMEM validity signature: 0x00010008bxe0: ERROR: Invalid phy config in NVRAM (PHY1=0x00010008 PHY2=0x00010008)bxe0: Unknown media!bxe0: IFMEDIA flags : 20bxe0: Using defaults for TSO: 65518/35/2048bxe0: ERROR: FW failed to respond!bxe0: ERROR: MCP response failure, abortingbxe0: ERROR: Failed to unload previous driver! time_counter 10 rc -1bxe1: <QLogic NetXtreme II BCM57840 4x10GbE (B1) BXE v:1.78.91> mem 0x380001000000-0x3800017fffff,0x380001800000-0x380001ffffff,0x380002010000-0x38000201ffff irq 10 at device 10.0 on pci0bxe1: PCI BAR0 [10] memory allocated: 0x380001000000-0x3800017fffff (8388608) -> 0xfffffe008e800000bxe1: PCI BAR2 [18] memory allocated: 0x380001800000-0x380001ffffff (8388608) -> 0xfffffe008f000000bxe1: PCI BAR4 [20] memory allocated: 0x380002010000-0x38000201ffff (65536) -> 0xfffffe0084688000bxe1: Found 10Gb Fiber media.bxe1: IFMEDIA flags : 20bxe1: Using defaults for TSO: 65518/35/2048bxe1: Ethernet address: d4:5d:64:09:0b:6abxe1: MSI-X vectors Requested 2 and Allocated 2
Any ideas ?
find /sys/kernel/iommu_groups/ -type l
61:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57840 NetXtreme II 10 Gigabit Ethernet [14e4:16a1] (rev 11) Subsystem: ASUSTeK Computer Inc. Device [1043:8591] Kernel driver in use: vfio-pci Kernel modules: bnx2x61:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57840 NetXtreme II 10 Gigabit Ethernet [14e4:16a1] (rev 11) Subsystem: ASUSTeK Computer Inc. Device [1043:8591] Kernel driver in use: vfio-pci Kernel modules: bnx2x
lspci -nnk shows following for the 10G cards, both have the same PCI_ids.
rhgb quiet intel_iommu=on iommu=pt pci-stub.ids=1043:8591
[root@server2]# cat /etc/modules-load.d/vfio-pci.conf vfio-pci[root@server2]# cat /etc/modprobe.d/vfio.conf options vfio-pci ids=14e4:16a1[root@server2]#
[root@server1 etc]# lsmod | grep kvmkvm_intel 442368 0kvm 1347584 1 kvm_intelirqbypass 16384 2 vfio_pci_core,kvm ## << this isn't shown on server2[root@server2 etc]# lsmod | grep kvmkvm_intel 442368 0kvm 1347584 1 kvm_intel
I have the same configuration on two servers, the servers are a little different
Type: PCIExpressGen4
Type: PCIExpressGen3
Since both the ports are on the same card, their ID is same i.e. 14e4:16a1 and 1043:8591, please check followingCode: [Select]61:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57840 NetXtreme II 10 Gigabit Ethernet [14e4:16a1] (rev 11) Subsystem: ASUSTeK Computer Inc. Device [1043:8591] Kernel driver in use: vfio-pci Kernel modules: bnx2x61:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57840 NetXtreme II 10 Gigabit Ethernet [14e4:16a1] (rev 11) Subsystem: ASUSTeK Computer Inc. Device [1043:8591] Kernel driver in use: vfio-pci Kernel modules: bnx2x
Quote from: aab on August 14, 2024, 12:27:43 amSince both the ports are on the same card, their ID is same i.e. 14e4:16a1 and 1043:8591, please check followingCode: [Select]61:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57840 NetXtreme II 10 Gigabit Ethernet [14e4:16a1] (rev 11) Subsystem: ASUSTeK Computer Inc. Device [1043:8591] Kernel driver in use: vfio-pci Kernel modules: bnx2x61:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57840 NetXtreme II 10 Gigabit Ethernet [14e4:16a1] (rev 11) Subsystem: ASUSTeK Computer Inc. Device [1043:8591] Kernel driver in use: vfio-pci Kernel modules: bnx2xI don't think you can pass both through in this way, since as you well point out, the pci id are the same. Only one.Why not add the _whole_ pci device to the VM though? In other words, without vfio. Is it Proxmox?
Problem here is that 61:00.0 and 61:00.1 are not the PCIe device identifiers Patrick. They are the bus IDs and you can only to my knowledge, tell the hypervisor to pass through something, by the PCIe ID. But they are the same one in this case.