drm/mipi-dbi: Prepare framebuffer copy operation in pipe-update helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 2 Dec 2022 12:56:41 +0000 (13:56 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 5 Dec 2022 12:36:33 +0000 (13:36 +0100)
commitb5f636e63b807fdeba5d61260e5f6b24f6834f69
treed3f71b506e0b09c78a36e3f975337880d37b3ec6
parent63aa5ec6cf2f332ec4ef08a03f4f39895f82b2b9
drm/mipi-dbi: Prepare framebuffer copy operation in pipe-update helpers

Move the vmap/vunmap blocks from the inner fb_dirty helpers into the
MIPI DBI update helpers. The function calls can result in waiting and/or
processing overhead. Reduce the penalties by executing the functions once
in the outer-most function of the pipe update.

This change also prepares for MIPI DBI for shadow-plane helpers. With
shadow-plane helpers, transfer source buffers are mapped into kernel
address space automatically.

v2:
* keep each driver's existing buffer-mapping patter (Noralf)
* zero-initialize iosys_map arrays (Noralf)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Noralf Trønnes <noralf@tronnes.org> # drm/tiny/mi0283qt
Link: https://patchwork.freedesktop.org/patch/msgid/20221202125644.7917-6-tzimmermann@suse.de
drivers/gpu/drm/drm_mipi_dbi.c
drivers/gpu/drm/tiny/ili9225.c
drivers/gpu/drm/tiny/st7586.c
include/drm/drm_mipi_dbi.h