]> 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)
commit4080daeac0ed236907fff5ab901f2d6716740cdc
tree1367c7aadb26163038693efcecb5dd12d830cbc2
parentc230cbe19b7b399cd586945f89c8bebb951a44d3
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