drm/msm/gpu: Increase the pm runtime autosuspend for 5xx
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 7 May 2018 22:47:50 +0000 (16:47 -0600)
committerRob Clark <robdclark@gmail.com>
Wed, 25 Jul 2018 11:51:04 +0000 (07:51 -0400)
commit64709686dbb38f32045e117ec5a1aaf2e3a0a3c4
tree4c6f5211241f5e4be919412125cdd34de00a214f
parent6666e1a66f92988e8c85a7ac0c34f47dc7d412a0
drm/msm/gpu: Increase the pm runtime autosuspend for 5xx

Experimentation shows that resuming power quickly after suspending
ends up forcing a system hang for unknown reasons on 5xx targets.
To avoid cycling the power too much (especially during init)
turn up the autosuspend time for a5xx to 250ms and use
pm_runtime_put_autosuspend() when applicable.

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