]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: resource teardown tweaks
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Feb 2020 07:46:36 +0000 (08:46 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 10 Feb 2020 11:54:33 +0000 (12:54 +0100)
commit09b1dc5283409c979ebcd38545d70ae6c6093b10
treee47715d779669dcced12f21d5c4918e11edb269f
parent114e85ae67228387de85a5bda10a85042c4bbec1
drm/virtio: resource teardown tweaks

Add new virtio_gpu_cleanup_object() helper function for object cleanup.
Wire up callback function for resource unref, do cleanup from callback
when we know the host stopped using the resource.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200207074638.26386-3-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