Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH 0/1] Implement device_attach for virtio gpu
@ 2024-01-10  9:56 Julia Zhang
  2024-01-10  9:56 ` [PATCH 1/1] drm/virtio: Implement device_attach Julia Zhang
  0 siblings, 1 reply; 9+ messages in thread
From: Julia Zhang @ 2024-01-10  9:56 UTC (permalink / raw)
  To: Gurchetan Singh, Chia-I Wu, David Airlie, Gerd Hoffmann,
	linux-kernel, dri-devel, amd-gfx, virtualization
  Cc: Alex Deucher, Christian König, Daniel Vetter, David Airlie,
	Erik Faye-Lund, Marek Olšák, Pierre-Eric Pelloux-Prayer,
	Honglei Huang, Chen Jiqian, Huang Rui, Julia Zhang

To realize dGPU prime feature for virtio gpu, we are trying let dGPU import
vram object of virtio gpu. But this feature would finally call function
virtio_dma_buf_ops.device_attach(), which was set as drm_gem_map_attach().
drm_gem_map_attach() requires drm_gem_object_funcs.get_sg_table to be
implemented, or else return ENOSYS. But virtio gpu driver has not
implemented it for vram object and actually vram object does not require
it. So this add a new implementation of device_attach() to call
drm_gem_map_attach() for shmem object and return 0 for vram object as it
actually did before the requirement was added.

Julia Zhang (1):
  drm/virtio: Implement device_attach

 drivers/gpu/drm/virtio/virtgpu_prime.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-01-11  9:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10  9:56 [PATCH 0/1] Implement device_attach for virtio gpu Julia Zhang
2024-01-10  9:56 ` [PATCH 1/1] drm/virtio: Implement device_attach Julia Zhang
2024-01-10 10:19   ` Christian König
2024-01-10 10:22     ` Daniel Vetter
2024-01-10 10:46       ` Christian König
2024-01-10 10:54         ` Daniel Vetter
2024-01-10 10:21   ` Daniel Vetter
2024-01-11  8:52     ` Zhang, Julia
2024-01-11  9:31       ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox