]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Move DPM clk read to clk_mgr_construct in DCN42
authorIvan Lipski <ivan.lipski@amd.com>
Wed, 4 Mar 2026 01:07:58 +0000 (20:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:11:17 +0000 (14:11 -0400)
commit058cb97b730f2b47f168d843cd82832bca6babf1
tree2049e204f593c272eaff61aee9af10fc1979decd
parent24ccc041f0a8100cc7aae822a3328b276039fe59
drm/amd/display: Move DPM clk read to clk_mgr_construct in DCN42

[Why&How]
The DPM clocks on DCN42 are currently read on every dm_resume, which can
cause in gpu memory freeing while the device is still in suspend.

Move the DPM clock read functionality to clk_mgr_construct() so it
completes once on driver enablement.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Signed-off-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Signed-off-by: Chuanyu Tseng <Chuanyu.Tseng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn42/dcn42_clk_mgr.c