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)
commit1249dc1717381b37266201086d2806559d5715c1
treebbd7f0095daedef2ea5e53d437e8b3a2d3eba033
parent3ba09632ce8bd42d1e4b57a6a423dcab937e211b
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