Skip to content

RFC drm: State readout for the i.MX8MN display pipeline

Dario Binacchi dri-devel imx linux-arm-kernel lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest6 patches 0 repliesNew
  2. v1 RFC8 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/panel: Add sro_enable_resources hookdrivers/gpu/drm/drm_panel.c include/drm/drm_panel.h+18 -00 replies
2/6drm/mxsfb: Use the bridge connectordrivers/gpu/drm/mxsfb/Kconfig drivers/gpu/drm/mxsfb/mxsfb_drv.c+12 -100 replies
3/6drm/mxsfb: Stop the controller in hw_resetdrivers/gpu/drm/mxsfb/mxsfb_drv.c drivers/gpu/drm/mxsfb/mxsfb_kms.c+34 -10 replies
4/6drm/mxsfb: Implement hw state readoutdrivers/gpu/drm/mxsfb/mxsfb_drv.c drivers/gpu/drm/mxsfb/mxsfb_kms.c drivers/gpu/drm/mxsfb/mxsfb_regs.h+339 -40 replies
5/6drm/bridge: samsung-dsim: Implement hw state readoutdrivers/gpu/drm/bridge/samsung-dsim.c+117 -130 replies
6/6drm/panel: synaptics-r63353: Support hw state readoutdrivers/gpu/drm/panel/panel-synaptics-r63353.c+32 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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/[email protected]
[2] https://lore.kernel.org/r/[email protected]
[3] https://lore.kernel.org/r/[email protected]
[4] https://lore.kernel.org/r/[email protected]

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

Signature · 1 line
2.43.0