]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: hangcheck harder
authorRob Clark <robdclark@gmail.com>
Tue, 3 Sep 2013 11:12:03 +0000 (07:12 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 10 Sep 2013 17:56:59 +0000 (13:56 -0400)
commit91d777714199afe40367f9ba4512c430747647aa
tree357733a7120949bfa636e3830f37a0bc4abfa12c
parent9b13c0a733ca128ee70a58f4b3d2d2f9ee8e6aa9
drm/msm: hangcheck harder

If gpu locks up with the rptr shortly beyond the wrap-around point in
the ringbuffer, because the rptr was not reset (but wptr is, by virtue
of resetting rb->cur), we could end up in a scenario where we think
there is not enough space in the ringbuffer for the next cmds.  And
since the CP won't reset rptr until after processing an IB, this leaves
things in a sort of deadlock.

So reset rptr too.  And a bit more spiffing up of hangcheck to make
things easier to debug.

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