How to debug a DRM hang?
In general how can i debug DRM hang myself? Is there any utility that can look at the DRM crash dump and provide some meaningful observations/crash points? Any reference in this regard will be helpful.
I have a GPU hang as follows :
[drm] GPU HANG: ecode 9:0:0x84df7cfc, in <My Process> [9749], reason: Hang on render ring, action: reset
[drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM\/Intel
[drm] drm\/i915 developers can then reassign to the right component if it's not a kernel issue.
[drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[drm] GPU crash dump saved to \/sys\/class\/drm\/card0\/error
drm\/i915: Resetting chip after gpu hang
[drm] RC6 on
[drm] Got external EDID base block and 0 extensions from \"edid\/1024x600.bin\" for connector \"HDMI-A-3\"
drm\/i915: Resetting chip after gpu hang
[drm] RC6 on
[drm] GuC firmware load skipped
As per the instructions above, I have collected the GPU crash dump.
Although the contents of the crash dump are of ascii
format, I do not see any directly relevant information like call stacks etc.. Are there any DRM specific utilities/tools at disposal that can decode or do some preliminary analysis of this dump to provide more useful information?
Edited by Sandeep K