Skip to contentSkip to conversation

FAILED: patch "[PATCH] drm/msm/dpu: clear pending peripheral flush state" failed to apply to 6.12-stable tree

PATCH New [email protected] 2 participants 2 messages Sep 22

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The 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 a5b5cc909931572aec446e129c035b76b3f0c1fa
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026092219-snout-tubeless-0f8d@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..'

Possible dependencies:

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From a5b5cc909931572aec446e129c035b76b3f0c1fa Mon Sep 17 00:00:00 2001
From: Saim Shujah <[email protected]>
Date: Fri, 28 Aug 2026 11:54:40 +0500
Subject: [PATCH] drm/msm/dpu: clear pending peripheral flush state

dpu_hw_ctl_clear_pending_flush() resets the cached per-block state after a flush transaction, but misses pending_periph_flush_mask.

The peripheral flush updater accumulates interface bits in this mask. A later transaction which sets the top-level peripheral flush bit can write stale interface bits to CTL_PERIPH_FLUSH together with the current state.

Peripheral flush support was added after the helper started clearing every individual pending flush mask. Clear the peripheral mask together with the other cached child masks.

Fixes 64f7b81f0358 ("drm/msm/dpu: add support of new peripheral flush mechanism")

Patchwork: https://patchwork.freedesktop.org/patch/748968/

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c +1 -0
index 36a497f1d6c1..e8729fe1cfef 100644
@@ -118,6 +118,7 @@ static inline void dpu_hw_ctl_clear_pending_flush(struct dpu_hw_ctl *ctx)
 	ctx->pending_intf_flush_mask = 0;
 	ctx->pending_wb_flush_mask = 0;
 	ctx->pending_cwb_flush_mask = 0;
+	ctx->pending_periph_flush_mask = 0;
 	ctx->pending_merge_3d_flush_mask = 0;
 	ctx->pending_dsc_flush_mask = 0;
 	ctx->pending_cdm_flush_mask = 0;
maintainer
#1 lore raw

PATCH 1/1 drm/msm/dpu: clear pending peripheral flush state

From: Saim Shujah <[email protected]>

[ Upstream commit a5b5cc909931572aec446e129c035b76b3f0c1fa ]

dpu_hw_ctl_clear_pending_flush() resets the cached per-block state after a flush transaction, but misses pending_periph_flush_mask.

The peripheral flush updater accumulates interface bits in this mask. A later transaction which sets the top-level peripheral flush bit can write stale interface bits to CTL_PERIPH_FLUSH together with the current state.

Peripheral flush support was added after the helper started clearing every individual pending flush mask. Clear the peripheral mask together with the other cached child masks.

Fixes 64f7b81f0358 ("drm/msm/dpu: add support of new peripheral flush mechanism")

Patchwork: https://patchwork.freedesktop.org/patch/748968/

[ Adjusted context due to the missing pending_cwb_flush_mask field in Linux 6.12. ]
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c +1 -0
index 2e50049f2f850..b07d09171262d 100644
@@ -110,6 +110,7 @@ static inline void dpu_hw_ctl_clear_pending_flush(struct dpu_hw_ctl *ctx)
 	ctx->pending_flush_mask = 0x0;
 	ctx->pending_intf_flush_mask = 0;
 	ctx->pending_wb_flush_mask = 0;
+	ctx->pending_periph_flush_mask = 0;
 	ctx->pending_merge_3d_flush_mask = 0;
 	ctx->pending_dsc_flush_mask = 0;
 	ctx->pending_cdm_flush_mask = 0;
Signature · 1 line
2.53.0