All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: javierm@redhat.com, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch,
	linus.walleij@linaro.org
Cc: linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH v2 20/25] drm/tve200: Use GEM DMA fbdev emulation
Date: Mon, 13 Mar 2023 16:51:33 +0100	[thread overview]
Message-ID: <20230313155138.20584-21-tzimmermann@suse.de> (raw)
In-Reply-To: <20230313155138.20584-1-tzimmermann@suse.de>

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: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/tve200/tve200_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c
index 0d05c386d303..abd557332b28 100644
--- a/drivers/gpu/drm/tve200/tve200_drv.c
+++ b/drivers/gpu/drm/tve200/tve200_drv.c
@@ -40,7 +40,7 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.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_gem_framebuffer_helper.h>
 #include <drm/drm_module.h>
@@ -227,7 +227,7 @@ static int tve200_probe(struct platform_device *pdev)
 	 * Passing in 16 here will make the RGB565 mode the default
 	 * Passing in 32 will use XRGB8888 mode
 	 */
-	drm_fbdev_generic_setup(drm, 16);
+	drm_fbdev_dma_setup(drm, 16);
 
 	return 0;
 
-- 
2.39.2


WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: javierm@redhat.com, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch,
	linus.walleij@linaro.org
Cc: linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org,
	linux-stm32@st-md-mailman.stormreply.com,
	Thomas Zimmermann <tzimmermann@suse.de>,
	linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 20/25] drm/tve200: Use GEM DMA fbdev emulation
Date: Mon, 13 Mar 2023 16:51:33 +0100	[thread overview]
Message-ID: <20230313155138.20584-21-tzimmermann@suse.de> (raw)
In-Reply-To: <20230313155138.20584-1-tzimmermann@suse.de>

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: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/tve200/tve200_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c
index 0d05c386d303..abd557332b28 100644
--- a/drivers/gpu/drm/tve200/tve200_drv.c
+++ b/drivers/gpu/drm/tve200/tve200_drv.c
@@ -40,7 +40,7 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.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_gem_framebuffer_helper.h>
 #include <drm/drm_module.h>
@@ -227,7 +227,7 @@ static int tve200_probe(struct platform_device *pdev)
 	 * Passing in 16 here will make the RGB565 mode the default
 	 * Passing in 32 will use XRGB8888 mode
 	 */
-	drm_fbdev_generic_setup(drm, 16);
+	drm_fbdev_dma_setup(drm, 16);
 
 	return 0;
 
-- 
2.39.2


WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: javierm@redhat.com, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch,
	linus.walleij@linaro.org
Cc: linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH v2 20/25] drm/tve200: Use GEM DMA fbdev emulation
Date: Mon, 13 Mar 2023 16:51:33 +0100	[thread overview]
Message-ID: <20230313155138.20584-21-tzimmermann@suse.de> (raw)
In-Reply-To: <20230313155138.20584-1-tzimmermann@suse.de>

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: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/tve200/tve200_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c
index 0d05c386d303..abd557332b28 100644
--- a/drivers/gpu/drm/tve200/tve200_drv.c
+++ b/drivers/gpu/drm/tve200/tve200_drv.c
@@ -40,7 +40,7 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.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_gem_framebuffer_helper.h>
 #include <drm/drm_module.h>
@@ -227,7 +227,7 @@ static int tve200_probe(struct platform_device *pdev)
 	 * Passing in 16 here will make the RGB565 mode the default
 	 * Passing in 32 will use XRGB8888 mode
 	 */
-	drm_fbdev_generic_setup(drm, 16);
+	drm_fbdev_dma_setup(drm, 16);
 
 	return 0;
 
-- 
2.39.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: javierm@redhat.com, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch,
	linus.walleij@linaro.org
Cc: linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH v2 20/25] drm/tve200: Use GEM DMA fbdev emulation
Date: Mon, 13 Mar 2023 16:51:33 +0100	[thread overview]
Message-ID: <20230313155138.20584-21-tzimmermann@suse.de> (raw)
In-Reply-To: <20230313155138.20584-1-tzimmermann@suse.de>

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: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/tve200/tve200_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c
index 0d05c386d303..abd557332b28 100644
--- a/drivers/gpu/drm/tve200/tve200_drv.c
+++ b/drivers/gpu/drm/tve200/tve200_drv.c
@@ -40,7 +40,7 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.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_gem_framebuffer_helper.h>
 #include <drm/drm_module.h>
@@ -227,7 +227,7 @@ static int tve200_probe(struct platform_device *pdev)
 	 * Passing in 16 here will make the RGB565 mode the default
 	 * Passing in 32 will use XRGB8888 mode
 	 */
-	drm_fbdev_generic_setup(drm, 16);
+	drm_fbdev_dma_setup(drm, 16);
 
 	return 0;
 
-- 
2.39.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2023-03-13 15:51 UTC|newest]

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-13 15:51 [PATCH v2 00/25] drm/dma-helper: Add dedicated fbdev emulation Thomas Zimmermann
2023-03-13 15:51 ` Thomas Zimmermann
2023-03-13 15:51 ` Thomas Zimmermann
2023-03-13 15:51 ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 01/25] drm/fbdev-dma: Implement fbdev emulation for GEM DMA helpers Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 02/25] arm/hdlcd: Use GEM DMA fbdev emulation Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 03/25] arm/malidp: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 04/25] drm/aspeed: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 05/25] drm/atmel-hlcdc: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 06/25] drm/fsl-dcu: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 07/25] drm/imx/dcss: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 08/25] drm/imx: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 09/25] drm/kmb: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 10/25] drm/logicvc: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 11/25] drm/meson: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 12/25] drm/mxsfb/lcdif: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 13/25] drm/mxsfb: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 14/25] drm/sti: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 15/25] drm/stm: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 16/25] drm/sun4i: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 17/25] drm/tidss: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 18/25] drm/tilcdc: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 19/25] drm/arcpgu: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` Thomas Zimmermann [this message]
2023-03-13 15:51   ` [PATCH v2 20/25] drm/tve200: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 21/25] drm/vc4: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 22/25] drm/xlnx: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 23/25] drm/mcde: Do not use dirty GEM FB handling Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51 ` [PATCH v2 24/25] drm/mcde: Use GEM DMA fbdev emulation Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 21:40   ` Linus Walleij
2023-03-13 21:40     ` Linus Walleij
2023-03-13 21:40     ` Linus Walleij
2023-03-13 21:40     ` Linus Walleij
2023-03-13 15:51 ` [PATCH v2 25/25] drm/pl111: " Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 15:51   ` Thomas Zimmermann
2023-03-13 21:41   ` Linus Walleij
2023-03-13 21:41     ` Linus Walleij
2023-03-13 21:41     ` Linus Walleij
2023-03-13 21:41     ` Linus Walleij
2023-03-13 21:37 ` [PATCH v2 00/25] drm/dma-helper: Add dedicated " Linus Walleij
2023-03-13 21:37   ` Linus Walleij
2023-03-13 21:37   ` Linus Walleij
2023-03-13 21:37   ` Linus Walleij
2023-03-14 16:09 ` Thomas Zimmermann
2023-03-14 16:09   ` Thomas Zimmermann
2023-03-14 16:09   ` Thomas Zimmermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230313155138.20584-21-tzimmermann@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=javierm@redhat.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.