[Intel-gfx] [PATCH v5 4/8] drm/i915/uc: Fully sanitize uC in uc_fini_hw
Sagar Arun Kamble
sagar.a.kamble at intel.com
Wed Mar 28 09:23:57 UTC 2018
On 3/28/2018 2:05 AM, Michal Wajdeczko wrote:
> Today uc_fini_hw is subset of uc_sanitize, but remaining
> code in sanitize function is also desired for uc_fini_hw.
> Instead of duplicating the code, just call uc_sanitize,
> but leave as separate function to maintain symmetry with
> uc_init_hw.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Sagar Arun Kamble <sagar.a.kamble at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble at intel.com>
> ---
> drivers/gpu/drm/i915/intel_uc.c | 14 ++------------
> 1 file changed, 2 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_uc.c b/drivers/gpu/drm/i915/intel_uc.c
> index ec90c81..46c4dc4 100644
> --- a/drivers/gpu/drm/i915/intel_uc.c
> +++ b/drivers/gpu/drm/i915/intel_uc.c
> @@ -433,19 +433,9 @@ int intel_uc_init_hw(struct drm_i915_private *dev_priv)
> return ret;
> }
>
> -void intel_uc_fini_hw(struct drm_i915_private *dev_priv)
> +void intel_uc_fini_hw(struct drm_i915_private *i915)
> {
> - struct intel_guc *guc = &dev_priv->guc;
> -
> - if (!USES_GUC(dev_priv))
> - return;
> -
> - GEM_BUG_ON(!HAS_GUC(dev_priv));
> -
> - if (USES_GUC_SUBMISSION(dev_priv))
> - intel_guc_submission_disable(guc);
> -
> - guc_disable_communication(guc);
> + intel_uc_sanitize(i915);
> }
>
> int intel_uc_suspend(struct drm_i915_private *i915)
--
Thanks,
Sagar
More information about the Intel-gfx
mailing list