]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/adreno: dump scratch regs and other info on hang
authorRob Clark <robdclark@gmail.com>
Sun, 19 Apr 2015 14:14:09 +0000 (10:14 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 11 Jun 2015 17:11:00 +0000 (13:11 -0400)
commit0e918b16b6009d884a1ec952afa463072babe505
tree15b02bdd9e22e12720ff7067956680c527dab89e
parentb2c7bc01f7f6b75ee6c09f5986eb8508a6d8eb04
drm/msm/adreno: dump scratch regs and other info on hang

Dump a bit more info when the GPU hangs, without having hang_debug
enabled (which dumps a *lot* of registers).  Also dump the scratch
registers, as they are useful for determining where in the cmdstream
the GPU hung (and they seem always safe to read when GPU has hung).

Note that the freedreno gallium driver emits increasing counter values
to SCRATCH6 (to identify tile #) and SCRATCH7 (to identify draw #), so
these two in particular can be used to "triangulate" where in the
cmdstream the GPU hung.

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