]> git.baikalelectronics.ru Git - kernel.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)
commit40889a81b825ec5cbfb9b5335293024c28bb94a9
tree36178336aad1c50319f5672abc0201227e402279
parentb2fd216b69d58b24464a0761cd716e0ee8ee13a6
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