Skip to content

drm/ast: Various changes for video memory

Thomas Zimmermann dri-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 8 repliesIn review
  2. v17 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- initialize cursor-plane size

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/ast: Replace AST_VIDMEM_SIZE_ with Linux SZ_ constantsdrivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_mm.c drivers/gpu/drm/ast/ast_post.c+16 -251 reply
2/7drm/ast: Add VGACRAA register constantsdrivers/gpu/drm/ast/ast_mm.c drivers/gpu/drm/ast/ast_reg.h+4 -21 reply
3/7drm/ast: Add VGACR99 register constantsdrivers/gpu/drm/ast/ast_mm.c drivers/gpu/drm/ast/ast_reg.h+7 -71 reply
4/7drm/ast: cursor: Add helpers for computing location in video memorydrivers/gpu/drm/ast/ast_cursor.c drivers/gpu/drm/ast/ast_drv.h+20 -21 reply
5/7drm/ast: Add helper for computing framebuffer location in video memorydrivers/gpu/drm/ast/ast_mode.c+21 -41 reply
6/7drm/ast: Remove vram_fb_available from struct ast_devicedrivers/gpu/drm/ast/ast_cursor.c drivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_mm.c+4 -191 reply
7/7drm/ast: cursor: Drop page alignmentdrivers/gpu/drm/ast/ast_cursor.c+1 -12 replies

Reviews trailers per patch

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

PatchJocelyn Falempe
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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 0/7] drm/ast: Various changes for video memory

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.

v2:
- initialize cursor-plane size

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 | 39 +++++++++++++++++++-------------
 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, 71 insertions(+), 58 deletions(-)
Signature · 1 line
2.48.1