drm/i915: Split i915_gem_init_stolen()
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 16 Sep 2022 17:36:07 +0000 (10:36 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 22 Sep 2022 13:43:30 +0000 (06:43 -0700)
commit3d99597c6496b9319f7522e0d073afab314d518a
tree86a91e54a16b772a9cea18f19476864702a5cd2a
parente5f415bfc5c2c94fbb124f8aabfc638168a44cf4
drm/i915: Split i915_gem_init_stolen()

Add some helpers: adjust_stolen(), request_smem_stolen_() and
init_reserved_stolen() that are now called by i915_gem_init_stolen() to
initialize each part of the Data Stolen Memory region.

Main goal is to split the reserved part within the stolen, also known as
WOPCM, as its calculation changes often per platform and is a big source
of confusion when handling stolen memory.

Reviewed-by: Wayne Boyer <wayne.boyer@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220915-stolen-v2-2-20ff797de047@intel.com
drivers/gpu/drm/i915/gem/i915_gem_stolen.c