drm/mipi-dbi: Support shadow-plane state
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 2 Dec 2022 12:56:42 +0000 (13:56 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 5 Dec 2022 13:20:43 +0000 (14:20 +0100)
commite7caf04d49533fb38d22379be0278a34aad8826f
tree861e8cfafd584047ad0f94430a13b16587bc27df
parentb5f636e63b807fdeba5d61260e5f6b24f6834f69
drm/mipi-dbi: Support shadow-plane state

Implement MIPI DBI planes with struct drm_shadow_plane_state, so that the
respective drivers can use the vmap'ed GEM-buffer memory. Implement state
helpers, the {begin,end}_fb_access helpers and wire up everything.

With this commit, MIPI DBI drivers can access the GEM object's memory
that is provided by shadow-plane state. The actual changes to drivers
are implemented separately.

v2:
* use shadow-plane state directly (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-7-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