]> www.infradead.org Git - users/jedix/linux-maple.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)
committerNirmoy Das <nirmoy.das@intel.com>
Tue, 11 Feb 2025 09:34:11 +0000 (10:34 +0100)
commit2c7f45cc7e197a792ce5c693e56ea48f60b312da
tree924cc5acf0a70078fb760569c96598a1ad3b3391
parentf74fd53ba34551b7626193fb70c17226f06e9bf1
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>
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c