drm/amd/pm: report preDS gfxclk on smu_v13_0_7
authorKenneth Feng <kenneth.feng@amd.com>
Tue, 26 Apr 2022 02:54:54 +0000 (10:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 May 2022 14:36:12 +0000 (10:36 -0400)
report preDS gfxclk on smu_v13_0_7 to avoid the test confusion

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@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 ac50030..cf58008 100644 (file)
@@ -668,7 +668,7 @@ static int smu_v13_0_7_get_smu_metrics_data(struct smu_context *smu,
                *value = metrics->CurrClock[PPCLK_FCLK];
                break;
        case METRICS_AVERAGE_GFXCLK:
-               *value = metrics->AverageGfxclkFrequencyTarget;
+               *value = metrics->AverageGfxclkFrequencyPreDs;
                break;
        case METRICS_AVERAGE_FCLK:
                if (metrics->AverageUclkActivity <= SMU_13_0_7_BUSY_THRESHOLD)