]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Init clock value by current vbios CLKs
authorBrandon Syu <Brandon.Syu@amd.com>
Thu, 12 Nov 2020 07:35:52 +0000 (15:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 21:03:33 +0000 (16:03 -0500)
commit99349a8aeda7a044fc5850924bc3b57c306a1553
treef1ab469549677410bb84b8c45919f1fc0e2ad67c
parent079204508ec0cd32a66c5ca8b9f977383355b181
drm/amd/display: Init clock value by current vbios CLKs

[Why]
While booting into OS, driver updates DPP/DISP CLKs.
But init clock value is zero which is invalid.

[How]
Get current clocks value to update init clocks.
To avoid underflow.

Signed-off-by: Brandon Syu <Brandon.Syu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c