drm/amd/pm: correct the way for retrieving current uclk frequency

There is some problem with average frequency reading for now. So,
we switch to the target frequency reading.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Evan Quan 2022-04-27 23:22:00 +08:00 committed by Alex Deucher
parent 58a3ed59de
commit 48637d8c42

View File

@ -849,7 +849,7 @@ static int smu_v13_0_0_get_current_clk_freq_by_table(struct smu_context *smu,
member_type = METRICS_AVERAGE_GFXCLK;
break;
case PPCLK_UCLK:
member_type = METRICS_AVERAGE_UCLK;
member_type = METRICS_CURR_UCLK;
break;
case PPCLK_FCLK:
member_type = METRICS_AVERAGE_FCLK;