Commit 4ecd56fd authored by Matt Roper's avatar Matt Roper Committed by Joonas Lahtinen

drm/i915: Rename and expose common GT early init routine

The common early GT init is needed for initialization of all GT types
(root/primary, remote tile, standalone media).  Since standalone media
(coming in a future patch) will be implemented in a separate file,
rename and expose the function for use.
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Reviewed-by: default avatarRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220906234934.3655440-7-matthew.d.roper@intel.comSigned-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
parent 70fff19a
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "intel_uncore.h" #include "intel_uncore.h"
#include "shmem_utils.h" #include "shmem_utils.h"
static void __intel_gt_init_early(struct intel_gt *gt) void intel_gt_common_init_early(struct intel_gt *gt)
{ {
spin_lock_init(&gt->irq_lock); spin_lock_init(&gt->irq_lock);
...@@ -64,7 +64,7 @@ void intel_root_gt_init_early(struct drm_i915_private *i915) ...@@ -64,7 +64,7 @@ void intel_root_gt_init_early(struct drm_i915_private *i915)
gt->i915 = i915; gt->i915 = i915;
gt->uncore = &i915->uncore; gt->uncore = &i915->uncore;
__intel_gt_init_early(gt); intel_gt_common_init_early(gt);
} }
static int intel_gt_probe_lmem(struct intel_gt *gt) static int intel_gt_probe_lmem(struct intel_gt *gt)
...@@ -788,7 +788,7 @@ static int intel_gt_tile_setup(struct intel_gt *gt, phys_addr_t phys_addr) ...@@ -788,7 +788,7 @@ static int intel_gt_tile_setup(struct intel_gt *gt, phys_addr_t phys_addr)
gt->uncore = uncore; gt->uncore = uncore;
__intel_gt_init_early(gt); intel_gt_common_init_early(gt);
} }
intel_uncore_init_early(gt->uncore, gt); intel_uncore_init_early(gt->uncore, gt);
......
...@@ -44,6 +44,7 @@ static inline struct intel_gt *gsc_to_gt(struct intel_gsc *gsc) ...@@ -44,6 +44,7 @@ static inline struct intel_gt *gsc_to_gt(struct intel_gsc *gsc)
return container_of(gsc, struct intel_gt, gsc); return container_of(gsc, struct intel_gt, gsc);
} }
void intel_gt_common_init_early(struct intel_gt *gt);
void intel_root_gt_init_early(struct drm_i915_private *i915); void intel_root_gt_init_early(struct drm_i915_private *i915);
int intel_gt_assign_ggtt(struct intel_gt *gt); int intel_gt_assign_ggtt(struct intel_gt *gt);
int intel_gt_init_mmio(struct intel_gt *gt); int intel_gt_init_mmio(struct intel_gt *gt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment