[Intel-gfx] [PATCH 07/10] drm/i915/bdw: collect semaphore error state

Damien Lespiau damien.lespiau at intel.com
Mon Jul 14 12:04:22 CEST 2014


On Mon, Jun 30, 2014 at 09:53:41AM -0700, Rodrigo Vivi wrote:
> +	for_each_ring(useless, dev_priv, i) {
> +		u16 signal_offset =
> +			(GEN8_SIGNAL_OFFSET(ring, i) & PAGE_MASK) / 4;
> +		u32 *tmp = error->semaphore_obj->pages[0];
> +
> +		ering->semaphore_mboxes[i] = tmp[signal_offset];
> +		ering->semaphore_seqno[i] = ring->semaphore.sync_seqno[i];
> +	}
> +}

This loops around all the rings, but semaphore_mboxes[] and
semaphore_seqno[] are of size (I915_NUM_RINGS - 1).

-- 
Damien



More information about the Intel-gfx mailing list