diff options
| author | Thomas Zimmermann <[email protected]> | 2025-03-05 16:30:46 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2025-03-12 07:38:13 +0000 |
| commit | c6a84bc9690afc40b103c5df3cdfb357439cb563 (patch) | |
| tree | 2cb8977fd6a8ac0c95ac38c9e772369b33b7d12e /drivers/gpu/drm/ast/ast_cursor.c | |
| parent | drm/ast: Remove vram_fb_available from struct ast_device (diff) | |
| download | kernel-c6a84bc9690afc40b103c5df3cdfb357439cb563.tar.gz kernel-c6a84bc9690afc40b103c5df3cdfb357439cb563.zip | |
drm/ast: cursor: Drop page alignment
The cursor scanout address requires alignment to a multiple of 8,
but does not require page alignment. Change the offset calculation
accordingly. Frees up a few more bytes for the primary framebuffer.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Jocelyn Falempe <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ast/ast_cursor.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_cursor.c b/drivers/gpu/drm/ast/ast_cursor.c index cb0c48d47207..5ee724bfd682 100644 --- a/drivers/gpu/drm/ast/ast_cursor.c +++ b/drivers/gpu/drm/ast/ast_cursor.c @@ -58,7 +58,7 @@ long ast_cursor_vram_offset(struct ast_device *ast) if (size > ast->vram_size) return -EINVAL; - return PAGE_ALIGN_DOWN(ast->vram_size - size); + return ALIGN_DOWN(ast->vram_size - size, SZ_8); } static u32 ast_cursor_calculate_checksum(const void *src, unsigned int width, unsigned int height) |
