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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:07:08 +0000 (13:07 +0200)
commitda9135048ed7ff854fda1e7cb5df5aa2273bb624
tree3be0584ef4d61902ca1f129e29b88bf0e08e2b6c
parent1a9739dc9cacfe3b1b4700c8834b5c2142688a8a
amd/dc/dce100: On dce100, set clocks to 0 on suspend

[ Upstream commit 8d4235f71513cdccd9dc52b674323c3591552bc1 ]

[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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c