mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02: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:
parent
cad2fb19bb
commit
608f604c79
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user