* [PATCH] drm/fbdev-dma: Fix documented default preferred_bpp value
@ 2023-07-06 15:30 Geert Uytterhoeven
2023-07-07 7:44 ` Thomas Zimmermann
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2023-07-06 15:30 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Daniel Vetter, Javier Martinez Canillas
Cc: Geert Uytterhoeven, linux-kernel, dri-devel
As of commit 6c80a93be62d398e ("drm/fb-helper: Initialize fb-helper's
preferred BPP in prepare function"), the preferred_bpp parameter of
drm_fb_helper_prepare() defaults to 32 instead of
drm_mode_config.preferred_depth. Hence this also applies to
drm_fbdev_dma_setup(), which just passes its own preferred_bpp
parameter.
Fixes: b79fe9abd58bab73 ("drm/fbdev-dma: Implement fbdev emulation for GEM DMA helpers")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/gpu/drm/drm_fbdev_dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_fbdev_dma.c b/drivers/gpu/drm/drm_fbdev_dma.c
index d86773fa8ab00f49..76aa52b38a13ed63 100644
--- a/drivers/gpu/drm/drm_fbdev_dma.c
+++ b/drivers/gpu/drm/drm_fbdev_dma.c
@@ -217,7 +217,7 @@ static const struct drm_client_funcs drm_fbdev_dma_client_funcs = {
* drm_fbdev_dma_setup() - Setup fbdev emulation for GEM DMA helpers
* @dev: DRM device
* @preferred_bpp: Preferred bits per pixel for the device.
- * @dev->mode_config.preferred_depth is used if this is zero.
+ * 32 is used if this is zero.
*
* This function sets up fbdev emulation for GEM DMA drivers that support
* dumb buffers with a virtual address and that can be mmap'ed.
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/fbdev-dma: Fix documented default preferred_bpp value
2023-07-06 15:30 [PATCH] drm/fbdev-dma: Fix documented default preferred_bpp value Geert Uytterhoeven
@ 2023-07-07 7:44 ` Thomas Zimmermann
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Zimmermann @ 2023-07-07 7:44 UTC (permalink / raw)
To: Geert Uytterhoeven, Maarten Lankhorst, Maxime Ripard,
David Airlie, Daniel Vetter, Javier Martinez Canillas
Cc: linux-kernel, dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1773 bytes --]
Hi
Am 06.07.23 um 17:30 schrieb Geert Uytterhoeven:
> As of commit 6c80a93be62d398e ("drm/fb-helper: Initialize fb-helper's
> preferred BPP in prepare function"), the preferred_bpp parameter of
> drm_fb_helper_prepare() defaults to 32 instead of
> drm_mode_config.preferred_depth. Hence this also applies to
> drm_fbdev_dma_setup(), which just passes its own preferred_bpp
> parameter.
>
> Fixes: b79fe9abd58bab73 ("drm/fbdev-dma: Implement fbdev emulation for GEM DMA helpers")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Thanks a lot. I'll add it to -misc-next.
Best regards
Thomas
> ---
> drivers/gpu/drm/drm_fbdev_dma.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_fbdev_dma.c b/drivers/gpu/drm/drm_fbdev_dma.c
> index d86773fa8ab00f49..76aa52b38a13ed63 100644
> --- a/drivers/gpu/drm/drm_fbdev_dma.c
> +++ b/drivers/gpu/drm/drm_fbdev_dma.c
> @@ -217,7 +217,7 @@ static const struct drm_client_funcs drm_fbdev_dma_client_funcs = {
> * drm_fbdev_dma_setup() - Setup fbdev emulation for GEM DMA helpers
> * @dev: DRM device
> * @preferred_bpp: Preferred bits per pixel for the device.
> - * @dev->mode_config.preferred_depth is used if this is zero.
> + * 32 is used if this is zero.
> *
> * This function sets up fbdev emulation for GEM DMA drivers that support
> * dumb buffers with a virtual address and that can be mmap'ed.
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-07 7:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06 15:30 [PATCH] drm/fbdev-dma: Fix documented default preferred_bpp value Geert Uytterhoeven
2023-07-07 7:44 ` Thomas Zimmermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).