drm/msm: restart queued submits after hang
authorRob Clark <robdclark@gmail.com>
Sun, 7 Jun 2015 17:46:04 +0000 (13:46 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 11 Jun 2015 17:11:06 +0000 (13:11 -0400)
commit1a370be9ac51129e40b0ed7fa71d2b2b92bc47e5
tree678bad05754937920c7d09fb66dd5a356ed9f172
parent56c2da8338d5cdfc0695eeed96ebe03cf2ac0321
drm/msm: restart queued submits after hang

Track the list of in-flight submits.  If the gpu hangs, retire up to an
including the offending submit, and then re-submit the remainder.  This
way, for concurrently running piglit tests (for example), one failing
test doesn't cause unrelated tests to fail simply because it's submit
was queued up after one that triggered a hang.

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