Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix copy error when set memory clocks

Set memory clocks same as soc clocks

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Rex Zhu and committed by
Alex Deucher
70b63170 b0a634ac

+2 -2
+2 -2
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
··· 503 503 wm_soc_clocks[i].wm_min_socclk_clk_in_khz = 504 504 ranges->writer_wm_sets[i].min_fill_clk_khz; 505 505 wm_soc_clocks[i].wm_max_mem_clk_in_khz = 506 - ranges->writer_wm_sets[i].max_fill_clk_khz; 506 + ranges->writer_wm_sets[i].max_drain_clk_khz; 507 507 wm_soc_clocks[i].wm_min_mem_clk_in_khz = 508 - ranges->writer_wm_sets[i].min_fill_clk_khz; 508 + ranges->writer_wm_sets[i].min_drain_clk_khz; 509 509 } 510 510 511 511 pp_funcs->set_watermarks_for_clocks_ranges(pp_handle, &wm_with_clock_ranges);