]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/huc: fix version parsing from CSS header
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 25 Sep 2019 22:21:21 +0000 (15:21 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 27 Sep 2019 17:20:20 +0000 (10:20 -0700)
commitc1c78bace122f7659442e6164ae8dafbdf564e0a
tree1367c7aadb26163038693efcecb5dd12d830cbc2
parent59efca4b1d0dcae7ae6fa9fd2b6a0a487be3cef9
drm/i915/huc: fix version parsing from CSS header

The HuC FW has silently switched to encoding the version the same way as
the GuC FW does, i.e. major.minor.patch instead of just major.minor. All
the current blobs follow the new scheme, but since minor and patch are
both zero there is no difference in the end results and we happily load
them. New binaries, however, will have non-zero values in there, so we
need to make sure to parse them correctly.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Acked-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190925222121.4000-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw_abi.h