SWDEV-387561 - Fixed market name
In case there is no device id to map to the corresponding market_name,
the rsmi_dev_brand_get function is used to retrieve the market_name
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
Change-Id: I565089d34b2b7e5f714e0dd41062ac8d52095835
[ROCm/amdsmi commit: 3af2687f17]
Este commit está contenido en:
@@ -591,7 +591,10 @@ amdsmi_get_asic_info(amdsmi_device_handle device_handle, amdsmi_asic_info_t *inf
|
||||
}
|
||||
|
||||
status = smi_amdgpu_get_market_name_from_dev_id(dev_info.device_id, info->market_name);
|
||||
if (status != AMDSMI_STATUS_SUCCESS) return status;
|
||||
if (status != AMDSMI_STATUS_SUCCESS) {
|
||||
rsmi_wrapper(rsmi_dev_brand_get, device_handle,
|
||||
info->market_name, AMDSMI_NORMAL_STRING_LENGTH);
|
||||
}
|
||||
|
||||
info->device_id = dev_info.device_id;
|
||||
info->family = dev_info.family;
|
||||
|
||||
@@ -493,12 +493,6 @@ amdsmi_status_t smi_amdgpu_get_market_name_from_dev_id(uint32_t device_id, char
|
||||
case 0x73ae:
|
||||
strcpy(market_name, "NAVI21");
|
||||
break;
|
||||
case 0x7408:
|
||||
case 0x740C:
|
||||
case 0x740F:
|
||||
case 0x7410:
|
||||
strcpy(market_name, "Instinct MI200");
|
||||
break;
|
||||
default:
|
||||
return AMDSMI_STATUS_API_FAILED;
|
||||
}
|
||||
|
||||
Referencia en una nueva incidencia
Block a user