public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 00/15] drm/ast: Clean up access to MMIO registers
@ 2026-03-23 15:56 Thomas Zimmermann
  2026-03-23 15:56 ` [PATCH 01/15] drm/ast: dp501: Fix initialization of SCU2C Thomas Zimmermann
                   ` (16 more replies)
  0 siblings, 17 replies; 33+ messages in thread
From: Thomas Zimmermann @ 2026-03-23 15:56 UTC (permalink / raw)
  To: jfalempe, airlied, maarten.lankhorst, mripard, airlied, simona
  Cc: dri-devel, Thomas Zimmermann

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.

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  | 319 ++++++++++++-------------
 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   | 155 +++++++++++++
 10 files changed, 886 insertions(+), 697 deletions(-)


base-commit: 5cb7d14d9bd2061386a0192a4649626a3e3a5ec3
-- 
2.53.0


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

end of thread, other threads:[~2026-03-24 21:46 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 15:56 [PATCH 00/15] drm/ast: Clean up access to MMIO registers Thomas Zimmermann
2026-03-23 15:56 ` [PATCH 01/15] drm/ast: dp501: Fix initialization of SCU2C Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 02/15] drm/ast: Move 32-bit register-access helpers to ast_drv.{c, h} Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 03/15] drm/ast: Use constants for AHBC registers Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 04/15] drm/ast: Use constants for MCR registers Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 05/15] drm/ast: Use constants for SCU registers Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 06/15] drm/ast: Use constants for A2P registers Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 07/15] drm/ast: Use constants for WDT registers Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 08/15] drm/ast: Use constants for SDRAM registers Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 09/15] drm/ast: Store register addresses in struct ast_dramstruct Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 10/15] drm/ast: Gen1: Fix open-coded register access Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 11/15] drm/ast: Gen2: " Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 12/15] drm/ast: Gen4: " Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 13/15] drm/ast: Gen6: " Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 14/15] drm/ast: dp501: " Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 15:56 ` [PATCH 15/15] drm/ast: Fix open-coded scu_rev access Thomas Zimmermann
2026-03-24 21:46   ` Claude review: " Claude Code Review Bot
2026-03-23 16:08 ` [PATCH 00/15] drm/ast: Clean up access to MMIO registers Thomas Zimmermann
2026-03-24 21:46 ` Claude review: " Claude Code Review Bot

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