drm/ast: Clean up access to non-MMIO registers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest15 patches 0 repliesNew
- v115 patches 17 repliesSuperseded
Changes in v2 from the cover letter
- fix typo (Jocelyn)
- fix subject of cover letter
- convert more MCR registers on Gen6
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | drm/ast: dp501: Fix initialization of SCU2Cdrivers/ | +1 | 0 replies | |
| 2/15 | drm/ast: Move 32-bit register-access helpers to ast_drv.{c, h}drivers/ drivers/ drivers/ +2 more | +108 | 0 replies | |
| 3/15 | drm/ast: Use constants for AHBC registersdrivers/ drivers/ | +14 | 0 replies | |
| 4/15 | drm/ast: Use constants for MCR registersdrivers/ drivers/ drivers/ +5 more | +373 | 0 replies | |
| 5/15 | drm/ast: Use constants for SCU registersdrivers/ drivers/ drivers/ +1 more | +76 | 0 replies | |
| 6/15 | drm/ast: Use constants for A2P registersdrivers/ drivers/ | +11 | 0 replies | |
| 7/15 | drm/ast: Use constants for WDT registersdrivers/ drivers/ | +23 | 0 replies | |
| 8/15 | drm/ast: Use constants for SDRAM registersdrivers/ drivers/ | +17 | 0 replies | |
| 9/15 | drm/ast: Store register addresses in struct ast_dramstructdrivers/ drivers/ drivers/ +1 more | +131 | 0 replies | |
| 10/15 | drm/ast: Gen1: Fix open-coded register accessdrivers/ drivers/ drivers/ +1 more | +22 | 0 replies | |
| 11/15 | drm/ast: Gen2: Fix open-coded register accessdrivers/ | +38 | 0 replies | |
| 12/15 | drm/ast: Gen4: Fix open-coded register accessdrivers/ drivers/ | +10 | 0 replies | |
| 13/15 | drm/ast: Gen6: Fix open-coded register accessdrivers/ drivers/ | +9 | 0 replies | |
| 14/15 | drm/ast: dp501: Fix open-coded register accessdrivers/ drivers/ | +64 | 0 replies | |
| 15/15 | drm/ast: Fix open-coded scu_rev accessdrivers/ drivers/ | +7 | 0 replies |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | Jocelyn Falempe |
|---|---|
| 1/15 | R-b |
| 2/15 | R-b |
| 3/15 | R-b |
| 4/15 | R-b |
| 5/15 | R-b |
| 6/15 | R-b |
| 7/15 | R-b |
| 8/15 | R-b |
| 9/15 | R-b |
| 10/15 | R-b |
| 11/15 | R-b |
| 12/15 | R-b |
| 13/15 | R-b |
| 14/15 | R-b |
| 15/15 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/15] drm/ast: Clean up access to non-MMIO registers
(was: drm/ast: Clean up access to MMIO registers)
Aspeed devices up to Gen6 contain internal memory that is accessible from the host via the P2A bridge. The helpers ast_moutdwm() and ast_mindwm() pick a 64-KiB segment of the memory to expose to the host, which then has the content available. Content is either registers of the various IP blocks or on-board system memory.
Clean up the driver code involved and provide macro constants for the registers used by the ast driver. Go through the driver and replace the magic values with the constants.
The first patch of the series fixes a bug that has been found while working on these changes. The DP501 writes the content of register SCU2C to the wrong address. The fix is a separate patch to ease backporting.
Smoke-tested on AST2100, AST2300, AST2500 and AST2600.
v2:
- fix typo (Jocelyn)
- fix subject of cover letter
- convert more MCR registers on Gen6
Thomas Zimmermann (15):
drm/ast: dp501: Fix initialization of SCU2C drm/ast: Move 32-bit register-access helpers to ast_drv.{c,h} drm/ast: Use constants for AHBC registers
drm/ast: Use constants for MCR registers
drm/ast: Use constants for SCU registers
drm/ast: Use constants for A2P registers
drm/ast: Use constants for WDT registers
drm/ast: Use constants for SDRAM registers
drm/ast: Store register addresses in struct ast_dramstruct drm/ast: Gen1: Fix open-coded register access drm/ast: Gen2: Fix open-coded register access drm/ast: Gen4: Fix open-coded register access drm/ast: Gen6: Fix open-coded register access drm/ast: dp501: Fix open-coded register access drm/ast: Fix open-coded scu_rev access
drivers/gpu/drm/ast/ast_2000.c | 61 +++-- drivers/gpu/drm/ast/ast_2100.c | 292 +++++++++++------------ drivers/gpu/drm/ast/ast_2300.c | 398 ++++++++++++++++---------------- drivers/gpu/drm/ast/ast_2500.c | 329 +++++++++++++------------- drivers/gpu/drm/ast/ast_dp501.c | 146 ++++++------ drivers/gpu/drm/ast/ast_drv.c | 84 ++++++- drivers/gpu/drm/ast/ast_drv.h | 60 +++-- drivers/gpu/drm/ast/ast_post.c | 48 +--- drivers/gpu/drm/ast/ast_post.h | 20 +- drivers/gpu/drm/ast/ast_reg.h | 156 +++++++++++++ 10 files changed, 891 insertions(+), 703 deletions(-)
base-commit: 5cb7d14d9bd2061386a0192a4649626a3e3a5ec3
Signature · 1 line
2.53.0