[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 17/21] drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
- To: alexander.deucher@xxxxxxx, christian.koenig@xxxxxxx, airlied@xxxxxxxx, daniel@xxxxxxxx, linux@xxxxxxxxxxxxxxx, maarten.lankhorst@xxxxxxxxxxxxxxx, mripard@xxxxxxxxxx, l.stach@xxxxxxxxxxxxxx, christian.gmeiner@xxxxxxxxx, inki.dae@xxxxxxxxxxx, jy0922.shim@xxxxxxxxxxx, sw0312.kim@xxxxxxxxxxx, kyungmin.park@xxxxxxxxxxx, kgene@xxxxxxxxxx, krzk@xxxxxxxxxx, patrik.r.jakobsson@xxxxxxxxx, jani.nikula@xxxxxxxxxxxxxxx, joonas.lahtinen@xxxxxxxxxxxxxxx, rodrigo.vivi@xxxxxxxxx, chunkuang.hu@xxxxxxxxxx, p.zabel@xxxxxxxxxxxxxx, matthias.bgg@xxxxxxxxx, robdclark@xxxxxxxxx, sean@xxxxxxxxxx, bskeggs@xxxxxxxxxx, tomi.valkeinen@xxxxxx, eric@xxxxxxxxxx, hjc@xxxxxxxxxxxxxx, heiko@xxxxxxxxx, thierry.reding@xxxxxxxxx, jonathanh@xxxxxxxxxx, rodrigosiqueiramelo@xxxxxxxxx, hamohammed.sa@xxxxxxxxx, oleksandr_andrushchenko@xxxxxxxx, hyun.kwon@xxxxxxxxxx, laurent.pinchart@xxxxxxxxxxxxxxxx, michal.simek@xxxxxxxxxx, sumit.semwal@xxxxxxxxxx, evan.quan@xxxxxxx, Hawking.Zhang@xxxxxxx, tianci.yin@xxxxxxx, marek.olsak@xxxxxxx, hdegoede@xxxxxxxxxx, andrey.grodzovsky@xxxxxxx, Felix.Kuehling@xxxxxxx, xinhui.pan@xxxxxxx, aaron.liu@xxxxxxx, nirmoy.das@xxxxxxx, chris@xxxxxxxxxxxxxxxxxx, matthew.auld@xxxxxxxxx, tvrtko.ursulin@xxxxxxxxxxxxxxx, andi.shyti@xxxxxxxxx, sam@xxxxxxxxxxxx, miaoqinglang@xxxxxxxxxx, emil.velikov@xxxxxxxxxxxxx
- From: Thomas Zimmermann <tzimmermann@xxxxxxx>
- Date: Tue, 15 Sep 2020 16:59:54 +0200
- Cc: amd-gfx@xxxxxxxxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, etnaviv@xxxxxxxxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-samsung-soc@xxxxxxxxxxxxxxx, intel-gfx@xxxxxxxxxxxxxxxxxxxxx, linux-mediatek@xxxxxxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, freedreno@xxxxxxxxxxxxxxxxxxxxx, nouveau@xxxxxxxxxxxxxxxxxxxxx, linux-rockchip@xxxxxxxxxxxxxxxxxxx, linux-tegra@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, Thomas Zimmermann <tzimmermann@xxxxxxx>
- Delivery-date: Tue, 15 Sep 2020 15:00:47 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
GEM object functions deprecate several similar callback interfaces in
struct drm_driver. This patch replaces virtgpu's per-driver PRIME export
function with a per-object function.
Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx>
---
drivers/gpu/drm/virtio/virtgpu_drv.c | 1 -
drivers/gpu/drm/virtio/virtgpu_object.c | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c
b/drivers/gpu/drm/virtio/virtgpu_drv.c
index b039f493bda9..1f8d6ed11d21 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.c
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.c
@@ -203,7 +203,6 @@ static struct drm_driver driver = {
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
.gem_prime_mmap = drm_gem_prime_mmap,
- .gem_prime_export = virtgpu_gem_prime_export,
.gem_prime_import = virtgpu_gem_prime_import,
.gem_prime_import_sg_table = virtgpu_gem_prime_import_sg_table,
diff --git a/drivers/gpu/drm/virtio/virtgpu_object.c
b/drivers/gpu/drm/virtio/virtgpu_object.c
index 842f8b61aa89..4f7d7ea8194c 100644
--- a/drivers/gpu/drm/virtio/virtgpu_object.c
+++ b/drivers/gpu/drm/virtio/virtgpu_object.c
@@ -108,6 +108,7 @@ static const struct drm_gem_object_funcs
virtio_gpu_shmem_funcs = {
.close = virtio_gpu_gem_object_close,
.print_info = drm_gem_shmem_print_info,
+ .export = virtgpu_gem_prime_export,
.pin = drm_gem_shmem_pin,
.unpin = drm_gem_shmem_unpin,
.get_sg_table = drm_gem_shmem_get_sg_table,
--
2.28.0
|