mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 18:46:25 -04:00
drm/amd/pm:Fix GFX deep sleep clock reporting
For SMU v13.0.6, keep GFX deep sleep clock reporting style consistent with that of other clocks. Sample format below. S: 78Mhz * 0: 600Mhz 1: 800Mhz Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -870,7 +870,15 @@ static int smu_v13_0_6_print_clk_levels(struct smu_context *smu,
|
||||
min_clk = pstate_table->gfxclk_pstate.curr.min;
|
||||
max_clk = pstate_table->gfxclk_pstate.curr.max;
|
||||
|
||||
if (!smu_v13_0_6_freqs_in_same_level(now, min_clk) &&
|
||||
if (now < SMU_13_0_6_DSCLK_THRESHOLD) {
|
||||
size += sysfs_emit_at(buf, size, "S: %uMhz *\n",
|
||||
now);
|
||||
size += sysfs_emit_at(buf, size, "0: %uMhz\n",
|
||||
min_clk);
|
||||
size += sysfs_emit_at(buf, size, "1: %uMhz\n",
|
||||
max_clk);
|
||||
|
||||
} else if (!smu_v13_0_6_freqs_in_same_level(now, min_clk) &&
|
||||
!smu_v13_0_6_freqs_in_same_level(now, max_clk)) {
|
||||
size += sysfs_emit_at(buf, size, "0: %uMhz\n",
|
||||
min_clk);
|
||||
|
||||
Reference in New Issue
Block a user