[Intel-gfx] [PATCH] drm/i915: Add a debugfs file to dump complete context

Chris Wilson chris at chris-wilson.co.uk
Thu Aug 25 15:13:13 UTC 2016


On Thu, Aug 25, 2016 at 03:19:15PM +0100, Arun Siluvery wrote:
> From: Armin Reese <armin.c.reese at intel.com>
> 
> A 'cat' of the debugfs file i915_dump_lrc, dumps only the first 0x600(1536)
> bytes of each ring's register state context. It does not provide
> information about the remaining portion of the register state context.
> This patch adds new file i915_dump_lrc_complete which displays full
> register state context. Being able to view the latter in its entirety will
> be very useful in debugging issues arising from incorrect context setup.

When I've been debugging context problems, I just dumped the image via
the CONTEXT_GETPARAM ioctl. Helped when looking at problems in situ and
I could then compare the images across the break point.

Dumping every page of every context object is not going to scale well,
my basic fear is that you will lose the information you need amongst the
noise. Especially as you will quickly run into the limits of seq_file...
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list