drm/i915/uc: Make unexpected firmware versions an error in debug builds
authorJohn Harrison <John.C.Harrison@Intel.com>
Tue, 2 May 2023 23:40:07 +0000 (16:40 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 5 May 2023 22:33:58 +0000 (15:33 -0700)
commit760133d42f0adc92b8408ad5544c98f8aefbc75f
treeb213df9b29b0a88c1b3ece97aea71b23843d63f2
parentbef550c952a71df6a6e86b11bdac5b10dac29163
drm/i915/uc: Make unexpected firmware versions an error in debug builds

If the DEBUG_GEM config option is set then escalate the 'unexpected
firmware version' message from a notice to an error. This will ensure
that the CI system treats such occurences as a failure and logs a bug
about it (or fails the pre-merge testing).

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230502234007.1762014-7-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c