]> git.baikalelectronics.ru Git - kernel.git/commit
amd/dc/dce100: On dce100, set clocks to 0 on suspend
authorDavid Francis <David.Francis@amd.com>
Thu, 12 Jul 2018 14:07:49 +0000 (10:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Jul 2018 14:50:05 +0000 (09:50 -0500)
commit1cff8b51835bd5934be52dffcab799bec4dd3ed1
treeb90903bd7ab9ac665ef5711c12285ca4b099d752
parentf46aa07c581810c32edbe5e95942b1bea2df994a
amd/dc/dce100: 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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c