]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: On dce100, set clocks to 0 on suspend
authorDavid Francis <David.Francis@amd.com>
Wed, 11 Jul 2018 20:20:13 +0000 (16:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jul 2018 20:15:30 +0000 (15:15 -0500)
commit278ca8d677cf7bcecd2b2f287838e5f344f5911e
tree36178336aad1c50319f5672abc0201227e402279
parentaafded888514ba2c6b613548081dedf289a71287
drm/amd/display: On dce100, set clocks to 0 on suspend

[Why]
When a dce100 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 pernicious blackscreen.

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

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c