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

drm/tiny/ofdrm: Use fbdev-shmem

Implement fbdev emulation with fbdev-shmem. Avoids the overhead of
fbdev-generic's additional shadow buffering. No functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-17-tzimmermann@suse.de

+2 -2
+2 -2
drivers/gpu/drm/tiny/ofdrm.c
··· 11 11 #include <drm/drm_damage_helper.h> 12 12 #include <drm/drm_device.h> 13 13 #include <drm/drm_drv.h> 14 - #include <drm/drm_fbdev_generic.h> 14 + #include <drm/drm_fbdev_shmem.h> 15 15 #include <drm/drm_format_helper.h> 16 16 #include <drm/drm_framebuffer.h> 17 17 #include <drm/drm_gem_atomic_helper.h> ··· 1377 1377 if (color_mode == 16) 1378 1378 color_mode = odev->format->depth; // can be 15 or 16 1379 1379 1380 - drm_fbdev_generic_setup(dev, color_mode); 1380 + drm_fbdev_shmem_setup(dev, color_mode); 1381 1381 1382 1382 return 0; 1383 1383 }