Linux-Amlogic Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/9] drm/meson: add a second RGB plane on G12A
@ 2026-12-03 19:21 Guillaume La Roque
  2026-12-03 19:21 ` [PATCH v2 1/9] drm/meson: honor framebuffer offsets for the primary plane Guillaume La Roque
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Guillaume La Roque @ 2026-12-03 19:21 UTC (permalink / raw)
  To: Neil Armstrong, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl
  Cc: dri-devel, linux-amlogic, linux-arm-kernel, Simona Vetter,
	Guillaume La Roque

VD1 only accepts YUV buffers. Add OSD2 as a second RGB plane on G12A,
G12B and SM1.

OSD2 supports linear 32-bit RGB buffers, alpha blending and clipping.
Scaling, AFBC and interlaced output are not supported.

Tested on VIM3 with modetest and atomic KMS tests: 1080p, 720p, clipping,
framebuffer offsets, alpha and enable/disable cycles. Canvas pitch limits
and devices-only suspend/resume also pass. A green 100x100 OSD2 plane at
(1000,600) was checked against a border drawn by the primary plane.

Runtime testing is limited to VIM3 (G12B); G12A and SM1 are untested.

Based on v7.4-rc4. Built for arm64 with Clang and W=1.

---
Changes in v2:
- Address Neil's comments and add his Reviewed-by tags.
- Keep the AFBC preparation in the OSD2 patch.
- Lock the legacy CRTC disable path against the IRQ.
- Split out the OSD1 pending-update fix, which also applies to older SoCs.
- Bypass the OSD2 RGB-to-YUV matrix on DSI.
- Flush OSD2 only when its plane is part of the atomic commit.
- Document the DIN0/DIN3 bypass paths and check an offset overlay on VIM3.
- Link to v1: https://patch.msgid.link/20261130-meson-g12a-osd2-v1-0-aa982300c20e@baylibre.com

---
Guillaume La Roque (9):
      drm/meson: honor framebuffer offsets for the primary plane
      drm/meson: isolate primary plane scaler setup
      drm/meson: keep RGB scanout state per OSD
      drm/meson: parameterize the G12A OSD color matrix setup
      drm/meson: handle primary plane zpos allocation failure
      drm/meson: select RGB plane registers by OSD index
      drm/meson: serialize OSD state updates with the IRQ
      drm/meson: clear pending primary updates while disabled
      drm/meson: add a linear RGB overlay on G12A OSD2

 drivers/gpu/drm/meson/meson_crtc.c        | 143 ++++++++---
 drivers/gpu/drm/meson/meson_drv.c         |  25 +-
 drivers/gpu/drm/meson/meson_drv.h         |  45 +++-
 drivers/gpu/drm/meson/meson_encoder_dsi.c |   2 +
 drivers/gpu/drm/meson/meson_osd_afbcd.c   |  36 +--
 drivers/gpu/drm/meson/meson_plane.c       | 409 +++++++++++++++++++-----------
 drivers/gpu/drm/meson/meson_plane.h       |   2 +-
 drivers/gpu/drm/meson/meson_registers.h   |   5 +
 drivers/gpu/drm/meson/meson_viu.c         |  52 ++--
 9 files changed, 481 insertions(+), 238 deletions(-)
---
base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
change-id: 20261124-meson-g12a-osd2-24b18a3c10c8

Best regards,
--  
Guillaume La Roque <glaroque@baylibre.com>


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-12-03 20:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 19:21 [PATCH v2 0/9] drm/meson: add a second RGB plane on G12A Guillaume La Roque
2026-12-03 19:21 ` [PATCH v2 1/9] drm/meson: honor framebuffer offsets for the primary plane Guillaume La Roque
2026-12-03 19:31   ` Neil Armstrong
2026-12-03 19:43   ` sashiko-bot
2026-12-03 19:21 ` [PATCH v2 2/9] drm/meson: isolate primary plane scaler setup Guillaume La Roque
2026-12-03 19:32   ` Neil Armstrong
2026-12-03 19:21 ` [PATCH v2 3/9] drm/meson: keep RGB scanout state per OSD Guillaume La Roque
2026-12-03 19:32   ` Neil Armstrong
2026-12-03 19:21 ` [PATCH v2 4/9] drm/meson: parameterize the G12A OSD color matrix setup Guillaume La Roque
2026-12-03 19:21 ` [PATCH v2 5/9] drm/meson: handle primary plane zpos allocation failure Guillaume La Roque
2026-12-03 19:21 ` [PATCH v2 6/9] drm/meson: select RGB plane registers by OSD index Guillaume La Roque
2026-12-03 19:21 ` [PATCH v2 7/9] drm/meson: serialize OSD state updates with the IRQ Guillaume La Roque
2026-12-03 19:33   ` Neil Armstrong
2026-12-03 19:21 ` [PATCH v2 8/9] drm/meson: clear pending primary updates while disabled Guillaume La Roque
2026-12-03 19:21 ` [PATCH v2 9/9] drm/meson: add a linear RGB overlay on G12A OSD2 Guillaume La Roque
2026-12-03 19:34   ` Neil Armstrong
     [not found] ` <f6fd5020-f64f-484b-a922-e8ff207c3626@linaro.org>
2026-12-03 19:58   ` [PATCH v2 0/9] drm/meson: add a second RGB plane on G12A Guillaume La Roque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox