drm/mgag200: Move vmap out of commit tail
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 11:55:35 +0000 (12:55 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 12:00:26 +0000 (13:00 +0100)
commit4862ffaec523fe24cce6943bf78aa7ea1ba77039
tree5ab4a657b378e5de02b727add53e118576756fcb
parent6dd7b6ce43acd70f75ae285fee8eeb2dd4933dce
drm/mgag200: 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-5-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_mode.c