drm/udl: Move vmap out of commit tail
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 11:55:38 +0000 (12:55 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 12:00:51 +0000 (13:00 +0100)
commit5ceeb328637a01e0e54e2618cff129c6a1c31dba
tree48189a6c708ca6076657ab2ae15bb0ac22227023
parent4ac0868d43b0874d466f248bb767c549bbd741b7
drm/udl: 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-8-tzimmermann@suse.de
drivers/gpu/drm/udl/udl_modeset.c