[RFC,v2,0/6] drm: State readout for the i.MX8MN display pipeline

Message ID 20261202103901.577431-1-dario.binacchi@amarulasolutions.com
Headers
Series drm: State readout for the i.MX8MN display pipeline |

Message

Dario Binacchi Dec. 2, 2026, 10:38 a.m. UTC
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