drm/msm: add basic hangcheck/recovery mechanism
authorRob Clark <robdclark@gmail.com>
Sat, 24 Aug 2013 18:20:38 +0000 (14:20 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 24 Aug 2013 18:57:19 +0000 (14:57 -0400)
commitbd6f82d8289422f618b98451a43887f452b3423e
treee4416dba680a3e88236f9e8b568ff2544c6e1779
parent7198e6b03155f6dadecadba004eb83b81a6ffe4c
drm/msm: add basic hangcheck/recovery mechanism

A basic, no-frills recovery mechanism in case the gpu gets wedged.  We
could try to be a bit more fancy and restart the next submit after the
one that got wedged, but for now keep it simple.  This is enough to
recover things if, for example, the gpu hangs mid way through a piglit
run.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a3xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.h