]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: check actual clock value.
authorYongqiang Sun <yongqiang.sun@amd.com>
Fri, 30 Oct 2020 13:29:07 +0000 (09:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:26:10 +0000 (14:26 -0500)
commit3dd6240879a793a3b1078f33f12bdfc66f6b984a
tree4daeb9c893028eb5590445f22acf0b4bfc00fb63
parent64888b7766f6e4d2f9166d33ce0d46d6f938bf64
drm/amd/display: check actual clock value.

[Why]
Actual dpp/disp clock PMFW set are always equal or more than requested.
Need to cache the actual clock for debugging purpose.

[How]
Add actuall dpp/disp clk in clock manager and save it when set clocks.
Add an ASSERT in case of actual clock less than requested.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c
drivers/gpu/drm/amd/display/dc/dc.h