drm/amdgpu/pm: make mclk consistent for smu 13.0.7
authorjsg <jsg@openbsd.org>
Fri, 28 Jul 2023 06:33:27 +0000 (06:33 +0000)
committerjsg <jsg@openbsd.org>
Fri, 28 Jul 2023 06:33:27 +0000 (06:33 +0000)
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

index 17a7b48..165992d 100644 (file)
@@ -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;