]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: Call the right shmem helpers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 May 2020 09:35:49 +0000 (11:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Jun 2020 12:48:27 +0000 (14:48 +0200)
commitcc13046c6756c3fa32e12c5bbe072a9d368d382a
treed8a1e05e3fe67366625e9a98b98d8f67671fb559
parentc7543fdb10b0bc3c9938fc5b8626dca610eef9fb
drm/virtio: Call the right shmem helpers

drm_gem_shmem_get_sg_table is meant to implement
obj->funcs->get_sg_table, for prime exporting. The one we want is
drm_gem_shmem_get_pages_sgt, which also handles imported dma-buf, not
just native objects.

v2: Rebase, this stuff moved around in

commit 204837922c8e56c79e1c7f97d73d55aef47be8c5
Author: Gerd Hoffmann <kraxel@redhat.com>
Date:   Fri Feb 7 08:46:38 2020 +0100

    drm/virtio: move virtio_gpu_mem_entry initialization to new function

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Link: https://patchwork.freedesktop.org/patch/msgid/20200511093554.211493-5-daniel.vetter@ffwll.ch
drivers/gpu/drm/virtio/virtgpu_object.c