+39
−21
Loading
Unify output of setup driver binding. Each line will print PCI BDF, vendor and device id. $export PCI_BLACKLIST="0000:00:04.0 0000:00:04.1" $./scripts/setup.sh 0000:0b:00.0 (8086 0953): nvme -> vfio-pci 0000:00:04.1 (8086 0e20): Skipping un-whitelisted I/OAT device ... 0000:00:04.1 (8086 0e21): Skipping un-whitelisted I/OAT device ... Print log when desired driver is already bound: $./scripts/setup.sh 0000:0b:00.0 (8086 0953): Already using the vfio-pci driver ... 'status' command prints vendor and device: ./scripts/setup.sh status ... NVMe devices BDF Vendor Device NUMA Driver Device name 0000:0b:00.0 8086 0953 0 vfio-pci - I/OAT DMA BDF Vendor Device NUMA Driver 0000:00:04.0 8086 0e20 0 ioatdma 0000:80:04.0 8086 0e20 1 vfio-pci 0000:00:04.1 8086 0e21 0 ioatdma 0000:80:04.1 8086 0e21 1 vfio-pci 0000:00:04.2 8086 0e22 0 vfio-pci 0000:80:04.2 8086 0e22 1 vfio-pci ... As we are here replace legacy Bash subshell invocation ` ` with $( ) in some places. Change-Id: I76b533c7580dadeb3d592c084778b8f9869c6d17 Signed-off-by:Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/443218 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com>