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

drm/kmb: Use GEM DMA fbdev emulation

Use the fbdev emulation that is optimized for DMA helpers. Avoids
possible shadow buffering and makes the code simpler.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230313155138.20584-10-tzimmermann@suse.de

+2 -2
+2 -2
drivers/gpu/drm/kmb/kmb_drv.c
··· 15 15 16 16 #include <drm/drm_atomic_helper.h> 17 17 #include <drm/drm_drv.h> 18 - #include <drm/drm_fbdev_generic.h> 18 + #include <drm/drm_fbdev_dma.h> 19 19 #include <drm/drm_gem_dma_helper.h> 20 20 #include <drm/drm_gem_framebuffer_helper.h> 21 21 #include <drm/drm_module.h> ··· 562 562 if (ret) 563 563 goto err_register; 564 564 565 - drm_fbdev_generic_setup(&kmb->drm, 0); 565 + drm_fbdev_dma_setup(&kmb->drm, 0); 566 566 567 567 return 0; 568 568