@@ -101,10 +101,8 @@ static void gen8_guc_raise_irq(struct intel_guc *guc)
I915_WRITE(GUC_SEND_INTERRUPT, GUC_SEND_TRIGGER);
}
-void intel_uc_init_early(struct drm_i915_private *dev_priv)
+static inline void intel_guc_init_early(struct intel_guc *guc)
{
- struct intel_guc *guc = &dev_priv->guc;
-
intel_guc_ct_init_early(&guc->ct);
mutex_init(&guc->send_mutex);
@@ -112,6 +110,11 @@ void intel_uc_init_early(struct drm_i915_private *dev_priv)
guc->notify = gen8_guc_raise_irq;
}
+void intel_uc_init_early(struct drm_i915_private *dev_priv)
+{
+ intel_guc_init_early(&dev_priv->guc);
+}
+
static void fetch_uc_fw(struct drm_i915_private *dev_priv,
struct intel_uc_fw *uc_fw)
{
Prepared intel_guc_init_early for GuC Specific early initialization to be done from intel_uc_init_early. Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: MichaĆ Winiarski <michal.winiarski@intel.com> Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> --- drivers/gpu/drm/i915/intel_uc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)