Skip to content

drm/ast: Split device initialization per HW generation

Thomas Zimmermann dri-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 0 repliesNew
  2. v112 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- clean up the widescreen-detection logic (Jocelyn)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm/ast: Move display-clock tables to per-Gen source filesdrivers/gpu/drm/ast/ast_2000.c drivers/gpu/drm/ast/ast_2500.c drivers/gpu/drm/ast/ast_drv.h +2 more+72 -620 replies
2/12drm/ast: Move mode-detection helpers to Gen2 source filesdrivers/gpu/drm/ast/ast_2100.c drivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_main.c+33 -270 replies
3/12drm/ast: Split ast_detect_tx_chip() per chip generationdrivers/gpu/drm/ast/ast_2000.c drivers/gpu/drm/ast/ast_2300.c drivers/gpu/drm/ast/ast_drv.c +2 more+119 -890 replies
4/12drm/ast: Prepare per-Gen device initializationdrivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_main.c+28 -70 replies
5/12drm/ast: Move Gen1 device initialization into separate helperdrivers/gpu/drm/ast/ast_2000.c drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h+52 -00 replies
6/12drm/ast: Move Gen2 device initialization into separate helperdrivers/gpu/drm/ast/ast_2100.c drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h+65 -00 replies
7/12drm/ast: Move Gen3 device initialization into separate helperdrivers/gpu/drm/ast/Makefile drivers/gpu/drm/ast/ast_2200.c drivers/gpu/drm/ast/ast_drv.c +1 more+99 -00 replies
8/12drm/ast: Move Gen4 device initialization into separate helperdrivers/gpu/drm/ast/ast_2300.c drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h+71 -00 replies
9/12drm/ast: Move Gen5 device initialization into separate helperdrivers/gpu/drm/ast/Makefile drivers/gpu/drm/ast/ast_2400.c drivers/gpu/drm/ast/ast_drv.c +1 more+107 -00 replies
10/12drm/ast: Move Gen6 device initialization into separate helperdrivers/gpu/drm/ast/ast_2500.c drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h+75 -00 replies
11/12drm/ast: Move Gen7 device initialization into separate helperdrivers/gpu/drm/ast/ast_2600.c drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h+74 -00 replies
12/12drm/ast: Remove generic device initializationdrivers/gpu/drm/ast/Makefile drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h +1 more+2 -1660 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchJocelyn Falempe
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/12] drm/ast: Split device initialization per HW generation

Split ast_device_create() and its helpers into individual helpers for each supported hardware generation. Adds some duplicated code, but simplifies maintenance and support of additional hardware.

Patches 1 to 4 move some code around and prepare for the split.

Patches 5 to 11 each add device initialization for a hardware generation. The code is duplicated from existing code and stripped from unnecesary calls. More specialization is possible in later patches.

Patch 12 removes the original, now unused, code.

Tested on AST2100, AST2300, AST2500 and AST2600.

v2:
- clean up the widescreen-detection logic (Jocelyn)

Thomas Zimmermann (12):
drm/ast: Move display-clock tables to per-Gen source files drm/ast: Move mode-detection helpers to Gen2 source files drm/ast: Split ast_detect_tx_chip() per chip generation drm/ast: Prepare per-Gen device initialization drm/ast: Move Gen1 device initialization into separate helper drm/ast: Move Gen2 device initialization into separate helper drm/ast: Move Gen3 device initialization into separate helper drm/ast: Move Gen4 device initialization into separate helper drm/ast: Move Gen5 device initialization into separate helper drm/ast: Move Gen6 device initialization into separate helper drm/ast: Move Gen7 device initialization into separate helper drm/ast: Remove generic device initialization

 drivers/gpu/drm/ast/Makefile     |   3 +-
 drivers/gpu/drm/ast/ast_2000.c   | 101 ++++++++++++
 drivers/gpu/drm/ast/ast_2100.c   |  85 ++++++++++
 drivers/gpu/drm/ast/ast_2200.c   |  85 ++++++++++
 drivers/gpu/drm/ast/ast_2300.c   | 128 +++++++++++++++
 drivers/gpu/drm/ast/ast_2400.c   |  93 +++++++++++
 drivers/gpu/drm/ast/ast_2500.c   |  98 +++++++++++
 drivers/gpu/drm/ast/ast_2600.c   |  63 ++++++++
 drivers/gpu/drm/ast/ast_drv.c    |  67 +++++++-
 drivers/gpu/drm/ast/ast_drv.h    |  75 ++++++++-
 drivers/gpu/drm/ast/ast_main.c   | 268 -------------------------------
 drivers/gpu/drm/ast/ast_mode.c   |   4 +-
 drivers/gpu/drm/ast/ast_tables.h |  60 -------
 13 files changed, 788 insertions(+), 342 deletions(-)
 create mode 100644 drivers/gpu/drm/ast/ast_2200.c
 create mode 100644 drivers/gpu/drm/ast/ast_2400.c
 delete mode 100644 drivers/gpu/drm/ast/ast_main.c
Signature · 1 line
2.51.0