public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/14] drm/imx: dc: Use prefetch engine
@ 2025-09-23  2:07 Liu Ying
  2025-09-23  2:07 ` [PATCH v2 01/14] dt-bindings: display: imx: Add i.MX8qxp/qm PRG binding Liu Ying
                   ` (13 more replies)
  0 siblings, 14 replies; 26+ messages in thread
From: Liu Ying @ 2025-09-23  2:07 UTC (permalink / raw)
  To: Philipp Zabel, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Dmitry Baryshkov
  Cc: dri-devel, devicetree, imx, linux-arm-kernel, linux-kernel,
	Liu Ying, Frank Li, Alexander Stein

Hi,

This patch series aims to use prefetch engine in imx8-dc KMS driver.

One prefetch engine consists of one DPR Channel(DPRC) and one or two
Display Prefetch Resolve Gaskets(PRGs).  It prefetches data from
DDR, resolves data in tile formats if needed and outputs the result
data to FetchUnit(s).  When one PRG is used, a prefetch engine supports
processing pixel formats with one planar, e.g., RGB formats.  When two
are used, pixel formats with two planars are supported, e.g., NV12.

For now, this patch series only supports prefetch engines with one PRG
because it is enough for XRGB8888 which is the only pixel format
supported by imx8-dc plane driver.  Two PRGs would be supported by
future patches.

Patch 1 and 2 add dt-bindings for DPRC and PRG.  They were reviewed
by Rob[1][2].  I slightly modified the patches' commit message to use
imperative mood.

Patch 3 adds DPRC and PRG dt-binding files to MAINTAINERS.

Patch 4 fixes FetchUnit dimensions as related to prefetch engine function.

Patch 5 disables CRTC at boot if needed to support prefetch engine better.

Patch 6 and 7 add PRG and DPRC drivers.

Patch 8 to 13 do preparations before using prefetch engine in imx8-dc KMS
driver.

Patch 14 uses prefetch engine in imx8-dc KMS driver.

[1] https://lore.kernel.org/lkml/20201207165945.GA430214@robh.at.kernel.org/
[2] https://lore.kernel.org/lkml/20201207170206.GA434964@robh.at.kernel.org/

Signed-off-by: Liu Ying <victor.liu@nxp.com>
---
Changes in v2:
- Rebase the patch series onto next-20250922.
- Collect Alexander's and Frank's R-b tags.
- Manage PRG's and DPRC's clocks with bulk interfaces in patch 6&7.  (Frank)
- Sort variables in probe function in reverse Christmas tree fashion in patch 7.  (Frank)
- Link to v1: https://lore.kernel.org/r/20250704-imx8-dc-prefetch-v1-0-784c03fd645f@nxp.com

---
Liu Ying (14):
      dt-bindings: display: imx: Add i.MX8qxp/qm PRG binding
      dt-bindings: display: imx: Add i.MX8qxp/qm DPR channel binding
      MAINTAINERS: Add i.MX8qxp prefetch engine DT binding files
      drm/imx: dc-fu: Fix dimensions
      drm/imx: dc-crtc: Disable at boot
      drm/imx: dc: Add PRG support
      drm/imx: dc: Add DPR channel support
      drm/imx: dc: Use TCON operation mode
      drm/imx: dc-ed: Support getting source selection
      drm/imx: dc-lb: Support getting secondary input selection
      drm/imx: dc-ed: Drop initial source selection
      drm/imx: dc-lb: Drop initial primary and secondary input selections
      drm/imx: dc-fu: Get DPR channel
      drm/imx: dc: Use prefetch engine

 .../bindings/display/imx/fsl,imx8qxp-dprc.yaml     | 100 +++++
 .../bindings/display/imx/fsl,imx8qxp-prg.yaml      |  60 +++
 MAINTAINERS                                        |   2 +
 drivers/gpu/drm/imx/dc/Kconfig                     |   1 +
 drivers/gpu/drm/imx/dc/Makefile                    |   6 +-
 drivers/gpu/drm/imx/dc/dc-crtc.c                   | 191 ++++++++-
 drivers/gpu/drm/imx/dc/dc-de.h                     |   2 +
 drivers/gpu/drm/imx/dc/dc-dprc.c                   | 465 +++++++++++++++++++++
 drivers/gpu/drm/imx/dc/dc-dprc.h                   |  35 ++
 drivers/gpu/drm/imx/dc/dc-drv.c                    |   7 +
 drivers/gpu/drm/imx/dc/dc-drv.h                    |   5 +
 drivers/gpu/drm/imx/dc/dc-ed.c                     |  27 +-
 drivers/gpu/drm/imx/dc/dc-fl.c                     |   7 +-
 drivers/gpu/drm/imx/dc/dc-fu.c                     |  49 ++-
 drivers/gpu/drm/imx/dc/dc-fu.h                     |  11 +-
 drivers/gpu/drm/imx/dc/dc-fw.c                     |   7 +-
 drivers/gpu/drm/imx/dc/dc-kms.h                    |   7 +
 drivers/gpu/drm/imx/dc/dc-lb.c                     |  23 +-
 drivers/gpu/drm/imx/dc/dc-pe.h                     |   2 +
 drivers/gpu/drm/imx/dc/dc-plane.c                  |  46 +-
 drivers/gpu/drm/imx/dc/dc-prg.c                    | 320 ++++++++++++++
 drivers/gpu/drm/imx/dc/dc-prg.h                    |  39 ++
 drivers/gpu/drm/imx/dc/dc-tc.c                     | 114 ++++-
 23 files changed, 1496 insertions(+), 30 deletions(-)
---
base-commit: bf2602a3cb2381fb1a04bf1c39a290518d2538d1
change-id: 20250703-imx8-dc-prefetch-028e306591c6

Best regards,
-- 
Liu Ying <victor.liu@nxp.com>


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

end of thread, other threads:[~2025-09-25 15:58 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23  2:07 [PATCH v2 00/14] drm/imx: dc: Use prefetch engine Liu Ying
2025-09-23  2:07 ` [PATCH v2 01/14] dt-bindings: display: imx: Add i.MX8qxp/qm PRG binding Liu Ying
2025-09-23  2:07 ` [PATCH v2 02/14] dt-bindings: display: imx: Add i.MX8qxp/qm DPR channel binding Liu Ying
2025-09-23  2:07 ` [PATCH v2 03/14] MAINTAINERS: Add i.MX8qxp prefetch engine DT binding files Liu Ying
2025-09-23  2:07 ` [PATCH v2 04/14] drm/imx: dc-fu: Fix dimensions Liu Ying
2025-09-23  2:07 ` [PATCH v2 05/14] drm/imx: dc-crtc: Disable at boot Liu Ying
2025-09-23 18:08   ` Frank Li
2025-09-23  2:07 ` [PATCH v2 06/14] drm/imx: dc: Add PRG support Liu Ying
2025-09-23  2:07 ` [PATCH v2 07/14] drm/imx: dc: Add DPR channel support Liu Ying
2025-09-23 18:29   ` Frank Li
2025-09-24  6:41     ` Liu Ying
2025-09-24 15:26       ` Frank Li
2025-09-25  2:58         ` Liu Ying
2025-09-25  3:55           ` Frank Li
2025-09-25  9:09             ` Liu Ying
2025-09-25 15:58               ` Frank Li
2025-09-24  6:59     ` Liu Ying
2025-09-23  2:07 ` [PATCH v2 08/14] drm/imx: dc: Use TCON operation mode Liu Ying
2025-09-23 18:30   ` Frank Li
2025-09-23  2:07 ` [PATCH v2 09/14] drm/imx: dc-ed: Support getting source selection Liu Ying
2025-09-23  2:08 ` [PATCH v2 10/14] drm/imx: dc-lb: Support getting secondary input selection Liu Ying
2025-09-23  2:08 ` [PATCH v2 11/14] drm/imx: dc-ed: Drop initial source selection Liu Ying
2025-09-23  2:08 ` [PATCH v2 12/14] drm/imx: dc-lb: Drop initial primary and secondary input selections Liu Ying
2025-09-23  2:08 ` [PATCH v2 13/14] drm/imx: dc-fu: Get DPR channel Liu Ying
2025-09-23  2:08 ` [PATCH v2 14/14] drm/imx: dc: Use prefetch engine Liu Ying
2025-09-23 18:32   ` Frank Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox