[Intel-gfx] [PATCH v2] drm/i915/huc: Normalize HuC status returned by I915_PARAM_HAS_HUC

Chris Wilson chris at chris-wilson.co.uk
Thu Oct 18 09:25:26 UTC 2018


Quoting Michal Wajdeczko (2018-10-17 20:52:45)
> In response for I915_PARAM_HAS_HUC we are returning value that
> indicates if HuC firmware was loaded and verified. However, our
> previously used positive value was based on specific register bit
> which is about to change on future platform. Let's normalize our
> return values to 0 and 1 before clients will start to use Gen9 value.
> 
> v2: use bool for implicit conversion (Chris)
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Michal Winiarski <michal.winiarski at intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Haihao Xiang <haihao.xiang at intel.com>
> Reviewed-by: Michał Winiarski <michal.winiarski at intel.com> #1
> Cc: Chris Wilson <chris at chris-wilson.co.uk>

And pushed, thanks for the patch and checking userspace to make sure it
hadn't sneakily started using the actual value.
-Chris


More information about the Intel-gfx mailing list