]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/uc: Remove redundant header_offset/size definitions
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 26 Jul 2019 18:42:10 +0000 (18:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Jul 2019 20:15:05 +0000 (21:15 +0100)
commit9fbd278ac6db2215c4f13d6e690baf4c1756a719
tree68323583acb1678a93678fa9966678ab3cb90f3d
parent9e76e477f8fd2c64a6e93d50ef99f0f1b72b824d
drm/i915/uc: Remove redundant header_offset/size definitions

According to Firmware layout definition, CSS header is located
in front of the firmware blob, so header offset is always 0.
Similarly, size of the CSS header is constant and currently
used version is exactly 128.

While here, move type/status enums up and keep them together.

v2: use sizeof consistently (Daniele), update commit message

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190726184212.1836-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
drivers/gpu/drm/i915/gt/uc/intel_uc_fw_abi.h