mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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:32ae90c66f("drm/sysfb: Add efidrm for EFI displays") Fixes:a84eb6abe2("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
This commit is contained in:
parent
faaa1e1155
commit
134844856c
|
|
@ -67,7 +67,7 @@ EXPORT_SYMBOL(drm_sysfb_get_stride_si);
|
|||
u64 drm_sysfb_get_visible_size_si(struct drm_device *dev, const struct screen_info *si,
|
||||
unsigned int height, unsigned int stride, u64 size)
|
||||
{
|
||||
u64 vsize = PAGE_ALIGN(height * stride);
|
||||
u64 vsize = height * stride;
|
||||
|
||||
return drm_sysfb_get_validated_size0(dev, "visible size", vsize, size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user