drm/i915/guc: Keep iosys_map of ads_blob around
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 16 Feb 2022 17:41:35 +0000 (09:41 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Feb 2022 23:23:19 +0000 (15:23 -0800)
commit1c0b1175e6f3729c91835f179eb9c97b5067bb3a
tree72f6be5fa2b260a19531a6bfec628cc5f772cd83
parent9659dd2b308bde4143855f5b57b0412be466eb8a
drm/i915/guc: Keep iosys_map of ads_blob around

Convert intel_guc_ads_create() and initialization to use iosys_map
rather than plain pointer and save it in the guc struct. This will help
with additional updates to the ads_blob after the
creation/initialization by abstracting the IO vs system memory.

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220216174147.3073235-5-lucas.demarchi@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc.h
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c