]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/huc: Normalize HuC status returned by I915_PARAM_HAS_HUC
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 17 Oct 2018 19:52:45 +0000 (19:52 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Oct 2018 09:20:08 +0000 (10:20 +0100)
commit1a49f537c5046fb15f3f72f89c51180646dd7ae8
treebc20bb86302e6ebf24407781cd5670a8c42db6f8
parentbbb8a9d7e000c906f490780fab1c64faa1d08604
drm/i915/huc: Normalize HuC status returned by I915_PARAM_HAS_HUC

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@intel.com>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Haihao Xiang <haihao.xiang@intel.com>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com> #1
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181017195245.39644-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_huc.c