public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add RESOURCE_GET_LAYOUT ioctl
@ 2023-11-10  7:16 Julia Zhang
  2023-11-10  7:16 ` [PATCH 1/2] drm/virtio: Implement " Julia Zhang
  2023-11-10  7:16 ` [PATCH 2/2] drm/virtio: Modify " Julia Zhang
  0 siblings, 2 replies; 4+ messages in thread
From: Julia Zhang @ 2023-11-10  7:16 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

This is to add a new ioctl RESOURCE_GET_LAYOUT to virtio-gpu to get the
information about how the host has actually allocated the buffer. It is
implemented to query the stride of linear buffer for dGPU prime on guest VM,
related mesa mr: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23896

Daniel Stone (1):
  drm/virtio: Implement RESOURCE_GET_LAYOUT ioctl

Julia Zhang (1):
  drm/virtio: Modify RESOURCE_GET_LAYOUT ioctl

 drivers/gpu/drm/virtio/virtgpu_drv.c   |  1 +
 drivers/gpu/drm/virtio/virtgpu_drv.h   | 22 ++++++++-
 drivers/gpu/drm/virtio/virtgpu_ioctl.c | 66 ++++++++++++++++++++++++++
 drivers/gpu/drm/virtio/virtgpu_kms.c   |  8 +++-
 drivers/gpu/drm/virtio/virtgpu_vq.c    | 63 ++++++++++++++++++++++++
 include/uapi/drm/virtgpu_drm.h         | 21 ++++++++
 include/uapi/linux/virtio_gpu.h        | 30 ++++++++++++
 7 files changed, 208 insertions(+), 3 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-11-13 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-10  7:16 [PATCH 0/2] Add RESOURCE_GET_LAYOUT ioctl Julia Zhang
2023-11-10  7:16 ` [PATCH 1/2] drm/virtio: Implement " Julia Zhang
2023-11-10  7:16 ` [PATCH 2/2] drm/virtio: Modify " Julia Zhang
2023-11-13 13:18   ` Dmitry Osipenko

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