From: Guillaume La Roque <glaroque@baylibre.com>
To: Neil Armstrong <neil.armstrong@linaro.org>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>,
Simona Vetter <simona@ffwll.ch>,
Kevin Hilman <khilman@baylibre.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: dri-devel@lists.freedesktop.org,
linux-amlogic@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
Simona Vetter <simona.vetter@ffwll.ch>,
linux-kernel@vger.kernel.org,
Guillaume La Roque <glaroque@baylibre.com>
Subject: [PATCH v3 8/9] drm/meson: clear pending primary updates while disabled
Date: Thu, 03 Dec 2026 20:55:56 +0100 [thread overview]
Message-ID: <20261203-meson-g12a-osd2-v3-8-2cf76729b5d5@baylibre.com> (raw)
In-Reply-To: <20261203-meson-g12a-osd2-v3-0-2cf76729b5d5@baylibre.com>
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@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
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2026-12-03 19:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 19:55 [PATCH v3 0/9] drm/meson: add a second RGB plane on G12A Guillaume La Roque
2026-12-03 19:55 ` [PATCH v3 1/9] drm/meson: honor framebuffer offsets for the primary plane Guillaume La Roque
2026-12-03 20:18 ` sashiko-bot
2026-12-03 19:55 ` [PATCH v3 2/9] drm/meson: isolate primary plane scaler setup Guillaume La Roque
2026-12-03 19:55 ` [PATCH v3 3/9] drm/meson: keep RGB scanout state per OSD Guillaume La Roque
2026-12-03 20:21 ` sashiko-bot
2026-12-03 19:55 ` [PATCH v3 4/9] drm/meson: parameterize the G12A OSD color matrix setup Guillaume La Roque
2026-12-03 19:55 ` [PATCH v3 5/9] drm/meson: handle primary plane zpos allocation failure Guillaume La Roque
2026-12-03 19:55 ` [PATCH v3 6/9] drm/meson: select RGB plane registers by OSD index Guillaume La Roque
2026-12-03 19:55 ` [PATCH v3 7/9] drm/meson: serialize OSD state updates with the IRQ Guillaume La Roque
2026-12-03 19:55 ` Guillaume La Roque [this message]
2026-12-03 20:41 ` [PATCH v3 8/9] drm/meson: clear pending primary updates while disabled sashiko-bot
2026-12-03 19:55 ` [PATCH v3 9/9] drm/meson: add a linear RGB overlay on G12A OSD2 Guillaume La Roque
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203-meson-g12a-osd2-v3-8-2cf76729b5d5@baylibre.com \
--to=glaroque@baylibre.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=simona.vetter@ffwll.ch \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®