msm/drm/a6xx: Turn off the GMU if resume fails
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 4 Feb 2019 16:15:43 +0000 (09:15 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 19 Apr 2019 18:50:06 +0000 (11:50 -0700)
commit41570b747cf3ae8fcd1cb0ac954cb1b3240af9bd
tree930743b5365b224d1f3801a99491005283556a74
parente31fdb74c183a8cfe32dc31974f3d626b3af4393
msm/drm/a6xx: Turn off the GMU if resume fails

Currently if the GMU resume function fails all we try to do is clear the
BOOT_SLUMBER oob which usually times out and ends up in a cycle of death.
If the resume function fails at any point remove any RPMh votes that might
have been added and try to shut down the GMU hardware cleanly.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_device.c