]> 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)
commit098cd57cfb2ee7fb4ab4f7eef72d735861f7f27e
treef868e2c708b96e8b8299a7e367d086bbcfef15f3
parentb4eb1acd3733ceec3eb506f93a239705eafb0d37
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