[PATCH] drm/i915: Decode RING_BUFFER_HEAD in error state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux