]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm/amdgpu/pm: make mclk consistent for smu 13.0.7
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Jun 2023 16:36:17 +0000 (12:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 15:08:50 +0000 (11:08 -0400)
Use current uclk to be consistent with other dGPUs.

Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c

index 3ba02131e682be3babf6b90e1c14466964779cf5..b1f0937ccade8f20b972b11dd177a26ec00278a3 100644 (file)
@@ -949,7 +949,7 @@ static int smu_v13_0_7_read_sensor(struct smu_context *smu,
                break;
        case AMDGPU_PP_SENSOR_GFX_MCLK:
                ret = smu_v13_0_7_get_smu_metrics_data(smu,
-                                                      METRICS_AVERAGE_UCLK,
+                                                      METRICS_CURR_UCLK,
                                                       (uint32_t *)data);
                *(uint32_t *)data *= 100;
                *size = 4;