]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: move mapping teardown to virtio_gpu_cleanup_object()
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Feb 2020 07:46:37 +0000 (08:46 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 10 Feb 2020 11:54:33 +0000 (12:54 +0100)
commit57966e61817c165e8da31cc6462e580084177d13
tree10cfd4b4500b2081a3d951e82cfbef484ebb1c51
parent629f2c09619e6f4fb52c0e8825c70917e60164a4
drm/virtio: move mapping teardown to virtio_gpu_cleanup_object()

Stop sending DETACH_BACKING commands, that will happening anyway when
releasing resources via UNREF.  Handle guest-side cleanup in
virtio_gpu_cleanup_object(), called when the host finished processing
the UNREF command.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200207074638.26386-4-kraxel@redhat.com
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_object.c
drivers/gpu/drm/virtio/virtgpu_vq.c