drm/sun4i: Use GEM DMA fbdev emulation
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 13 Mar 2023 15:51:29 +0000 (16:51 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 14 Mar 2023 16:07:48 +0000 (17:07 +0100)
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>
Link: https://patchwork.freedesktop.org/patch/msgid/20230313155138.20584-17-tzimmermann@suse.de
drivers/gpu/drm/sun4i/sun4i_drv.c

index cc94efbbf2d4eede4b9f4f95c15303273d056ced..dd283a3a4e3623524308d97180df6aa67dc9ba9e 100644 (file)
@@ -17,7 +17,7 @@
 #include <drm/drm_aperture.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_drv.h>
-#include <drm/drm_fbdev_generic.h>
+#include <drm/drm_fbdev_dma.h>
 #include <drm/drm_gem_dma_helper.h>
 #include <drm/drm_module.h>
 #include <drm/drm_of.h>
@@ -111,7 +111,7 @@ static int sun4i_drv_bind(struct device *dev)
        if (ret)
                goto finish_poll;
 
-       drm_fbdev_generic_setup(drm, 32);
+       drm_fbdev_dma_setup(drm, 32);
 
        dev_set_drvdata(dev, drm);