summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-02-06 16:21:55 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2026-03-03 11:28:47 +0300
commitbbc1d2105481d47d2441ba061529c490ccb7f27f (patch)
treea97771a112d0c8e537a40d9187bc957fe9f7496b
parente0afbfe321d5131c56005f56fbf5d548340da749 (diff)
downloadlinux-bbc1d2105481d47d2441ba061529c490ccb7f27f.tar.xz
drm/gma500: fbdev: Set framebuffer size to GEM object size
Framebuffer emulation sets the size of the available memory to the value that has been requested. As the allocated GEM buffer object acts as full framebuffer memory, set the size to the value of the actually allocated buffer. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Link: https://patch.msgid.link/20260206133458.226467-3-tzimmermann@suse.de
-rw-r--r--drivers/gpu/drm/gma500/fbdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/fbdev.c b/drivers/gpu/drm/gma500/fbdev.c
index c26926babc2a..f5e60ada6de2 100644
--- a/drivers/gpu/drm/gma500/fbdev.c
+++ b/drivers/gpu/drm/gma500/fbdev.c
@@ -171,12 +171,12 @@ int psb_fbdev_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
/* Accessed stolen memory directly */
info->screen_base = dev_priv->vram_addr + backing->offset;
- info->screen_size = size;
+ info->screen_size = obj->size;
drm_fb_helper_fill_info(info, fb_helper, sizes);
info->fix.smem_start = dev_priv->stolen_base + backing->offset;
- info->fix.smem_len = size;
+ info->fix.smem_len = obj->size;
info->fix.ywrapstep = 0;
info->fix.ypanstep = 0;
info->fix.mmio_start = pci_resource_start(pdev, 0);