FAILED: patch "[PATCH] drm/xe: Move DSB l2 flush to a more sensible place" failed to apply to 6.12-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.12-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.12.y
git checkout FETCH_HEAD
git cherry-pick -x a4b1b51ae132ac199412028a2df7b6c267888190
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025062922-dictate-payphone-2af2@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From a4b1b51ae132ac199412028a2df7b6c267888190 Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <[email protected]>
Date: Fri, 6 Jun 2025 11:45:47 +0100
Subject: [PATCH] drm/xe: Move DSB l2 flush to a more sensible place
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Flushing l2 is only needed after all data has been written.
drivers/gpu/drm/xe/display/xe_dsb_buffer.c +4 -7
@@ -17,10 +17,7 @@ u32 intel_dsb_buffer_ggtt_offset(struct intel_dsb_buffer *dsb_buf)void intel_dsb_buffer_write (struct intel_dsb_buffer *dsb_buf,u32 idx,u32 val) { -struct xe_device *xe = dsb_buf->vma->bo->tile->xe; -iosys_map_wr (&dsb_buf->vma->bo->vmap, idx *4 , u32, val); -xe_device_l2_flush (xe); }u32 intel_dsb_buffer_read (struct intel_dsb_buffer *dsb_buf,u32 idx)
@@ -30,12 +27,9 @@ u32 intel_dsb_buffer_read(struct intel_dsb_buffer *dsb_buf, u32 idx)void intel_dsb_buffer_memset (struct intel_dsb_buffer *dsb_buf,u32 idx,u32 val,size_t size) { -struct xe_device *xe = dsb_buf->vma->bo->tile->xe; -WARN_ON (idx > (dsb_buf->buf_size - size) /sizeof (*dsb_buf->cmd_buf));iosys_map_memset (&dsb_buf->vma->bo->vmap, idx *4 , val, size); -xe_device_l2_flush (xe); }bool intel_dsb_buffer_create (struct intel_crtc *crtc,struct intel_dsb_buffer *dsb_buf,size_t size)
@@ -74,9 +68,12 @@ void intel_dsb_buffer_cleanup(struct intel_dsb_buffer *dsb_buf)void intel_dsb_buffer_flush_map (struct intel_dsb_buffer *dsb_buf) { +struct xe_device *xe = dsb_buf->vma->bo->tile->xe; +/* * The memory barrier here is to ensure coherency of DSB vs MMIO, * both for weak ordering archs and discrete cards. */ -xe_device_wmb (dsb_buf->vma->bo->tile->xe); +xe_device_wmb (xe); +xe_device_l2_flush (xe); }