From 1aec54ca007ad7c8dd4a5c5fcae04b8dbf4d0726 Mon Sep 17 00:00:00 2001 From: Dali Kilani Date: Wed, 24 Sep 2025 17:51:17 +0200 Subject: [PATCH 1/2] Adjust detection to include AMD MI3xx devices --- scripts/vm/hypervisor/kvm/gpudiscovery.sh | 37 +++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/scripts/vm/hypervisor/kvm/gpudiscovery.sh b/scripts/vm/hypervisor/kvm/gpudiscovery.sh index d27f6daf8c5c..a246944ab98a 100755 --- a/scripts/vm/hypervisor/kvm/gpudiscovery.sh +++ b/scripts/vm/hypervisor/kvm/gpudiscovery.sh @@ -324,7 +324,40 @@ # "used_by_vm": null # } # ] -# } +# }, +# { +# "pci_address":"05:00.0", +# "vendor_id":"1002", +# "device_id":"74a5", +# "vendor":"Advanced Micro Devices, Inc. [AMD/ATI]", +# "device":"Aqua Vanjaram [Instinct MI325X]", +# "driver":"amdgpu", +# "pci_class":"Processing accelerators [1200]", +# "iommu_group":"null", +# "pci_root":"0000:05:00.0", +# "numa_node":-1, +# "sriov_totalvfs":0, +# "sriov_numvfs":0, +# "max_instances":null, +# "video_ram":null, +# "max_heads":null, +# "max_resolution_x":null, +# "max_resolution_y":null, +# +# "full_passthrough": { +# "enabled":1, +# "libvirt_address": { +# "domain":"0x0000", +# "bus":"0x05", +# "slot":"0x00", +# "function":"0x0" +# }, +# "used_by_vm":null +# }, + +# "vgpu_instances":[], +# "vf_instances":[] +# } # ] # } # @@ -716,7 +749,7 @@ for LINE in "${LINES[@]}"; do fi # Only process GPU classes (3D controller) - if [[ ! "$PCI_CLASS" =~ (3D\ controller) ]]; then + if [[ ! "$PCI_CLASS" =~ (3D\ controller|Processing\ accelerators) ]]; then continue fi From 53e0b0bc9c809717f92f9c83a7839d2496bdfb4d Mon Sep 17 00:00:00 2001 From: Dali Kilani Date: Thu, 25 Sep 2025 10:23:50 +0200 Subject: [PATCH 2/2] fix trailing whitespace --- scripts/vm/hypervisor/kvm/gpudiscovery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vm/hypervisor/kvm/gpudiscovery.sh b/scripts/vm/hypervisor/kvm/gpudiscovery.sh index a246944ab98a..bf6892c898db 100755 --- a/scripts/vm/hypervisor/kvm/gpudiscovery.sh +++ b/scripts/vm/hypervisor/kvm/gpudiscovery.sh @@ -343,7 +343,7 @@ # "max_heads":null, # "max_resolution_x":null, # "max_resolution_y":null, -# +# # "full_passthrough": { # "enabled":1, # "libvirt_address": {