]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Send s0i2_rdy in stream_count == 0 optimization
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 9 Dec 2021 18:53:36 +0000 (13:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Dec 2021 21:51:24 +0000 (16:51 -0500)
commitf076c6f2ee383d61be162399705b58e896897c93
treedc939d682f0e7eb4f429d2268a58d00b81be6ca0
parent1291e41524488ab5f30210d6eca7264f868018d4
drm/amd/display: Send s0i2_rdy in stream_count == 0 optimization

[Why]
Otherwise SMU won't mark Display as idle when trying to perform s2idle.

[How]
Mark the bit in the dcn31 codepath, doesn't apply to older ASIC.

It needed to be split from phy refclk off to prevent entering s2idle
when PSR was engaged but driver was not ready.

Fixes: 9c2ac65907c9 ("drm/amd/display: Add DCN3.1 clock manager support")
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Eric Yang <Eric.Yang2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c