]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Use to_gt() helper for GGTT accesses
authorMichał Winiarski <michal.winiarski@intel.com>
Tue, 21 Dec 2021 19:59:46 +0000 (21:59 +0200)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 5 Jan 2022 18:33:44 +0000 (10:33 -0800)
commitc8c2aa5db49448cad88bfa21bfa61fa06d9c9d1e
tree312a178ef0f335dc267c536ae45a50069a6c81bb
parent518c93fcd465624b758514bdd5dfc9b1cc276ceb
drm/i915/gt: Use to_gt() helper for GGTT accesses

GGTT is currently available both through i915->ggtt and gt->ggtt, and we
eventually want to get rid of the i915->ggtt one.
Use to_gt() for all i915->ggtt accesses to help with the future
refactoring.

During the probe of i915 the early intiialization of the gt
(intel_gt_init_hw_early()) is moved prior to any access to the
ggtt. This because it's in that moment we assign the ggtt to the
gt and we want to do that before using it.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211221195946.3180-1-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c
drivers/gpu/drm/i915/gt/intel_region_lmem.c
drivers/gpu/drm/i915/gt/selftest_reset.c
drivers/gpu/drm/i915/i915_drv.c