drm/i915/guc: Convert golden context init to iosys_map
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 16 Feb 2022 17:41:37 +0000 (09:41 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Feb 2022 23:23:21 +0000 (15:23 -0800)
commit219aada263f909d61443a8d1196592797c6e0281
treed854891f61a2aa95504bed6b1c3282b10a87d04a
parent91a33f7e20700d58941b38bcf8eca0d0b281ddb0
drm/i915/guc: Convert golden context init to iosys_map

Now the map is saved during creation, so use it to initialize the
golden context, reading from shmem and writing to either system or IO
memory.

v2: Do not use a map iterator: add an offset to keep track of
destination

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-7-lucas.demarchi@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c