FAILED: patch "[PATCH] drm/xe: Fix DPT allocation paths." failed to apply to 6.18-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.18-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y
git checkout FETCH_HEAD
git cherry-pick -x fc648757908304aedbad74f74bf58192aec383db
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026082004-haphazard-giggling-e1f0@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From fc648757908304aedbad74f74bf58192aec383db Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <[email protected]>
Date: Tue, 30 Jun 2026 15:55:20 +0200
Subject: [PATCH] drm/xe: Fix DPT allocation paths.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Remove the fallback for VRAM to system memory, I tested it and that doesn't work at all, only a black screen with pipe fault errors were observed.
On systems with media GT, extra latency is added when accessing stolen memory when the GT is in MC6. Since we additionally aren't counting how much memory is used for stolen and we could in theory fill up the entire stolen area with DPT's, avoid using stolen and only use the default memory region.
Using stolen may also result in random system hangs under load.
drivers/gpu/drm/xe/display/xe_fb_pin.c +8 -25
@@ -164,31 +164,14 @@ static int __xe_pin_fb_vma_dpt(struct drm_gem_object *obj, dpt_size =ALIGN (intel_rotation_info_size (&view->rotated) *8 ,XE_PAGE_SIZE ); -if (IS_DGFX (xe)) - dpt =xe_bo_create_pin_map_at_novm (xe, tile0, - dpt_size, ~0ull , - ttm_bo_type_kernel, -XE_BO_FLAG_VRAM0 | -XE_BO_FLAG_GGTT | -XE_BO_FLAG_PAGETABLE , - pin_params->alignment, false); -else - dpt =xe_bo_create_pin_map_at_novm (xe, tile0, - dpt_size, ~0ull , - ttm_bo_type_kernel, -XE_BO_FLAG_STOLEN | -XE_BO_FLAG_GGTT | -XE_BO_FLAG_PAGETABLE , - pin_params->alignment, false); -if (IS_ERR (dpt)) - dpt =xe_bo_create_pin_map_at_novm (xe, tile0, - dpt_size, ~0ull , - ttm_bo_type_kernel, -XE_BO_FLAG_SYSTEM | -XE_BO_FLAG_GGTT | -XE_BO_FLAG_PAGETABLE | -XE_BO_FLAG_FORCE_WC , - pin_params->alignment, false); + dpt =xe_bo_create_pin_map_at_novm (xe, tile0, + dpt_size, ~0ull , + ttm_bo_type_kernel, +XE_BO_FLAG_VRAM_IF_DGFX (tile0) | +XE_BO_FLAG_GGTT | +XE_BO_FLAG_PAGETABLE | +XE_BO_FLAG_FORCE_WC , + pin_params->alignment, false);if (IS_ERR (dpt))return PTR_ERR (dpt);
Sasha Levin
maintainerPATCH 1/1 drm/xe: Fix DPT allocation paths.
From: Maarten Lankhorst <[email protected]>
[ Upstream commit fc648757908304aedbad74f74bf58192aec383db ]
Remove the fallback for VRAM to system memory, I tested it and that doesn't work at all, only a black screen with pipe fault errors were observed.
On systems with media GT, extra latency is added when accessing stolen memory when the GT is in MC6. Since we additionally aren't counting how much memory is used for stolen and we could in theory fill up the entire stolen area with DPT's, avoid using stolen and only use the default memory region.
Using stolen may also result in random system hangs under load.
--- drivers/gpu/drm/xe/display/xe_fb_pin.c | 32 +++++++------------------- 1 file changed, 8 insertions(+), 24 deletions(-)
drivers/gpu/drm/xe/display/xe_fb_pin.c +8 -24
@@ -101,30 +101,14 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb, dpt_size =ALIGN (intel_rotation_info_size (&view->rotated) *8 ,XE_PAGE_SIZE ); -if (IS_DGFX (xe)) - dpt =xe_bo_create_pin_map_at_novm (xe, tile0, - dpt_size, ~0ull , - ttm_bo_type_kernel, -XE_BO_FLAG_VRAM0 | -XE_BO_FLAG_GGTT | -XE_BO_FLAG_PAGETABLE , - alignment, false); -else - dpt =xe_bo_create_pin_map_at_novm (xe, tile0, - dpt_size, ~0ull , - ttm_bo_type_kernel, -XE_BO_FLAG_STOLEN | -XE_BO_FLAG_GGTT | -XE_BO_FLAG_PAGETABLE , - alignment, false); -if (IS_ERR (dpt)) - dpt =xe_bo_create_pin_map_at_novm (xe, tile0, - dpt_size, ~0ull , - ttm_bo_type_kernel, -XE_BO_FLAG_SYSTEM | -XE_BO_FLAG_GGTT | -XE_BO_FLAG_PAGETABLE , - alignment, false); + dpt =xe_bo_create_pin_map_at_novm (xe, tile0, + dpt_size, ~0ull , + ttm_bo_type_kernel, +XE_BO_FLAG_VRAM_IF_DGFX (tile0) | +XE_BO_FLAG_GGTT | +XE_BO_FLAG_PAGETABLE | +XE_BO_FLAG_SCANOUT , + alignment, false);if (IS_ERR (dpt))return PTR_ERR (dpt);
Signature · 1 line
2.53.0