[Intel-gfx] [PATCH v3] drm/i915: Sanitize engine context sizes

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 27 09:13:00 UTC 2017


On Thu, Apr 27, 2017 at 12:01:11PM +0300, Joonas Lahtinen wrote:
> Pre-calculate engine context size based on engine class and device
> generation and store it in the engine instance.
> 
> v2:
> 	- Squash and get rid of hw_context_size (Chris)
> 
> v3:
> 	- Move after MMIO init for probing on Gen7 and 8 (Chris)
> 	- Retained rounding (Tvrtko)
> 
> Signed-off-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Paulo Zanoni <paulo.r.zanoni at intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Oscar Mateo <oscar.mateo at intel.com>
> Cc: Zhenyu Wang <zhenyuw at linux.intel.com>
> Cc: intel-gvt-dev at lists.freedesktop.org
> Acked-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Lgtm, though I did wish you would kill HAS_HW_CONTEXT after all that.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list