]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/uc: Move FW size sanity check back to fetch
authorMichał Winiarski <michal.winiarski@intel.com>
Fri, 16 Aug 2019 10:54:57 +0000 (10:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Aug 2019 15:49:57 +0000 (16:49 +0100)
commit8f7c92fca151b8aeb7da1f63c75294b88343f6c4
treebbd7f0095daedef2ea5e53d437e8b3a2d3eba033
parent9615ca43422b43023dad456935872dd9fa1e9b19
drm/i915/uc: Move FW size sanity check back to fetch

While we need to know WOPCM size to do this sanity check, it has more to
do with FW than with WOPCM. Let's move the check to fetch phase, it's
not like WOPCM is going to grow in the meantime.

v2: rebased
v3: use __intel_uc_fw_get_upload_size (Daniele)

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jackie Li <yaodong.li@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.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/20190816105501.31020-2-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/intel_wopcm.c