]> 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)
commit5f53d8b158a7a2d427e564ee9dba2ae000acf762
tree357733a7120949bfa636e3830f37a0bc4abfa12c
parentc43bb388e45936336a725784ef45a43408a4e244
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