]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/uc: Hardening firmware fetch
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 7 Aug 2019 18:37:59 +0000 (18:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Aug 2019 20:17:36 +0000 (21:17 +0100)
commita9834631298ad4a9a96b5697fe6a3a7f04589160
tree6a005264330dbbe32b696d9079320bbbca6e1c4c
parentbf869d8ea09e43474bf6d3003a21d5fe62c156ab
drm/i915/uc: Hardening firmware fetch

Insert few more failure points into firmware fetch procedure to check
use of the wrong blob name or use of the mismatched firmware versions.

Also update some messages (remove ptr, duplicated infos) and stop
treating all fetch errors as missing firmware case.

v2: update log levels (Chris)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[ickle: fixup compiler warning for non-debug builds]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190807183759.8588-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h