drm/msm: Turn off hardware clock gating before reading A5XX registers
authorJordan Crouse <jcrouse@codeaurora.org>
Thu, 27 Jul 2017 16:42:32 +0000 (10:42 -0600)
committerRob Clark <robdclark@gmail.com>
Tue, 1 Aug 2017 23:10:53 +0000 (19:10 -0400)
commita23cb3b52fec73b22671bac65356d8c55bf37706
tree5d02abbeb0ecf62523197f4f33dbd26da944c9c1
parent6e749e5971fc7c7a33d7a673fbe4944604b397cf
drm/msm: Turn off hardware clock gating before reading A5XX registers

On A5XX GPU hardware clock gating needs to be turned off before
reading certain GPU registers via AHB. Turn off HWCG before calling
adreno_show() to safely dump all the registers without a system hang.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c