[Intel-gfx] [PATCH 1/4] drm/i915/guc: Move shared data allocation away from submission path

Chris Wilson chris at chris-wilson.co.uk
Mon Dec 11 15:19:39 UTC 2017


Quoting MichaƂ Winiarski (2017-12-11 15:12:53)
> +int intel_guc_init(struct intel_guc *guc)
> +{
> +       struct drm_i915_private *dev_priv = guc_to_i915(guc);
> +       int ret;
> +
> +       ret = guc_shared_data_create(guc);
> +       if (ret)
> +               return ret;
> +       GEM_BUG_ON(!guc->shared_data);
> +
> +       /* We need to notify the guc whenever we change the GGTT */
> +       i915_ggtt_enable_guc(dev_priv);

Hmm, I think we want to call i915_ggtt_invalidate() from
i915_ggtt_enable_guc(). Care to include a patch?
-Chris


More information about the Intel-gfx mailing list