[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240129101250.3258049-1-julia.zhang@amd.com>
Date: Mon, 29 Jan 2024 18:12:50 +0800
From: Julia Zhang <julia.zhang@....com>
To: Gurchetan Singh <gurchetansingh@...omium.org>, Chia-I Wu
<olvaffe@...il.com>, David Airlie <airlied@...hat.com>, Gerd Hoffmann
<kraxel@...hat.com>, <linux-kernel@...r.kernel.org>,
<dri-devel@...ts.freedesktop.org>, <amd-gfx@...ts.freedesktop.org>,
<virtualization@...ts.linux-foundation.org>
CC: Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>, Daniel Vetter
<daniel@...ll.ch>, David Airlie <airlied@...il.com>, Erik Faye-Lund
<kusmabite@...il.com>, Marek Olšák
<marek.olsak@....com>, Pierre-Eric Pelloux-Prayer
<pierre-eric.pelloux-prayer@....com>, Honglei Huang <honglei1.huang@....com>,
Chen Jiqian <Jiqian.Chen@....com>, Huang Rui <ray.huang@....com>, Julia Zhang
<julia.zhang@....com>
Subject: [PATCH v2 0/1] Implement device_attach for virtio gpu
To realize dGPU prime feature for virtio gpu, we are trying to let dGPU
import vram object of virtio gpu. As vram objects don't have backing pages
and thus can't implement the drm_gem_object_funcs.get_sg_table callback,
this removes calling drm_gem_map_dma_buf in virtgpu_gem_map_dma_buf and
implement virtgpu specific map/unmap/attach callbacks to support both of
shmem objects and vram objects.
Changes from v1 to v2:
-Reimplement virtgpu_gem_device_attach()
-Remove calling drm dma-buf funcs in virtgpu callbacks and reimplement virtgpu
specific dma-buf callbacks.
Julia Zhang (1):
drm/virtio: Implement device_attach
drivers/gpu/drm/virtio/virtgpu_prime.c | 40 +++++++++++++++++++++++---
1 file changed, 36 insertions(+), 4 deletions(-)
--
2.34.1
Powered by blists - more mailing lists