mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] drm: mipi-dsi/msm/panel: add DSI batch transfer and s6e88a0-ams452ef01 backlight
@ 2026-11-29 13:00 Vladimir Bely
  2026-11-29 13:00 ` [PATCH 1/5] drm/mipi-dsi: add multi-message batch transfer support Vladimir Bely
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Vladimir Bely @ 2026-11-29 13:00 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	Neil Armstrong, Rob Clark, Dmitry Baryshkov
  Cc: David Airlie, Simona Vetter, Abhinav Kumar, Jessica Zhang,
	Sean Paul, Marijn Suijten, Stephan Gerhold, Michael Srba,
	dri-devel, linux-arm-msm, freedreno, linux-kernel, Vladimir Bely

This series adds multi-message batch transfer support to MIPI DSI and
drm/msm/dsi, together with its first user: Samsung AMS452EF01 (S6E88A0)
AMOLED backlight support.

On video-mode DSI hosts that must synchronize command transfers with
blanking (such as Qualcomm DSI 6G < v2.1 without hardware DMA line
scheduling), each separate mipi_dsi_host_ops.transfer() call waits for a
full frame cycle (~33 ms at 60 Hz).  Panels whose runtime brightness
updates require multiple DCS commands (e.g., Samsung S6E88A0 sending
test-key, AOR, ELVSS, gamma, latch, and test-key-off = 6 packets, 80
bytes total) consequently take ~200-230 ms per brightness step (~4.5
updates/sec), making slider drags and wake fade-in animations visibly
choppy and spreading AOR/ELVSS/gamma writes across multiple frames.

Qualcomm's DSI CMD DMA engine natively supports chaining multiple
packets in one DMA buffer by setting BIT(7) ("Last packet") only on the
last packet.  This series exposes that capability cleanly via an
optional .transfer_batch() host op and mipi_dsi_dcs_write_batch()
(falling back to sequential .transfer() calls on all other hosts),
implements multi-packet CMD DMA in drm/msm/dsi, and uses it in
panel-samsung-s6e88a0-ams452ef01.

Patches 3-5 supersede the earlier standalone panel series [1] so the new
mipi_dsi_dcs_write_batch() helper is submitted together with its first
in-tree caller:
- Patches 3-4 are unchanged from [1].
- Patch 5 replaces the 6 separate mipi_dsi_dcs_write_*_multi() calls in
  s6e88a0_ams452ef01_bl_update_status() with a single
  mipi_dsi_dcs_write_batch() call.

Tested on Samsung Galaxy A3 (SM-A300F, MSM8916, DSI 6G v1.3, rev C
AMS452EF01 panel): 20 consecutive brightness updates complete in 705 ms
(35 ms/update, ~6x faster than ~200 ms) with zero DSI/MDP errors and
smooth slider and wake fade transitions.

[1] https://lore.kernel.org/linux-arm-msm/20261129002512.993570-1-vlwwwwww@gmail.com/

Stephan Gerhold (1):
  drm/panel: s6e88a0-ams452ef01: set prepare_prev_first

Vladimir Bely (4):
  drm/mipi-dsi: add multi-message batch transfer support
  drm/msm/dsi: implement transfer_batch using multi-packet CMD DMA
  drm/panel: s6e88a0-ams452ef01: move display off to disable callback
  drm/panel: s6e88a0-ams452ef01: add backlight support

 drivers/gpu/drm/drm_mipi_dsi.c                |  98 +++
 drivers/gpu/drm/msm/dsi/dsi.h                 |   4 +
 drivers/gpu/drm/msm/dsi/dsi_host.c            | 187 +++-
 drivers/gpu/drm/msm/dsi/dsi_manager.c         |  40 +
 drivers/gpu/drm/panel/Kconfig                 |   1 +
 .../panel/panel-samsung-s6e88a0-ams452ef01.c  | 833 +++++++++++++++++-
 include/drm/drm_mipi_dsi.h                    |  21 +
 7 files changed, 1165 insertions(+), 19 deletions(-)


base-commit: 5ce32a0c94a827ff44ee60898c28060714dcff75
-- 
2.43.0


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

end of thread, other threads:[~2026-11-29 13:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 13:00 [PATCH 0/5] drm: mipi-dsi/msm/panel: add DSI batch transfer and s6e88a0-ams452ef01 backlight Vladimir Bely
2026-11-29 13:00 ` [PATCH 1/5] drm/mipi-dsi: add multi-message batch transfer support Vladimir Bely
2026-11-29 13:00 ` [PATCH 2/5] drm/msm/dsi: implement transfer_batch using multi-packet CMD DMA Vladimir Bely
2026-11-29 13:00 ` [PATCH 3/5] drm/panel: s6e88a0-ams452ef01: set prepare_prev_first Vladimir Bely
2026-11-29 13:00 ` [PATCH 4/5] drm/panel: s6e88a0-ams452ef01: move display off to disable callback Vladimir Bely
2026-11-29 13:00 ` [PATCH 5/5] drm/panel: s6e88a0-ams452ef01: add backlight support Vladimir Bely

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®