summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2023-06-13 12:36:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-27 08:56:38 +0200
commitf155c402e9cb0b7723fd9dbc37d75f01855c6a5d (patch)
treedb3ce141ffd1424cf6cb229de724885580972ecd /drivers/gpu
parentd28f75c986de3d3c7099d1fc6b71b7c2e5a0cbba (diff)
downloadlinux-stable-f155c402e9cb0b7723fd9dbc37d75f01855c6a5d.tar.gz
linux-stable-f155c402e9cb0b7723fd9dbc37d75f01855c6a5d.tar.bz2
linux-stable-f155c402e9cb0b7723fd9dbc37d75f01855c6a5d.zip
drm/amdgpu/pm: make mclk consistent for smu 13.0.7
commit 068c8bb10f37bb84824625dbbda053a3a3e0d6e1 upstream. 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> Cc: stable@vger.kernel.org # 6.1.x Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
index aac72925db34..f53a09b02c38 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
@@ -940,7 +940,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;