drm/msm: add rd logging debugfs
authorRob Clark <robdclark@gmail.com>
Fri, 30 May 2014 18:47:38 +0000 (14:47 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 2 Jun 2014 11:36:11 +0000 (07:36 -0400)
commita7d3c9509b2fecf8e593f3c933ab302cbe987d2e
tree7713d6f2e17c96c442cd7a162dd66f526f71da93
parentfb27b8f29f60b8799df1aa60cd9647d56d62810e
drm/msm: add rd logging debugfs

To ease debugging, add debugfs file which can be cat/tail'd to log
submits, along with fence #.  If GPU hangs, you can look at 'gpu'
debugfs file to find last completed fence and current register state,
and compare with logged rd file to narrow down the DRAW_INDX which
triggered the GPU hang.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/Makefile
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
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_rd.c [new file with mode: 0644]