vfio-pci-bind icon indicating copy to clipboard operation
vfio-pci-bind copied to clipboard

binding devices on boot

Open residentcode opened this issue 2 years ago • 0 comments

Hi, Thanks for making such great script it saves my day because I have some identical vfio ids on both gpu. I have to add multiple devices bind on boot I tried like this but not working KERNEL=="0000:4e:00.0","0000:4e:00.1","0000:4e:00.2","0000:4e:00.3", TAG="vfio-pci-bind"

and like this only first device was bounded KERNEL=="0000:4e:00.0", TAG="vfio-pci-bind" KERNEL=="0000:4e:00.1", TAG="vfio-pci-bind" KERNEL=="0000:4e:00.2", TAG="vfio-pci-bind" KERNEL=="0000:4e:00.3", TAG="vfio-pci-bind"

can you help please loop all devices ? and besides script doesn't work using "sudo" but only as "sudo su -" root works Using vfio-pci-bind.sh 0000:4e:00.0 one by one works but the bound gone after reboot ubuntu.

GPU 1 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73af] (rev c0) 03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:ab28] Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:ab28] 03:00.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73a6] Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73a6] 03:00.3 Serial bus controller [0c80]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73a4] Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:0408]

GPU 2 4e:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73bf] (rev c0) Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:0e3a] 4e:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:ab28] Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:ab28] 4e:00.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73a6] Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73a6] 4e:00.3 Serial bus controller [0c80]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73a4] Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:0408]

Thanks in advance Cheers.

residentcode avatar Mar 10 '22 00:03 residentcode