]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: set clocks to 0 on suspend on dce80
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tue, 5 Feb 2019 19:03:52 +0000 (14:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Feb 2019 21:58:06 +0000 (16:58 -0500)
commit07556245e4923ca52e8b40c4f0e4f0fb9655a030
treec07600e2291a470fd8b664bd402c37bc3388071e
parent46ba33da2076b1580433856a5c3faae2e3e957cf
drm/amd/display: set clocks to 0 on suspend on dce80

[Why]
When a dce80 asic was suspended, the clocks were not set to 0.
Upon resume, the new clock was compared to the existing clock,
they were found to be the same, and so the clock was not set.
This resulted in a blackscreen.

[How]
In atomic commit, check to see if there are any active pipes.
If no, set clocks to 0

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c