]> 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)
commit7901cceab6561badcbc836b81134328e5e56aca4
tree68323583acb1678a93678fa9966678ab3cb90f3d
parent28d944afe87d317a3f16c363c1fb941bf78fd2d5
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