]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/format-helper: Print warning on missing format conversion
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 25 Apr 2022 07:59:37 +0000 (09:59 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 27 Apr 2022 06:51:47 +0000 (08:51 +0200)
Not all possible format conversions are supported yet. Print a
warning on unsupported combinations.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220425075939.30450-2-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c

index 0e71351147287250c9a5221ba8d0f2d0b2e5e726..b648f29b21b678badd23ebe9d72349b1b4027f33 100644 (file)
@@ -590,6 +590,9 @@ int drm_fb_blit_toio(void __iomem *dst, unsigned int dst_pitch, uint32_t dst_for
                }
        }
 
+       drm_warn_once(fb->dev, "No conversion helper from %p4cc to %p4cc found.\n",
+                     &fb_format, &dst_format);
+
        return -EINVAL;
 }
 EXPORT_SYMBOL(drm_fb_blit_toio);