Adjusted power limits
Signed-off-by: Maisam Arif <maisarif@amd.com> Change-Id: I8586c4a6c9d0a6a05003013c702f88cc42d05114
이 커밋은 다음에 포함됨:
@@ -1101,9 +1101,16 @@ amdsmi_get_power_cap_info(amdsmi_processor_handle processor_handle,
|
||||
if ((status == AMDSMI_STATUS_SUCCESS) && !set_ret_success)
|
||||
set_ret_success = true;
|
||||
|
||||
// Dividing by 1000000 to get measurement in Watts
|
||||
(info->default_power_cap) /= 1000000;
|
||||
|
||||
status = rsmi_wrapper(rsmi_dev_power_cap_range_get, processor_handle, sensor_ind,
|
||||
&(info->max_power_cap), &(info->min_power_cap));
|
||||
|
||||
// Dividing by 1000000 to get measurement in Watts
|
||||
(info->max_power_cap) /= 1000000;
|
||||
(info->min_power_cap) /= 1000000;
|
||||
|
||||
if ((status == AMDSMI_STATUS_SUCCESS) && !set_ret_success)
|
||||
set_ret_success = true;
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ amdsmi_status_t smi_amdgpu_get_power_cap(amd::smi::AMDSmiGPUDevice* device, int
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
fullpath += "/power1_cap_max";
|
||||
fullpath += "/power1_cap";
|
||||
std::ifstream file(fullpath.c_str(), std::ifstream::in);
|
||||
if (!file.is_open()) {
|
||||
return AMDSMI_STATUS_API_FAILED;
|
||||
|
||||
새 이슈에서 참조
사용자 차단