drm/ingenic: Use fbdev-dma
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 19 Apr 2024 08:29:18 +0000 (10:29 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 2 May 2024 09:33:24 +0000 (11:33 +0200)
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports
damage handling, which is required by ingenic. Avoids the overhead of
fbdev-generic's additional shadow buffering. No functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Paul Cercueil <paul@crapouillou.net>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-26-tzimmermann@suse.de
drivers/gpu/drm/ingenic/ingenic-drm-drv.c

index 0751235007a7e2ac8fb72a0c8e6a59ad51630a04..39fa291f43dd1e5e3f12266ae5010cdfb5e029d5 100644 (file)
@@ -31,7 +31,7 @@
 #include <drm/drm_encoder.h>
 #include <drm/drm_gem_dma_helper.h>
 #include <drm/drm_fb_dma_helper.h>
-#include <drm/drm_fbdev_generic.h>
+#include <drm/drm_fbdev_dma.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_atomic_helper.h>
@@ -1399,7 +1399,7 @@ static int ingenic_drm_bind(struct device *dev, bool has_components)
                goto err_clk_notifier_unregister;
        }
 
-       drm_fbdev_generic_setup(drm, 32);
+       drm_fbdev_dma_setup(drm, 32);
 
        return 0;