mbox series

[0/7] drm/ast: Various changes for video memory

Message ID 20250305134401.60609-1-tzimmermann@suse.de (mailing list archive)
Headers show
Series drm/ast: Various changes for video memory | expand

Message

Thomas Zimmermann March 5, 2025, 1:35 p.m. UTC
Various changes to detecting and organizing video memory on Aspeed
hardware. Resolves code duplication and cruft.

Patches 1 to 3 do a number of cleanups to the code for detecting
the size of the video memory. Patches 4 to 7 provide helpers for
calculating framebuffer and cursor locations within the video
memory.

Tested on AST2600 hardware.

Thomas Zimmermann (7):
  drm/ast: Replace AST_VIDMEM_SIZE_ with Linux SZ_ constants
  drm/ast: Add VGACRAA register constants
  drm/ast: Add VGACR99 register constants
  drm/ast: cursor: Add helpers for computing location in video memory
  drm/ast: Add helper for computing framebuffer location in video memory
  drm/ast: Remove vram_fb_available from struct ast_device
  drm/ast: cursor: Drop page alignment

 drivers/gpu/drm/ast/ast_cursor.c | 36 +++++++++++++++++++-------------
 drivers/gpu/drm/ast/ast_drv.h    | 13 +-----------
 drivers/gpu/drm/ast/ast_mm.c     | 26 +++++++++++------------
 drivers/gpu/drm/ast/ast_mode.c   | 25 ++++++++++++++++++----
 drivers/gpu/drm/ast/ast_post.c   | 24 ++++++++++-----------
 drivers/gpu/drm/ast/ast_reg.h    |  2 ++
 6 files changed, 69 insertions(+), 57 deletions(-)