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

drm/atmel-hlcdc: 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: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230313155138.20584-6-tzimmermann@suse.de

+2 -2
+2 -2
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
··· 19 19 #include <drm/drm_atomic.h> 20 20 #include <drm/drm_atomic_helper.h> 21 21 #include <drm/drm_drv.h> 22 - #include <drm/drm_fbdev_generic.h> 22 + #include <drm/drm_fbdev_dma.h> 23 23 #include <drm/drm_gem_dma_helper.h> 24 24 #include <drm/drm_gem_framebuffer_helper.h> 25 25 #include <drm/drm_module.h> ··· 760 760 if (ret) 761 761 goto err_unload; 762 762 763 - drm_fbdev_generic_setup(ddev, 24); 763 + drm_fbdev_dma_setup(ddev, 24); 764 764 765 765 return 0; 766 766