drm/gm12u320: Move vmap out of commit tail
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 11:55:37 +0000 (12:55 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 12:00:44 +0000 (13:00 +0100)
commit4ac0868d43b0874d466f248bb767c549bbd741b7
treef1d8e97c7758bed5a6a3e9286798ad1f1ceb6aab
parent681a2c5dfd31e61774fcc8a82809aeb7d0773656
drm/gm12u320: Move vmap out of commit tail

Vmap operations may acquire the dmabuf reservation lock, which is not
allowed within atomic commit-tail functions. Therefore move vmap and
vunmap from the damage handler into prepare_fb and cleanup_fb callbacks.

The mapping is provided as GEM shadow-buffered plane. The functions in
the commit tail use the pre-established mapping for damage handling.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210208115538.6430-7-tzimmermann@suse.de
drivers/gpu/drm/tiny/gm12u320.c