]> 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)
commit21c6561ae486c2a51cd649095d878c4c2048680f
tree875ff8bf3538a01c871414db7c13d1fd8556ff29
parent65286a52fd5b74b9c89ce972bf0b96cf5d449b61
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