]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84b79872747f3ed18d4379febe9b9ce6ff1f149a
tree7f4dbf09ed71beb5c2ae71616145889d2b18317e
parentfd838c8f4b64ad7c17d9916bc1ebe85e21336197
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