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)
commit901045c3f0f43566f9a8a2f5716c2c0a497979e6
tree1367c7aadb26163038693efcecb5dd12d830cbc2
parent9cd6c339e34ab13479fb139b0b9f5ffc9743bfc1
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