mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: Valeriy.Yatsenko@bshg.com, simon.holesch@bshg.com,
	michael@amarulasolutions.com, linux-amarula@amarulasolutions.com,
	"Leonhard Hesse" <leonhard.hesse@bshg.com>,
	"Màxim Pedraza Padilla" <maximpedraza@gmail.com>,
	"Dario Binacchi" <dario.binacchi@amarulasolutions.com>,
	"Andrzej Hajda" <andrzej.hajda@intel.com>,
	"David Airlie" <airlied@gmail.com>,
	"Fabio Estevam" <festevam@gmail.com>,
	"Frank Li" <Frank.Li@nxp.com>, "Inki Dae" <inki.dae@samsung.com>,
	"Jagan Teki" <jagan@amarulasolutions.com>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Jessica Zhang" <jesszhan0024@gmail.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Marek Szyprowski" <m.szyprowski@samsung.com>,
	"Marek Vasut" <marex@denx.de>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Pengutronix Kernel Team" <kernel@pengutronix.de>,
	"Robert Foss" <rfoss@kernel.org>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Stefan Agner" <stefan@agner.ch>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	dri-devel@lists.freedesktop.org, imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [RFC PATCH v2 0/6] drm: State readout for the i.MX8MN display pipeline
Date: Wed,  2 Dec 2026 11:38:48 +0100	[thread overview]
Message-ID: <20261202103901.577431-1-dario.binacchi@amarulasolutions.com> (raw)

This series implements the hardware state readout [1] for the display
pipeline of the i.MX8MN (LCDIF, Samsung DSIM, Synaptics R63353 panel),
so that the splash screen shown by the bootloader stays on, without a
modeset, until a client draws.

The first patch adds the hook a panel needs to acquire its resources
when it is found enabled, without being reset and initialized again.
It is a proposal for the panel takeover left open by the last patch
of [1].

The series is based on [1] and on the panel fixes [2]. It needs [3]
to keep the power domains of the display on, and a bootloader that
sets up the pipeline as Linux does [4].

Tested on i.MX8MN (BSH SMM S2 PRO).

[1] https://lore.kernel.org/r/20261127-drm-state-readout-v10-0-0259582d45a8@kernel.org
[2] https://lore.kernel.org/r/20261202100443.565075-1-dario.binacchi@amarulasolutions.com
[3] https://lore.kernel.org/r/20261122205136.138173-1-dario.binacchi@amarulasolutions.com
[4] https://lore.kernel.org/r/20261202102716.572884-1-dario.binacchi@amarulasolutions.com

Changes in v2:
- Rename the hook to sro_enable_resources
- Call the hook from the panel bridge install state added by the
  state readout series
- Set the atomic_sro_install_state hook of the mode config helpers
- Use drm_atomic_helper_sro_find_refresh_from_clk() for the mode
  clock
- Use drm_atomic_helper_sro_create_gem_dma_object() for the
  framebuffer read out
- Use drm_atomic_helper_plane_compare_state()
- Update the atomic_sro_install_state hook to its new prototype
- Save the mode read out from the hardware, as no mode_set is run and
  the PLL is configured from it when the bridge is enabled again
- Rename the hook to sro_enable_resources
- Rebase on v10 of the state readout series
- Drop "drm/bridge: Add atomic_sro_install_state hook", part of the
  state readout series
- Drop "drm/mxsfb: Switch to drm_mode_config_create_initial_state()",
  merged in drm-misc-next

Dario Binacchi (6):
  drm/panel: Add sro_enable_resources hook
  drm/mxsfb: Use the bridge connector
  drm/mxsfb: Stop the controller in hw_reset
  drm/mxsfb: Implement hw state readout
  drm/bridge: samsung-dsim: Implement hw state readout
  drm/panel: synaptics-r63353: Support hw state readout

 drivers/gpu/drm/bridge/samsung-dsim.c         | 130 +++++-
 drivers/gpu/drm/drm_panel.c                   |   8 +
 drivers/gpu/drm/mxsfb/Kconfig                 |   2 +
 drivers/gpu/drm/mxsfb/mxsfb_drv.c             |  26 +-
 drivers/gpu/drm/mxsfb/mxsfb_kms.c             | 369 +++++++++++++++++-
 drivers/gpu/drm/mxsfb/mxsfb_regs.h            |   3 +
 .../gpu/drm/panel/panel-synaptics-r63353.c    |  33 +-
 include/drm/drm_panel.h                       |  10 +
 8 files changed, 552 insertions(+), 29 deletions(-)

---
base-commit: d323a163981f3e3b1b8c40bd2aa0c416d0d9c7d8
branch: drm-sro-rfc-v2-send

-- 
2.43.0


             reply	other threads:[~2026-12-02 10:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 10:38 Dario Binacchi [this message]
2026-12-02 10:38 ` [RFC PATCH v2 1/6] drm/panel: Add sro_enable_resources hook Dario Binacchi
2026-12-02 10:38 ` [RFC PATCH v2 2/6] drm/mxsfb: Use the bridge connector Dario Binacchi
2026-12-02 10:38 ` [RFC PATCH v2 3/6] drm/mxsfb: Stop the controller in hw_reset Dario Binacchi
2026-12-02 10:38 ` [RFC PATCH v2 4/6] drm/mxsfb: Implement hw state readout Dario Binacchi
2026-12-02 10:38 ` [RFC PATCH v2 5/6] drm/bridge: samsung-dsim: " Dario Binacchi
2026-12-02 10:38 ` [RFC PATCH v2 6/6] drm/panel: synaptics-r63353: Support " Dario Binacchi

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=20261202103901.577431-1-dario.binacchi@amarulasolutions.com \
    --to=dario.binacchi@amarulasolutions.com \
    --cc=Frank.Li@nxp.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=Valeriy.Yatsenko@bshg.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=inki.dae@samsung.com \
    --cc=jagan@amarulasolutions.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jesszhan0024@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kernel@pengutronix.de \
    --cc=leonhard.hesse@bshg.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=m.szyprowski@samsung.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marex@denx.de \
    --cc=maximpedraza@gmail.com \
    --cc=michael@amarulasolutions.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=simon.holesch@bshg.com \
    --cc=simona@ffwll.ch \
    --cc=stefan@agner.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®