issue:
https://gitlab.freedesktop.org/wayland/weston/-/issues/514
Corresponding Weston MR:
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/668
Cc: Daniel Vetter
Cc: Gerd Hoffmann
Cc: Pekka Paalanen
Cc: Simon Ser
Cc: Michel Dänzer
Cc: Tina Zhang
Cc: Dongwon Kim
Vivek Kasireddy
drivers. And, it can
provide a potential solution for:
https://gitlab.freedesktop.org/wayland/weston/-/issues/514
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_file.c| 11 +++
drivers/gpu/drm/drm_ioctl.c | 3 +++
include/drm/drm_mode_config.h | 9 +
include/uapi
If this feature is available, the virtio-gpu driver will take
ownership of signalling the OUT_FENCE instead of drm core. As
a result, the OUT_FENCE will no longer be signalled along with
pageflip completion but at a later time.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu
This implements the hypercall interface for the resource_out_fence
command.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 4
drivers/gpu/drm/virtio/virtgpu_vq.c | 17 +
2 files changed, 21 insertions(+)
diff --git a/drivers
This feature enables the Guest to wait to know when a resource
is completely consumed by the Host.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
include/uapi/linux/virtio_gpu.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/uapi/linux/virtio_gpu.h b/include
If support for Blob resources is available, then dumb BOs created
by the driver can be considered as guest Blobs.
v2: Don't skip transfer and flush commands as part of plane update
as the device may have created a shared mapping. (Gerd)
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasi
f Virgl is enabled. (Gurchetan)
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_gem.c| 8
drivers/gpu/drm/virtio/virtgpu_object.c | 3 +++
2 files changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/virtio/virtgpu_gem.c
b/drivers/gpu/drm/virtio/vir
With new use-cases coming up that include virtio-gpu:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9592
the FB associated with a Guest blob may have a modifier. Therefore,
this modifier info needs to be included as part of set_scanout_blob.
Cc: Gerd Hoffmann
Signed-off-by: Vivek
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_gem.c| 8
drivers/gpu/drm/virtio/virtgpu_object.c | 3 +++
drivers/gpu/drm/virtio/virtgpu_plane.c | 18 +++---
3 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/virtio
After registering with this notifier, other drivers that are dependent
on KVM can get notified whenever a VM is created or destroyed. This
also provides a way for sharing the KVM instance pointer with other
drivers.
Signed-off-by: Vivek Kasireddy
---
include/linux/kvm_host.h | 5 +
virt
make it similar to vsock
Vivek Kasireddy (3):
kvm: Add a notifier for create and destroy VM events
virtio: Introduce Vdmabuf driver
vhost: Add Vdmabuf backend
drivers/vhost/Kconfig |9 +
drivers/vhost/Makefile |3 +
drivers/vhost/vdm
Host using
the page information obtained from the Guest. The fd associated with
this dmabuf is made available to Qemu UI/userspace which then creates
a texture from it for the purpose of displaying it.
Signed-off-by: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/vhost/Kconfig
sharing the PFNs of all the pages
associated with the dmabuf and having a new dmabuf created on the
Host that is backed up by the pages mapped from the Guest.
Signed-off-by: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/virtio/Kconfig |8 +
drivers/virtio/Makefil
After registering with this notifier, other drivers that are dependent
on KVM can get notified whenever a VM is created or destroyed. This
also provides a way for sharing the KVM instance pointer with other
drivers.
Signed-off-by: Vivek Kasireddy
---
include/linux/kvm_host.h | 5 +
virt
a Windows Guest?
- Should there be a Vhost backend for virtio-gpu to reduce overhead?
- Should a transfer of a dma-buf from Guest to Host be dependent on a
DRM driver (virtio-gpu)?
Vivek Kasireddy (3):
kvm: Add a notifier for create and destroy VM events
virtio: Introduce Vdmabuf driver
v
sharing the PFNs of all the pages
associated with the dmabuf and having a new dmabuf created on the
Host that is backed up by the pages mapped from the Guest.
Signed-off-by: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/virtio/Kconfig |8 +
drivers/virtio/Makefil
Host using
the page information obtained from the Guest. The fd associated with
this dmabuf is made available to Qemu UI/userspace which then creates
a texture from it for the purpose of displaying it.
Signed-off-by: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/vhost/Kconfig
This feature enables the Guest to wait until a flush has been
performed on a buffer it has submitted to the Host.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
include/uapi/linux/virtio_gpu.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/uapi/linux
This implements the hypercall interface for the wait_flush
command.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 4
drivers/gpu/drm/virtio/virtgpu_vq.c | 17 +
2 files changed, 21 insertions(+)
diff --git a/drivers/gpu/drm
If this feature is available, a fence will be associated with the
scanout buffer and a dma_fence_wait will be performed as part of
plane update.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_debugfs.c | 1 +
drivers/gpu/drm/virtio/virtgpu_drv.c | 1
While looking for next holes suitable for an allocation, although,
it is highly unlikely, make sure that the DECLARE_NEXT_HOLE_ADDR
macro is using a valid node before it extracts the rb_node from it.
Cc: Tvrtko Ursulin
Cc: Christian König
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm
x associated with ggtt vm
as we traverse the hole nodes.
v9: (Tvrtko)
- Use mutex_lock_interruptible_nested() instead of mutex_lock().
Cc: Ville Syrjälä
Cc: Maarten Lankhorst
Cc: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/dr
the i915 patch.
Cc: Tvrtko Ursulin
Cc: Nirmoy Das
Cc: Christian König
Vivek Kasireddy (3):
drm/mm: Ensure that the entry is not NULL before extracting rb_node
drm/mm: Add an iterator to optimally walk over holes for an allocation
(v4)
drm/i915/gem: Don't try to map and fence
: (Tvrtko)
- Reduce the number of hunks by retaining the "mode" variable name
v4:
- Typo: s/__drm_mm_next_hole(.., hole/__drm_mm_next_hole(.., pos
Reviewed-by: Tvrtko Ursulin
Acked-by: Christian König
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm
: (Tvrtko)
- Reduce the number of hunks by retaining the "mode" variable name
v4:
- Typo: s/__drm_mm_next_hole(.., hole/__drm_mm_next_hole(.., pos
Reviewed-by: Tvrtko Ursulin
Acked-by: Christian König
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm
x associated with ggtt vm
as we traverse the hole nodes.
v9: (Tvrtko)
- Use mutex_lock_interruptible_nested() instead of mutex_lock().
Cc: Ville Syrjälä
Cc: Maarten Lankhorst
Cc: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/dr
the i915 patch.
v4: (Tvrtko)
- Dropped the patch added in v2 as it was deemed unnecessary.
Cc: Tvrtko Ursulin
Cc: Nirmoy Das
Cc: Christian König
Vivek Kasireddy (2):
drm/mm: Add an iterator to optimally walk over holes for an allocation
(v4)
drm/i915/gem: Don't try to map and
the i915 patch.
v4: (Tvrtko)
- Dropped the patch added in v2 as it was deemed unnecessary.
Cc: Tvrtko Ursulin
Cc: Nirmoy Das
Cc: Christian König
Vivek Kasireddy (2):
drm/mm: Add an iterator to optimally walk over holes for an allocation
(v4)
drm/i915/gem: Don't try to map and
: (Tvrtko)
- Reduce the number of hunks by retaining the "mode" variable name
v4:
- Typo: s/__drm_mm_next_hole(.., hole/__drm_mm_next_hole(.., pos
Reviewed-by: Tvrtko Ursulin
Acked-by: Christian König
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm
x associated with ggtt vm
as we traverse the hole nodes.
v9: (Tvrtko)
- Use mutex_lock_interruptible_nested() instead of mutex_lock().
Cc: Ville Syrjälä
Cc: Maarten Lankhorst
Cc: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/dr
ko Ursulin
Acked-by: Christian König
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_mm.c | 32 +++-
include/drm/drm_mm.h | 36
2 files changed, 51 insertions(+), 17 deletions(-)
diff --git
the i915 patch.
v4: (Tvrtko)
- Dropped the patch added in v2 as it was deemed unnecessary.
v5: (Tvrtko)
- Fixed yet another typo in the drm core patch: should have
passed caller_mode instead of mode to the iterator.
Cc: Tvrtko Ursulin
Cc: Nirmoy Das
Cc: Christian König
Vivek Kasireddy (2
x associated with ggtt vm
as we traverse the hole nodes.
v9: (Tvrtko)
- Use mutex_lock_interruptible_nested() instead of mutex_lock().
Cc: Ville Syrjälä
Cc: Maarten Lankhorst
Cc: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/dr
ko Ursulin
Acked-by: Christian König
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_mm.c | 32 +++-
include/drm/drm_mm.h | 36
2 files changed, 51 insertions(+), 17 deletions(-)
diff --git
the i915 patch.
v4: (Tvrtko)
- Dropped the patch added in v2 as it was deemed unnecessary.
v5: (Tvrtko)
- Fixed yet another typo in the drm core patch: should have
passed caller_mode instead of mode to the iterator.
Cc: Tvrtko Ursulin
Cc: Nirmoy Das
Cc: Christian König
Vivek Kasireddy (2
x associated with ggtt vm
as we traverse the hole nodes.
v9: (Tvrtko)
- Use mutex_lock_interruptible_nested() instead of mutex_lock().
Cc: Ville Syrjälä
Cc: Maarten Lankhorst
Cc: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/dr
.
Cc: Tvrtko Ursulin
Cc: Nirmoy Das
Cc: Christian König
Vivek Kasireddy (2):
drm/mm: Add an iterator to optimally walk over holes for an allocation
(v6)
drm/i915/gem: Don't try to map and fence large scanout buffers (v9)
drivers/gpu/drm/drm_mm.c| 32
drivers/gp
- Fix the checkpatch warning that warns about precedence issues.
Reviewed-by: Tvrtko Ursulin
Acked-by: Christian König
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_mm.c | 32 +++-
include/drm/drm_mm.
x associated with ggtt vm
as we traverse the hole nodes.
v9: (Tvrtko)
- Use mutex_lock_interruptible_nested() instead of mutex_lock().
Cc: Ville Syrjälä
Cc: Maarten Lankhorst
Cc: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/dr
This is needed to leverage the out_fence machinery for similar but
additional singalling mechanisms.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_atomic_uapi.c | 57 ---
1 file changed, 37 insertions(+), 20 deletions(-)
diff --git a/drivers/gpu/drm
ists.freedesktop.org/archives/dri-devel/2021-July/317672.html
Cc: Daniel Vetter
Cc: Gerd Hoffmann
Cc: Pekka Paalanen
Cc: Simon Ser
Cc: Michel Dänzer
Cc: Tina Zhang
Cc: Dongwon Kim
Cc: Satyeshwar Singh
Vivek Kasireddy (6):
drm/atomic: Move out_fence creation/setup into a separate function
drm
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_debugfs.c | 1 +
drivers/gpu/drm/virtio/virtgpu_drv.c | 1 +
drivers/gpu/drm/virtio/virtgpu_drv.h | 1 +
drivers/gpu/drm/virtio/virtgpu_fence.c | 9 +
drivers/gpu/drm/virtio/virtgpu_kms.c
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 4 +++-
drivers/gpu/drm/virtio/virtgpu_vq.c | 7 +--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h
b/drivers/gpu/drm/virtio/virtgpu_drv.h
index 9126bca47c6d
Release_fence is very similar if not the same as out_fence; it
is an additional signalling mechanism for a page flip completion.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_atomic_uapi.c | 43 +--
drivers/gpu/drm/drm_crtc.c| 2 ++
drivers/gpu/drm
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 63 +++---
1 file changed, 56 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio/virtgpu_plane.c
index a49fd9480381
can provide a potential solution for:
https://gitlab.freedesktop.org/wayland/weston/-/issues/514
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_ioctl.c | 3 +++
include/drm/drm_mode_config.h | 8
include/uapi/drm/drm.h| 1 +
3 files changed, 12 insertions(+)
diff --git a
drivers to quickly identify holes of a certain
size within a given range.
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_mm.c | 28
include/drm/drm_mm.h | 32
2 files changed, 44 insertions
When virgl is not enabled, vfpriv pointer would not be allocated.
Therefore, check for a valid value before dereferencing.
Reported-by: Christian Zigotzky
Cc: Gurchetan Singh
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.c | 3 ++-
1 file changed, 2
-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_mm.c | 38 ++
include/drm/drm_mm.h | 36
2 files changed, 54 insertions(+), 20 deletions(-)
diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu
: (Tvrtko)
- Reduce the number of hunks by retaining the "mode" variable name
Reviewed-by: Tvrtko Ursulin
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_mm.c | 32 +++-
include/drm/drm_mm.
Das
Cc: Christian König
Vivek Kasireddy (2):
drm/mm: Add an iterator to optimally walk over holes for an allocation
(v3)
drm/i915/gem: Don't try to map and fence large scanout buffers (v7)
drivers/gpu/drm/drm_mm.c| 32 -
drivers/gpu/drm/i915/i915_gem.c
c: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/i915/i915_gem.c | 120 +++-
1 file changed, 86 insertions(+), 34 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915
: (Tvrtko)
- Reduce the number of hunks by retaining the "mode" variable name
Cc: Christian König
Reviewed-by: Tvrtko Ursulin
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm_mm.c | 32 +++-
include/drm/drm_mm.
While looking for next holes suitable for an allocation, although,
it is highly unlikely, make sure that the DECLARE_NEXT_HOLE_ADDR
macro is using a valid node before it extracts the rb_node from it.
Cc: Tvrtko Ursulin
Cc: Christian König
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm
this series to fix a potential NULL
dereference.
- Fixed a typo associated with the iterator introduced in the
drm core patch.
- Added locking around the snippet in the i915 patch that
traverses the GGTT hole nodes.
Cc: Tvrtko Ursulin
Cc: Nirmoy Das
Cc: Christian König
Vivek Kasireddy (3
: (Tvrtko)
- Reduce the number of hunks by retaining the "mode" variable name
v4:
- Typo: s/__drm_mm_next_hole(.., hole/__drm_mm_next_hole(.., pos
Reviewed-by: Tvrtko Ursulin
Acked-by: Christian König
Suggested-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/drm
x associated with ggtt vm
as we traverse the hole nodes.
Cc: Ville Syrjälä
Cc: Maarten Lankhorst
Cc: Tvrtko Ursulin
Cc: Manasi Navare
Reviewed-by: Tvrtko Ursulin
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/i915/i915_gem.c | 124 +++-
1 file changed, 90
0 ]---
RIP: 0010:dma_unmap_sgtable include/linux/dma-mapping.h:378 [inline]
RIP: 0010:put_sg_table drivers/dma-buf/udmabuf.c:89 [inline]
RIP: 0010:release_udmabuf+0xcb/0x4f0 drivers/dma-buf/udmabuf.c:114
Reported-by: syzbot+c80e9ef5d8bb45894...@syzkaller.appspotmail.com
Cc: Gerd Hoffmann
Signed-off
Reported-by: syzbot+10e27961f4da37c443b2 at syzkaller.appspotmail.com
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index
v2: Dont't forget to deregister if DMA mask setup fails.
Reported-by: syzbot+10e27961f4da37c44...@syzkaller.appspotmail.com
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git
If the VMM's (Qemu) memory backend is backed up by memfd + Hugepages
(hugetlbfs and not THP), we have to first find the hugepage(s) where
the Guest allocations are located and then extract the regular 4k
sized subpages from them.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
driver
when the
range of subpage allocations cuts across multiple hugepages.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 46 ---
1 file changed, 38 insertions(+), 8 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dm
lated correctly
when the range of subpage allocations cuts across multiple hugepages.
v3: Instead of repeatedly looking up the hugepage for each subpage,
only do it when the subpage allocation crosses over into a different
hugepage. (suggested by Gerd and DW)
Cc: Gerd Hoffmann
Signed-off-by:
ed by checkpatch:
CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
Signed-off-by: Dongwon Kim
---
drivers/dma-buf/udmabuf.c | 50 +--
1 file changed, 43 insertions(+), 7 deletions(-)
diff --git a/
x27;t access it at the same time.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Tina Zhang
Vivek Kasireddy (3):
drm/virtio: Add fences for Guest blobs
drm/virtio: Prepare resource_flush to accept a fence
drm/virtio: Add the fence in resource_flush if present
drivers/gpu/drm/virtio/virtgpu_drv.h
Add prepare and cleanup routines for primary planes as well
where a fence is added only if the BO/FB associated with the
plane is a guest blob.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 19 ---
1 file changed, 12 insertions
If the framebuffer associated with the plane contains a fence, then
it is added to resource_flush and will be waited upon for a max of
50 msecs or until it is signalled by the Host.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 45
A fence will be added to resource_flush for resources that
are guest blobs.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 4 +++-
drivers/gpu/drm/virtio/virtgpu_vq.c | 7 +--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a
positioning the VMM's (e.g, Qemu) windows on various
monitors and launching the Guest VM, run the get-state tool (tools/
get-state.py) associated with Mutter to ensure that the Hosts' and
Guests' outputs are aligned.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Vivek Kasireddy (2):
drm/virtio:
These properties provide a way to suggest to the userspace the preferred
positions for the outputs. Mutter already uses these properties to
determine the best positions for the outputs.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio
while configuring the outputs.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_display.c | 14 ++
drivers/gpu/drm/virtio/virtgpu_drv.h | 2 ++
2 files changed, 16 insertions(+)
diff --git a/drivers/gpu/drm/virtio
: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_display.c | 5 +
drivers/gpu/drm/virtio/virtgpu_vq.c | 14 ++
2 files changed, 19 insertions(+)
diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c
b/drivers/gpu/drm/virtio/virtgpu_display.c
so improved the commit message in patch #2.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Vivek Kasireddy (2):
drm/virtio: Attach and set suggested_x/y properties for the connector
(v2)
drm/virtio: Add hotplug_mode_update property to ensure position info
is read (v2)
drivers/gpu/drm/virtio/virtgpu
Cc: Dongwon Kim
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_display.c | 14 ++
drivers/gpu/drm/virtio/virtgpu_drv.h | 2 ++
2 files changed, 16 insertions(+)
diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c
b/drivers/gpu/drm/virtio/virtgpu_display.c
Hildenbrand
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Andrew Morton
Cc: James Houghton
Cc: Jerome Marchand
Cc: Junxiao Chang
Cc: Kirill A. Shutemov
Cc: Michal Hocko
Cc: Muchun Song
Vivek Kasireddy (2):
udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap
udmabuf: Add back support for
David Hildenbrand
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Andrew Morton
Cc: James Houghton
Cc: Jerome Marchand
Cc: Junxiao Chang
Cc: Kirill A. Shutemov
Cc: Michal Hocko
Cc: Muchun Song
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 8 +---
1
with -display gtk,gl=off above would
exercise the mmap handler.
Cc: Mike Kravetz
Cc: David Hildenbrand
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Andrew Morton
Cc: James Houghton
Cc: Jerome Marchand
Cc: Junxiao Chang
Cc: Kirill A. Shutemov
Cc: Michal Hocko
Cc: Muchun Song
Signed-off-by: Vivek Kasi
Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (2):
udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap
udmabuf: Add back support for mapping hugetlb pages (v3)
drivers/dma-buf/udmabuf.c | 93 ---
1 file changed, 77 insertions(+), 16
s
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Acked-by: Mike Kravetz (v2)
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 85 +--
1 file changed, 72 insertions(+), 13 deletions(-)
diff --git a/drivers/dm
aniel Vetter
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Suggested-by: David Hildenbrand
Acked-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 8 +---
1 file chang
Chang
Vivek Kasireddy (3):
mm/gup: Export check_and_migrate_movable_pages()
udmabuf: Add support for page migration out of movable zone or CMA
selftests/dma-buf/udmabuf: Add tests to verify data after page
migration
drivers/dma-buf/udmabuf.c | 106
relevant pages are available).
Cc: David Hildenbrand
Cc: Daniel Vetter
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Signed-off-by: Vivek Kasireddy
---
include/linux/mm.h | 2 ++
mm/gup.c | 9 +
2
Hildenbrand
Cc: Daniel Vetter
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 106 +++---
1
: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Based-on-patch-by: Mike Kravetz
Signed-off-by: Vivek Kasireddy
---
.../selftests/drivers/dma-buf/udmabuf.c | 151 +-
1 file changed, 147 insertions
Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/driver
m
Cc: Junxiao Chang
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 84 +--
1 file changed, 71 insertions(+), 13 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 820c993c8659..10c47bf77fb5 100644
--- a/dr
manually populate the scatterlist
Cc: David Hildenbrand
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe `
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (2):
udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap
udmabuf: Add back support
x27;d the udmabuf fd.
Cc: David Hildenbrand
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 172 ++
1 file changed
FALLOC_FL_PUNCH_HOLE.
Cc: David Hildenbrand
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (3):
mm/mmu_notifier: Add a new notifier for mapping updates (new pages)
udmabuf: Replace pages when there is
overlap with
the region of the mapping where a hole had been punched previously.
Based-on-patch-by: Mike Kravetz
Cc: Shuah Khan
Cc: David Hildenbrand
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Signed-off-by: Vivek
are
faulted in as a result of writes made to the mapping region that
overlaps with a previously punched hole.
Cc: David Hildenbrand
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Signed-off-by: Vivek Kasireddy
etter
Signed-off-by: Vivek Kasireddy
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index fa4cab9492a2..af29a75b4a31 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -23875,6 +23875,7 @@ F: lib/iov_iter.c
USERSPACE DMA BUFFER DRIVER
M:
from a
patch by Dmitry Osipenko .
Cc: Gerd Hoffmann
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h| 5 +
drivers/gpu/drm/virtio/virtgpu_object.c | 23 +++
drivers/gpu/drm
This helper would be used when first initializing the object as
part of import and also when updating the plane where we need to
ensure that the imported object's backing is valid.
Cc: Gerd Hoffmann
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by:
The imported object can be considered a guest blob resource;
therefore, we use create_blob cmd while creating it. These helpers
are used in the next patch which does the actual import.
Cc: Gerd Hoffmann
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by: Vivek
by sending detach_backing cmd.
Cc: Gerd Hoffmann
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_prime.c | 57 +-
1 file changed, 56 insertions(+), 1 deletion(-)
diff --git a/drivers
Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 71 +-
1 file changed, 70 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio
hristian Koenig
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Cc: Thomas Hellström
Cc: Michal Wajdeczko
Cc: Michael Tretter
Vivek Kasireddy (5):
drm/virtio: Implement VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING cmd
drm/virtio: Add a helper to map and note the dma
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (3):
mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file
pages
udmabuf: Pin the pages using pin_user_pages_fd() API
selftests/dma-buf/udmabuf: Add
: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Based-on-patch-by: Mike Kravetz
Signed-off-by: Vivek Kasireddy
---
.../selftests/drivers/dma-buf/udmabuf.c | 151 +-
1 file changed, 147 insertions
1 - 100 of 284 matches
Mail list logo