Skip to content

Commit d60f455

Browse files
authored
Fix detection of Mi3xx GPUs (#11715)
1 parent 3159fa7 commit d60f455

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

scripts/vm/hypervisor/kvm/gpudiscovery.sh

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,40 @@
324324
# "used_by_vm": null
325325
# }
326326
# ]
327-
# }
327+
# },
328+
# {
329+
# "pci_address":"05:00.0",
330+
# "vendor_id":"1002",
331+
# "device_id":"74a5",
332+
# "vendor":"Advanced Micro Devices, Inc. [AMD/ATI]",
333+
# "device":"Aqua Vanjaram [Instinct MI325X]",
334+
# "driver":"amdgpu",
335+
# "pci_class":"Processing accelerators [1200]",
336+
# "iommu_group":"null",
337+
# "pci_root":"0000:05:00.0",
338+
# "numa_node":-1,
339+
# "sriov_totalvfs":0,
340+
# "sriov_numvfs":0,
341+
# "max_instances":null,
342+
# "video_ram":null,
343+
# "max_heads":null,
344+
# "max_resolution_x":null,
345+
# "max_resolution_y":null,
346+
#
347+
# "full_passthrough": {
348+
# "enabled":1,
349+
# "libvirt_address": {
350+
# "domain":"0x0000",
351+
# "bus":"0x05",
352+
# "slot":"0x00",
353+
# "function":"0x0"
354+
# },
355+
# "used_by_vm":null
356+
# },
357+
358+
# "vgpu_instances":[],
359+
# "vf_instances":[]
360+
# }
328361
# ]
329362
# }
330363
#
@@ -716,7 +749,7 @@ for LINE in "${LINES[@]}"; do
716749
fi
717750

718751
# Only process GPU classes (3D controller)
719-
if [[ ! "$PCI_CLASS" =~ (3D\ controller) ]]; then
752+
if [[ ! "$PCI_CLASS" =~ (3D\ controller|Processing\ accelerators) ]]; then
720753
continue
721754
fi
722755

0 commit comments

Comments
 (0)