Skip to content

drm/mipi-dbi: Replace simple-display helpers with regular atomic helpers

Thomas Zimmermann dri-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest16 patches 7 repliesIn review
  2. v216 patches 11 repliesSuperseded
  3. v1 RFC16 patches 11 repliesSuperseded

Changes in v3 from the cover letter

- fix uninitialized variables (David)
- improve documentation (David)
- clean up

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16drm/mipi-dbi: Only modify planes on enabled CRTCsdrivers/gpu/drm/drm_mipi_dbi.c drivers/gpu/drm/sitronix/st7586.c drivers/gpu/drm/sitronix/st7735r.c +8 more+18 -700 replies
2/16drm/mipi-dbi: Support custom pipelines with drm_mipi_dbi_dev_init()drivers/gpu/drm/drm_mipi_dbi.c include/drm/drm_mipi_dbi.h+61 -230 replies
3/16drm/mipi-dbi: Provide callbacks for atomic interfacesdrivers/gpu/drm/drm_mipi_dbi.c include/drm/drm_mipi_dbi.h+242 -470 replies
4/16drm/hx8357d: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/tiny/hx8357d.c+122 -133 replies
5/16drm/ili9163: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/tiny/ili9163.c+122 -130 replies
6/16drm/ili9225: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/tiny/ili9225.c+145 -362 replies
7/16drm/ili9341: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/tiny/ili9341.c+122 -130 replies
8/16drm/ili9486: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/tiny/ili9486.c+122 -140 replies
9/16drm/mi0283qt: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/tiny/mi0283qt.c+122 -130 replies
10/16drm/panel-mipi-dbi: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/tiny/panel-mipi-dbi.c+123 -160 replies
11/16drm/st7586: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/sitronix/st7586.c+139 -350 replies
12/16drm/st7735r: Rename struct st7735r_priv to struct st7735r_devicedrivers/gpu/drm/sitronix/st7735r.c+10 -60 replies
13/16drm/st7735r: Rename priv variable to st7735rdrivers/gpu/drm/sitronix/st7735r.c+9 -100 replies
14/16drm/st7735r: Use regular atomic helpers; drop simple-display helpersdrivers/gpu/drm/sitronix/st7735r.c+106 -90 replies
15/16drm/mipi-dbi: Remove simple-display helpers from mipi-dbidrivers/gpu/drm/drm_mipi_dbi.c include/drm/drm_mipi_dbi.h+0 -3010 replies
16/16drm/simple-kms: Deprecate simple-kms helpersDocumentation/gpu/drm-kms-helpers.rst Documentation/gpu/introduction.rst Documentation/gpu/todo.rst +5 more+39 -3410 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid LechnerDmitry Baryshkov
SeriesR-b
1/16A-b
2/16A-b
3/16A-b
4/16A-b
5/16A-b
6/16A-b T-b
7/16A-b
8/16A-b
9/16A-b
10/16A-b T-b
11/16A-b T-b
12/16A-b
13/16A-b
14/16A-b
15/16A-b
16/16A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/16] drm/mipi-dbi: Replace simple-display helpers with regular atomic helpers

We keep getting new drivers based on the obsolete simple-display pipeline, such as the recent driver for st7789v panels. [1] But submitters cannot know, as the simple-display helpers are fully documented and still used in several places.

Hence, convert all the mipi-dbi drivers over to regular atomic helpers and remove simple-display support from mipi-dbi in this series. Then undocument the helpers and add TODO items for final their removal.

Patch 1 changes the mode-setting logic to get CRTC and panel updates into the correct order. This patch is probably the most fragile change in the series.

Patches 2 and 3 prepare mipi-dbi to allow for atomic helpers to be used.

Patches 5 to 14 update mipi-dbi drivers one by one. The st7735r driver requires some additional minor preparation. Overall, the refactoring is always the same.

Patches 15 and 16 clean up mipi-dbi and the simple-display helpers.

These patches need some testing, as I can only compile them. At least one of the drivers should be tried on hardware. Regressions should be easy to fix, as these changes are mostly refactoring jobs.

[1] https://lore.kernel.org/dri-devel/[email protected]/

v3:
- fix uninitialized variables (David)
- improve documentation (David)
- clean up
v2:
- fix connector initialization (David)
- remove unused variables (David)
- clean up

Thomas Zimmermann (16):
drm/mipi-dbi: Only modify planes on enabled CRTCs drm/mipi-dbi: Support custom pipelines with drm_mipi_dbi_dev_init() drm/mipi-dbi: Provide callbacks for atomic interfaces drm/hx8357d: Use regular atomic helpers; drop simple-display helpers drm/ili9163: Use regular atomic helpers; drop simple-display helpers drm/ili9225: Use regular atomic helpers; drop simple-display helpers drm/ili9341: Use regular atomic helpers; drop simple-display helpers drm/ili9486: Use regular atomic helpers; drop simple-display helpers drm/mi0283qt: Use regular atomic helpers; drop simple-display helpers drm/panel-mipi-dbi: Use regular atomic helpers; drop simple-display
helpers
drm/st7586: Use regular atomic helpers; drop simple-display helpers drm/st7735r: Rename struct st7735r_priv to struct st7735r_device drm/st7735r: Rename priv variable to st7735r
drm/st7735r: Use regular atomic helpers; drop simple-display helpers drm/mipi-dbi: Remove simple-display helpers from mipi-dbi drm/simple-kms: Deprecate simple-kms helpers

 Documentation/gpu/drm-kms-helpers.rst   |  12 -
 Documentation/gpu/introduction.rst      |   6 -
 Documentation/gpu/todo.rst              |  32 ++
 drivers/gpu/drm/drm_crtc.c              |   6 +-
 drivers/gpu/drm/drm_gem_atomic_helper.c |  22 --
 drivers/gpu/drm/drm_mipi_dbi.c          | 376 ++++++++----------------
 drivers/gpu/drm/drm_modeset_helper.c    |   3 -
 drivers/gpu/drm/drm_simple_kms_helper.c |  83 ------
 drivers/gpu/drm/sitronix/st7586.c       | 185 +++++++++---
 drivers/gpu/drm/sitronix/st7735r.c      | 142 +++++++--
 drivers/gpu/drm/tiny/hx8357d.c          | 138 ++++++++-
 drivers/gpu/drm/tiny/ili9163.c          | 138 ++++++++-
 drivers/gpu/drm/tiny/ili9225.c          | 192 +++++++++---
 drivers/gpu/drm/tiny/ili9341.c          | 138 ++++++++-
 drivers/gpu/drm/tiny/ili9486.c          | 139 ++++++++-
 drivers/gpu/drm/tiny/mi0283qt.c         | 138 ++++++++-
 drivers/gpu/drm/tiny/panel-mipi-dbi.c   | 141 +++++++--
 include/drm/drm_mipi_dbi.h              | 145 +++++----
 include/drm/drm_simple_kms_helper.h     | 216 +-------------
 19 files changed, 1397 insertions(+), 855 deletions(-)

base-commit: 0009f17b2480f65a0f569c87c8a99f95d7aefd0e
prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24
prerequisite-patch-id: a5a973e527c88a5b47053d7a72aefe0b550197cb
prerequisite-patch-id: 719d09751d38f5da743beed6266585ee063e1e29
prerequisite-patch-id: 5030de433a01c2e99056cadb676a8e2ba35f055a
prerequisite-patch-id: f7831e8fe81681bbe7fcd7b8455753f5ab4ada2d

Signature · 1 line
2.53.0