]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Correct sw cache timing to ensure dispclk ramping
authorCharlene Liu <Charlene.Liu@amd.com>
Thu, 11 Sep 2025 23:20:45 +0000 (19:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2025 14:32:20 +0000 (10:32 -0400)
commitf1fd8a9ac2aa5118f76baf28e6ca4d6962a485be
tree22ca4aac3885c9222f689a5ac86211d40ae96701
parent35bcc9168f3ce6416cbf3f776758be0937f84cb3
drm/amd/display: Correct sw cache timing to ensure dispclk ramping

[why]
Current driver will cache the dispclk right after send cmd to pmfw,
but actual clock not reached yet.

Change to only cache the dispclk setting after HW reached to the real clock.
Also give some range as it might be in bypass clock setting.

Reviewed-by: Yihan Zhu <yihan.zhu@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c