[PATCH v2 8/9] drm/meson: clear pending primary updates while disabled
Guillaume La Roque
glaroque at baylibre.com
Thu Dec 3 11:21:54 PST 2026
A flush with the primary plane disabled leaves its commit flag set.
When the plane is enabled again, an IRQ can consume its new register
cache before atomic_flush publishes the update.
Clear the pending flag at each vsync after handling OSD1, including
when the plane is disabled.
Fixes: cc0c43a0450c ("drm/meson: Use crtc_state for hdisplay and fix atomic flush/enable sync for vsync commit")
Signed-off-by: Guillaume La Roque <glaroque at baylibre.com>
---
drivers/gpu/drm/meson/meson_crtc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_crtc.c b/drivers/gpu/drm/meson/meson_crtc.c
index 70acb034b812..19412d0d7432 100644
--- a/drivers/gpu/drm/meson/meson_crtc.c
+++ b/drivers/gpu/drm/meson/meson_crtc.c
@@ -400,9 +400,8 @@ void meson_crtc_irq(struct meson_drm *priv)
priv->afbcd.ops->enable(priv);
meson_crtc->vsync_forced = true;
}
-
- priv->viu.osd[0].commit = false;
}
+ priv->viu.osd[0].commit = false;
spin_unlock_irqrestore(&priv->drm->event_lock, flags);
--
2.34.1
More information about the linux-arm-kernel
mailing list