drm/i915/huc: Add more errors for I915_PARAM_HUC_STATUS
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 30 Mar 2020 11:33:02 +0000 (13:33 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Mar 2020 14:21:33 +0000 (15:21 +0100)
commit2da48b1f888d70c008ab7a4c15d60e3421fe4a22
tree7f4dbf09ed71beb5c2ae71616145889d2b18317e
parent106d4ffd6cb8f15f3b66c0f64c16dfeda4f395e2
drm/i915/huc: Add more errors for I915_PARAM_HUC_STATUS

There might be many reasons why we failed to successfully
load and authenticate HuC firmware, but today we only use
single error in case of no HuC hardware. Add some more
error codes for most common cases (disabled, not installed,
corrupted or mismatched firmware).

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Tony Ye <tony.ye@intel.com>
Cc: Robert M. Fosha <robert.m.fosha@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200330113302.1670-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_huc.c