From: jsg Date: Fri, 28 Jul 2023 06:33:27 +0000 (+0000) Subject: drm/amdgpu/pm: make mclk consistent for smu 13.0.7 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6ed427d8a5092ef92a3b3a1ce1ecdb63e29d2dd2;p=openbsd 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 --- 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;