SWDEV-434348: Corrected Guest Vendor Name values

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iee0d45fc64386f0417a0e30cce05608ca2186990


[ROCm/amdsmi commit: 53177525bf]
This commit is contained in:
Maisam Arif
2024-01-24 07:29:34 -06:00
والد 5edb7a559f
کامیت 084d8f89d1
3فایلهای تغییر یافته به همراه13 افزوده شده و 5 حذف شده
@@ -672,15 +672,21 @@ amdsmi_get_gpu_asic_info(amdsmi_processor_handle processor_handle, amdsmi_asic_i
status = rsmi_wrapper(rsmi_dev_vendor_id_get, processor_handle,
&vendor_id);
if (status == AMDSMI_STATUS_SUCCESS) info->vendor_id = vendor_id;
status = rsmi_wrapper(rsmi_dev_subsystem_vendor_id_get, processor_handle,
&subvendor_id);
if (status == AMDSMI_STATUS_SUCCESS) info->subvendor_id = subvendor_id;
}
// For other sysfs related information, get from rocm-smi
status = rsmi_wrapper(rsmi_dev_subsystem_vendor_id_get, processor_handle,
&subvendor_id);
if (status == AMDSMI_STATUS_SUCCESS) info->subvendor_id = subvendor_id;
status = rsmi_wrapper(rsmi_dev_pcie_vendor_name_get, processor_handle,
info->vendor_name, AMDSMI_MAX_STRING_LENGTH);
// If vendor name is empty and the vendor id is 0x1002, set vendor name to AMD vendor string
if ((info->vendor_name != NULL && info->vendor_name[0] == '\0') && info->vendor_id == 0x1002) {
memset(info->vendor_name, 0, 38);
strncpy(info->vendor_name, "Advanced Micro Devices Inc. [AMD/ATI]", 37);
}
// default to 0xffff as not supported
info->oam_id = std::numeric_limits<uint16_t>::max();
status = rsmi_wrapper(rsmi_dev_oam_id_get, processor_handle,