]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Not check wm and clk change flag in optimized bandwidth.
authorYongqiang Sun <yongqiang.sun@amd.com>
Wed, 26 Feb 2020 19:25:29 +0000 (14:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:49:26 +0000 (13:49 -0400)
commit2ff1fafe573b5f71b82e8d0d90e16fc9168defb9
treef868e2c708b96e8b8299a7e367d086bbcfef15f3
parentd5b998e2ec31933df9dd76a91ed872d8fd79c1c0
drm/amd/display: Not check wm and clk change flag in optimized bandwidth.

[Why]
System isn't able to enter S0i3 due to not send display count 0 to smu.
When dpms off, clk changed flag is cleared alreay, and it is checked
when doing optimized bandwidth, and update clocks is bypassed due to the
flag is unset.

[How]
Remove check flag incide the function since watermark values and clocks
values are checked during update to determine whether to perform it, no
need to check it again outside the function.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c