mirror_ubuntu-kernels/drivers/gpu/drm/tiny
Thomas Zimmermann e7c814d305 drm/simpledrm: Preallocate format-conversion buffer in atomic_check
Preallocate the format-conversion state's storage in the plane's
atomic_check function if a format conversion is necessary. Allows
the update to fail if no memory is available. Avoids the same
allocation within atomic_update, which may not fail.

Also inline drm_plane_helper_atomic_check() into the driver and thus
return early for invisible planes. Avoids memory allocation entirely
in this case.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231009141018.11291-6-tzimmermann@suse.de
2023-11-14 10:17:22 +01:00
..
arcpgu.c drm/arcpgu: Use GEM DMA fbdev emulation 2023-03-14 17:07:49 +01:00
bochs.c drm: Call drm_atomic_helper_shutdown() at shutdown time for misc drivers 2023-09-21 10:41:04 -07:00
cirrus.c drm/format-helper: Pass format-conversion state to helpers 2023-11-14 10:16:53 +01:00
gm12u320.c drm: gm12u320: Fix the timeout usage for usb_bulk_msg() 2023-09-04 10:00:57 +02:00
hx8357d.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9163.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9225.c drm/format-helper: Pass format-conversion state to helpers 2023-11-14 10:16:53 +01:00
ili9341.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9486.c drm/mipi-dbi: Lock SPI bus before setting D/C GPIO 2023-08-02 13:18:07 +02:00
Kconfig drm/ofdrm: Depend on CONFIG_MMU 2022-11-03 10:17:53 +01:00
Makefile drm/ofdrm: Add ofdrm for Open Firmware framebuffers 2022-10-14 09:49:47 +02:00
mi0283qt.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ofdrm.c drm/ofdrm: Preallocate format-conversion buffer in atomic_check 2023-11-14 10:17:22 +01:00
panel-mipi-dbi.c drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO 2023-08-02 13:18:34 +02:00
repaper.c drm/format-helper: Pass format-conversion state to helpers 2023-11-14 10:16:53 +01:00
simpledrm.c drm/simpledrm: Preallocate format-conversion buffer in atomic_check 2023-11-14 10:17:22 +01:00
st7586.c drm/format-helper: Pass format-conversion state to helpers 2023-11-14 10:16:53 +01:00
st7735r.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00