]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/sysfb: Do not page-align visible size of the framebuffer
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 18 Jun 2026 08:41:57 +0000 (10:41 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 22 Jun 2026 09:03:21 +0000 (11:03 +0200)
commit134844856c399bfa9462a159dcf860bfdb748055
treeb1b9fd30d77b2a6339133b1a50964d736007bbd9
parentfaaa1e1155833e7d4ce7e3cfaf64c0d636b190db
drm/sysfb: Do not page-align visible size of the framebuffer

Only return the actually visible size of the system framebuffer in
drm_sysfb_get_visible_size_si(). Drivers use this size value for
reserving access to framebuffer memory. Increasing the value can
make later attempts to do so fail.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 32ae90c66fb6 ("drm/sysfb: Add efidrm for EFI displays")
Fixes: a84eb6abe2b6 ("drm/sysfb: Add vesadrm for VESA displays")
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.16+
Link: https://patch.msgid.link/20260618084327.46567-2-tzimmermann@suse.de
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c