[Intel-gfx] [RFC PATCH 03/11] drm/i915/uc: add dev_priv parameter to intel_uc_is_using_* functions
Michal Wajdeczko
michal.wajdeczko at intel.com
Fri Dec 21 14:59:45 UTC 2018
On Fri, 21 Dec 2018 14:31:38 +0100, Jani Nikula <jani.nikula at intel.com>
wrote:
/snip/
> diff --git a/drivers/gpu/drm/i915/intel_uc.h
> b/drivers/gpu/drm/i915/intel_uc.h
> index 25d73ada74ae..24990ade4fb8 100644
> --- a/drivers/gpu/drm/i915/intel_uc.h
> +++ b/drivers/gpu/drm/i915/intel_uc.h
> @@ -41,19 +41,19 @@ void intel_uc_fini(struct drm_i915_private
> *dev_priv);
> int intel_uc_suspend(struct drm_i915_private *dev_priv);
> int intel_uc_resume(struct drm_i915_private *dev_priv);
> -static inline bool intel_uc_is_using_guc(void)
> +static inline bool intel_uc_is_using_guc(struct drm_i915_private
> *dev_priv)
please s/dev_priv/i915
> {
> GEM_BUG_ON(i915_modparams.enable_guc < 0);
> return i915_modparams.enable_guc > 0;
> }
> -static inline bool intel_uc_is_using_guc_submission(void)
> +static inline bool intel_uc_is_using_guc_submission(struct
> drm_i915_private *dev_priv)
and here
> {
> GEM_BUG_ON(i915_modparams.enable_guc < 0);
> return i915_modparams.enable_guc & ENABLE_GUC_SUBMISSION;
> }
> -static inline bool intel_uc_is_using_huc(void)
> +static inline bool intel_uc_is_using_huc(struct drm_i915_private
> *dev_priv)
and here
> {
> GEM_BUG_ON(i915_modparams.enable_guc < 0);
> return i915_modparams.enable_guc & ENABLE_GUC_LOAD_HUC;
Thanks,
Michal
More information about the Intel-gfx
mailing list