This is a note to let you know that I've just added the patch titled drm/amd/pm: Fix smuv13.0.6 current clock reporting to the 6.7-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-amd-pm-fix-smuv13.0.6-current-clock-reporting.patch and it can be found in the queue-6.7 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From a992c90d8ed3929b70ae815ce21ca5651cc0a692 Mon Sep 17 00:00:00 2001 From: Lijo Lazar <lijo.lazar@xxxxxxx> Date: Thu, 11 Jan 2024 15:28:53 +0530 Subject: drm/amd/pm: Fix smuv13.0.6 current clock reporting From: Lijo Lazar <lijo.lazar@xxxxxxx> commit a992c90d8ed3929b70ae815ce21ca5651cc0a692 upstream. When current clock is equal to max dpm level clock, the level is not indicated correctly with *. Fix by comparing current clock against dpm level value. Signed-off-by: Lijo Lazar <lijo.lazar@xxxxxxx> Reviewed-by: Asad Kamal <asad.kamal@xxxxxxx> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> Cc: stable@xxxxxxxxxxxxxxx # 6.7.x Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c @@ -924,7 +924,9 @@ static int smu_v13_0_6_print_clks(struct if (i < (clocks.num_levels - 1)) clk2 = clocks.data[i + 1].clocks_in_khz / 1000; - if (curr_clk >= clk1 && curr_clk < clk2) { + if (curr_clk == clk1) { + level = i; + } else if (curr_clk >= clk1 && curr_clk < clk2) { level = (curr_clk - clk1) <= (clk2 - curr_clk) ? i : i + 1; Patches currently in stable-queue which might be from lijo.lazar@xxxxxxx are queue-6.7/drm-amdgpu-show-vram-vendor-only-if-available.patch queue-6.7/drm-amd-pm-add-error-log-for-smu-v13.0.6-reset.patch queue-6.7/drm-amdgpu-pm-fix-the-power-source-flag-error.patch queue-6.7/drm-amd-pm-fix-smuv13.0.6-current-clock-reporting.patch queue-6.7/drm-amd-pm-fetch-current-power-limit-from-fw.patch queue-6.7/drm-amdgpu-avoid-fetching-vram-vendor-information.patch