]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: move virtio_gpu_object_{attach, detach} calls.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 18 Mar 2019 11:33:28 +0000 (12:33 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 28 Mar 2019 11:11:55 +0000 (12:11 +0100)
commit42ca472603a210a03f4e5d34d2adbf4239f6b1aa
tree875ff8bf3538a01c871414db7c13d1fd8556ff29
parent6bbeae35b67b339b81e42c9ab56789788491dc00
drm/virtio: move virtio_gpu_object_{attach, detach} calls.

Drop the dummy ttm backend implementation, add a real one for
TTM_PL_FLAG_TT objects.  The bin/unbind callbacks will call
virtio_gpu_object_{attach,detach}, to update the object state
on the host side, instead of invoking those calls from the
move_notify() callback.

With that in place the move and move_notify callbacks are not
needed any more, so drop them.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190318113332.10900-2-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_ttm.c