]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe: Carve out wopcm portion from the stolen memory
authorNirmoy Das <nirmoy.das@intel.com>
Mon, 10 Feb 2025 14:36:54 +0000 (15:36 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 12 Feb 2025 14:08:24 +0000 (09:08 -0500)
commite977499820782ab1c69f354d9f41b6d9ad1f43d9
tree70bcb108fc225a906673510b12584a6777d2e8bc
parentfc876c9524e2a9f816f51d533ed31df789cff65a
drm/xe: Carve out wopcm portion from the stolen memory

The top of stolen memory is WOPCM, which shouldn't be accessed. Remove
this portion from the stolen memory region for discrete platforms.
This was already done for integrated, but was missing for discrete
platforms.

This also moves get_wopcm_size() so detect_bar2_dgfx() and
detect_bar2_integrated can use the same function.

v2: Improve commit message and suitable stable version tag(Lucas)

Fixes: d8b52a02cb40 ("drm/xe: Implement stolen memory.")
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: stable@vger.kernel.org # v6.11+
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250210143654.2076747-1-nirmoy.das@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
(cherry picked from commit 2c7f45cc7e197a792ce5c693e56ea48f60b312da)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c