From: Thomas Zimmermann Date: Mon, 13 Mar 2023 15:51:34 +0000 (+0100) Subject: drm/vc4: Use GEM DMA fbdev emulation X-Git-Tag: v6.6.17~3937^2~23^2~634 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9cb99c597e401d372d8744c9f49bb9b06c6b821;p=platform%2Fkernel%2Flinux-rpi.git drm/vc4: 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 Reviewed-by: Javier Martinez Canillas Link: https://patchwork.freedesktop.org/patch/msgid/20230313155138.20584-22-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 0ccaee5..c8bf954 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include @@ -387,7 +387,7 @@ static int vc4_drm_bind(struct device *dev) if (ret < 0) goto unbind_all; - drm_fbdev_generic_setup(drm, 16); + drm_fbdev_dma_setup(drm, 16); return 0;