Add support to XGMI physical id
Get XGMI physical id from sysfs. Change-Id: Ifd9e431bc2fbfd759d888a71b99046a5eb07b6ed
This commit is contained in:
committed by
Shuzhou Liu
parent
192fb538be
commit
6ca95c1a2d
@@ -721,6 +721,11 @@ amdsmi_get_gpu_asic_info(amdsmi_processor_handle processor_handle, amdsmi_asic_i
|
||||
status = rsmi_wrapper(rsmi_dev_pcie_vendor_name_get, processor_handle,
|
||||
info->vendor_name, AMDSMI_MAX_STRING_LENGTH);
|
||||
|
||||
// default to 0xffff as not supported
|
||||
info->xgmi_physical_id = std::numeric_limits<uint16_t>::max();
|
||||
status = rsmi_wrapper(rsmi_dev_xgmi_physical_id_get, processor_handle,
|
||||
&(info->xgmi_physical_id));
|
||||
|
||||
return AMDSMI_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user