From 6ed427d8a5092ef92a3b3a1ce1ecdb63e29d2dd2 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 28 Jul 2023 06:33:27 +0000 Subject: [PATCH] drm/amdgpu/pm: make mclk consistent for smu 13.0.7 From Alex Deucher 91bd7acf89cbc118e8d5e01947e59f7928e26893 in linux-6.1.y/6.1.42 068c8bb10f37bb84824625dbbda053a3a3e0d6e1 in mainline linux --- sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c index 17a7b4823a7..165992dc197 100644 --- a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +++ b/sys/dev/pci/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; -- 2.20.1