Files
linux-stable-mirror/drivers/gpu/drm/xe
Sasha Levin ab64e42864 drm/xe: Carve out wopcm portion from the stolen memory
[ Upstream commit e977499820 ]

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: d8b52a02cb ("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 2c7f45cc7e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:01:49 +02:00
..
2025-06-04 14:43:53 +02:00
2024-08-30 10:51:09 +02:00
2025-06-27 11:11:44 +01:00
2025-07-06 11:01:46 +02:00
2024-07-17 09:47:15 -07:00
2024-07-22 12:53:04 +02:00
2024-08-27 14:09:45 +02:00
2025-05-29 11:02:27 +02:00
2025-05-29 11:02:27 +02:00
2024-08-27 14:09:45 +02:00
2025-06-04 14:43:53 +02:00
2024-07-24 09:05:37 -07:00