]> 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)
commitf4112dd9626afa4e8114e2528e67b3d729721ad1
treec07600e2291a470fd8b664bd402c37bc3388071e
parentef1564897c8cd8f4948a29c017b40f10cc7214a5
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