[Intel-gfx] [PATCH 07/11] drm/i915/uc: move GuC/HuC inside intel_gt under a new intel_uc
Chris Wilson
chris at chris-wilson.co.uk
Sat Jul 13 10:32:04 UTC 2019
Quoting Chris Wilson (2019-07-13 11:00:12)
> From: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
>
> Being part of the GT HW, it make sense to keep the guc/huc structures
> inside the GT structure. To help with the encapsulation work done by the
> following patches, both structures are placed inside a new intel_uc
> container. Although this results in code with ugly nested dereferences
> (i915->gt.uc.guc...), it saves us the extra work required in moving
> the structures twice (i915 -> gt -> uc). The following patches will
> reduce the number of places where we try to access the guc/huc
> structures directly from i915 and reduce the ugliness.
>
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
More information about the Intel-gfx
mailing list