[SWDEV-529483] Get Vram Vendor Name from Driver (#323)

* Update to remove vram enum and instead use the string directly from the driver.

Signed-off-by: Narlo, Joseph <Joseph.Narlo@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
This commit is contained in:
Narlo, Joseph authored and GitHub committed 2025-05-28 17:57:49 -05:00
1 parent cebc512b1a
commit f71ae88956
9 files changed
+74 -123

No files matched your search

+1 -5
View File
@@ -869,13 +869,9 @@ class AMDSMICommands():
vram_type = vram_type.replace('AMDSMI_VRAM_TYPE_', '').replace('_', '')
# Get vram vendor string
vram_vendor_enum = vram_info['vram_vendor']
vram_vendor = amdsmi_interface.amdsmi_wrapper.amdsmi_vram_vendor_type_t__enumvalues[vram_vendor_enum]
vram_vendor = vram_info['vram_vendor']
if "PLACEHOLDER" in vram_vendor:
vram_vendor = "N/A"
else:
# Remove amdsmi enum prefix
vram_vendor = vram_vendor.replace('AMDSMI_VRAM_VENDOR_', '')
# Assign cleaned values to vram_info_dict
vram_info_dict['type'] = vram_type