[Freedreno] [RFC v2 0/6] drm/msm: GPU crash state

Jordan Crouse jcrouse at codeaurora.org
Fri Jan 26 21:08:44 UTC 2018


This is an update for my previous stack of GPU state code
(https://patchwork.freedesktop.org/series/36097/).

The goal is to store and provide enough information to debug software
and hardware issues on the Adreno hardware in a semi human-readable
format that can also be parsed by scripts.

Based on previous suggestions, I re-organized the output into a mostly
YAML compatible format that should be extensible for future changes.
Once I get basic consensus on the format I'll write up official
format documentation. I also removed some of the "cleanup" code
for the show function that just ended up being more trouble than it is worth.
Finally, I added code to dump the ringbuffers in ascii85 format and started
work on a5xx specific code.

Future additions will include tweaking the format, adding more 5xx specific
components and dumping active buffers that contributed to the crash.

You can see an example of the output for a simple invalid opcode error on the
db820c here: https://hastebin.com/olaruyakaz.bash

Jordan Crouse (6):
  drm/msm: gpu: Capture the state of the GPU
  drm/msm: gpu: Convert the GPU show function to use the GPU state
  drm/msm: gpu: Capture the GPU state on a GPU hang
  drm/msm/adreno: Convert the show/crash file format
  drm/msm/adreno: Add ringbuffer contexts to the GPU state
  drm/msm/adreno: Add a5xx specific registers for the GPU state

 drivers/gpu/drm/msm/adreno/a3xx_gpu.c   |  28 ++--
 drivers/gpu/drm/msm/adreno/a4xx_gpu.c   |  20 ++-
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c   | 238 ++++++++++++++++++++++++++++++--
 drivers/gpu/drm/msm/adreno/adreno_gpu.c | 148 +++++++++++++++++---
 drivers/gpu/drm/msm/adreno/adreno_gpu.h |   7 +-
 drivers/gpu/drm/msm/msm_debugfs.c       |  84 ++++++++++-
 drivers/gpu/drm/msm/msm_gpu.c           |  47 +++++--
 drivers/gpu/drm/msm/msm_gpu.h           |  58 +++++++-
 8 files changed, 567 insertions(+), 63 deletions(-)

-- 
1.9.1



More information about the Freedreno mailing list