]> 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)
commit09873fa26087a2e4a06e295e86b5a798e9929a8a
tree6a005264330dbbe32b696d9079320bbbca6e1c4c
parent6f5cc60dbb74c7728802a855ecae4573706eeb92
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