[Intel-gfx] [PATCH] drm/i915: Decode RING_BUFFER_HEAD in error state
Chris Wilson
chris at chris-wilson.co.uk
Mon Apr 22 15:16:34 CEST 2013
On Sun, Apr 21, 2013 at 04:01:19PM -0700, Ben Widawsky wrote:
> I consistently forget how to decode the HEAD pointer. If we put it in
> the error state, one doesn't need to look in docs to find the relevant
> info.
>
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
Turn the offset into an address and that would be really useful - then
once can do a quick search on the value and jump straight into the right
point in the ring.
error->head[ring] & (0x7ffff << 2) + error->ring[ring].batchbuffer->gtt_offset
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list