[Intel-gfx] [PATCH] drm/i915: Convert vm->dev backpointer to vm->i915

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Nov 29 10:54:12 UTC 2016


On ti, 2016-11-29 at 09:50 +0000, Chris Wilson wrote:
> 99% of the time we access i915_address_space->dev we want the i915
> device and not the drm device, so let's store the drm_i915_private
> backpointer instead. The only real complication here are the inlines
> in i915_vma.h where drm_i915_private is not yet defined and so we have
> to choose an alternate path for our asserts.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Agreed. i915_vma.h can be untangled in the future.

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list