Commit 1291bd70 authored by Jack Zhang's avatar Jack Zhang Committed by Alex Deucher

drm/amdgpu/sriov skip the update of SMU_TABLE_ACTIVITY_MONITOR_COEFF

There's no need to dump ACTIVITY_MONITOR_COEFF under VF.
Therefore, Skip the update of SMU_TABLE_ACTIVITY_MONITOR_COEFF
under SRIOV VF.
Signed-off-by: default avatarJack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9e441478
...@@ -1318,6 +1318,7 @@ static int arcturus_get_power_limit(struct smu_context *smu, ...@@ -1318,6 +1318,7 @@ static int arcturus_get_power_limit(struct smu_context *smu,
static int arcturus_get_power_profile_mode(struct smu_context *smu, static int arcturus_get_power_profile_mode(struct smu_context *smu,
char *buf) char *buf)
{ {
struct amdgpu_device *adev = smu->adev;
DpmActivityMonitorCoeffInt_t activity_monitor; DpmActivityMonitorCoeffInt_t activity_monitor;
static const char *profile_name[] = { static const char *profile_name[] = {
"BOOTUP_DEFAULT", "BOOTUP_DEFAULT",
...@@ -1351,7 +1352,7 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu, ...@@ -1351,7 +1352,7 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu,
if (result) if (result)
return result; return result;
if (smu_version >= 0x360d00) if (smu_version >= 0x360d00 && !amdgpu_sriov_vf(adev))
size += sprintf(buf + size, "%16s %s %s %s %s %s %s %s %s %s %s\n", size += sprintf(buf + size, "%16s %s %s %s %s %s %s %s %s %s %s\n",
title[0], title[1], title[2], title[3], title[4], title[5], title[0], title[1], title[2], title[3], title[4], title[5],
title[6], title[7], title[8], title[9], title[10]); title[6], title[7], title[8], title[9], title[10]);
...@@ -1368,7 +1369,7 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu, ...@@ -1368,7 +1369,7 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu,
if (workload_type < 0) if (workload_type < 0)
continue; continue;
if (smu_version >= 0x360d00) { if (smu_version >= 0x360d00 && !amdgpu_sriov_vf(adev)) {
result = smu_update_table(smu, result = smu_update_table(smu,
SMU_TABLE_ACTIVITY_MONITOR_COEFF, SMU_TABLE_ACTIVITY_MONITOR_COEFF,
workload_type, workload_type,
...@@ -1383,7 +1384,7 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu, ...@@ -1383,7 +1384,7 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu,
size += sprintf(buf + size, "%2d %14s%s\n", size += sprintf(buf + size, "%2d %14s%s\n",
i, profile_name[i], (i == smu->power_profile_mode) ? "*" : " "); i, profile_name[i], (i == smu->power_profile_mode) ? "*" : " ");
if (smu_version >= 0x360d00) { if (smu_version >= 0x360d00 && !amdgpu_sriov_vf(adev)) {
size += sprintf(buf + size, "%19s %d(%13s) %7d %7d %7d %7d %7d %7d %7d %7d %7d\n", size += sprintf(buf + size, "%19s %d(%13s) %7d %7d %7d %7d %7d %7d %7d %7d %7d\n",
" ", " ",
0, 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment