Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250305163207.267650-8-tzimmermann@suse.de

+1 -1
+1 -1
drivers/gpu/drm/ast/ast_cursor.c
··· 58 58 if (size > ast->vram_size) 59 59 return -EINVAL; 60 60 61 - return PAGE_ALIGN_DOWN(ast->vram_size - size); 61 + return ALIGN_DOWN(ast->vram_size - size, SZ_8); 62 62 } 63 63 64 64 static u32 ast_cursor_calculate_checksum(const void *src, unsigned int width, unsigned int height)