import().
Fixes: 415cb45895f4 ("drm/virtio: Use dma_buf from GEM object instance")
Cc: Dmitry Osipenko
Cc: Thomas Zimmermann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 1 +
drivers/gpu/drm/virtio/virtgpu_prime.c | 3 ++-
2 files changed, 3 insertion
Singh
Cc: Chia-I Wu
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_prime.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c
b/drivers/gpu/drm/virtio/virtgpu_prime.c
index fe6a0b018571..ceb0401a000b 100644
--- a/drivers/gpu/
There is no need to share the main device pointer (struct vfio_device *)
with all the feature functions as they only need the core device
pointer. Therefore, extract the core device pointer once in the
caller (vfio_pci_core_ioctl_feature) and share it instead.
Signed-off-by: Vivek Kasireddy
These helpers are useful for managing additional references taken
on the device from other associated VFIO modules.
Original-patch-by: Jason Gunthorpe
Signed-off-by: Vivek Kasireddy
---
drivers/vfio/vfio_main.c | 2 ++
include/linux/vfio.h | 2 ++
2 files changed, 4 insertions(+)
diff
lowing enhancements are made to the original patch:
- Add support for creating dmabuf from multiple areas (or ranges)
Cc: Alex Williamson
Cc: Simona Vetter
Cc: Christian König
Original-patch-by: Jason Gunthorpe
Signed-off-by: Vivek Kasireddy
---
drivers/vfio/pci/Makefile
Cc: Shameer Kolothum
Cc: Kevin Tian
Cc: Wei Lin Guay
Cc: Xu Yilun
Vivek Kasireddy (3):
vfio: Export vfio device get and put registration helpers
vfio/pci: Share the core device pointer while invoking feature
functions
vfio/pci: Allow MMIO regions to be exported through dma-
getlb folios to satisfy the allocation needs.
Cc: Gerd Hoffmann
Cc: Steve Sistare
Cc: Muchun Song
Cc: David Hildenbrand
Cc: Andrew Morton
Signed-off-by: Vivek Kasireddy
---
.../selftests/drivers/dma-buf/udmabuf.c | 20 ++-
1 file changed, 19 insertions(+), 1 deletion(-)
e as well
- Added a new udmabuf selftest to exercise the same path as that
of syzbot
Cc: Gerd Hoffmann
Cc: Steve Sistare
Cc: Muchun Song
Cc: David Hildenbrand
Cc: Andrew Morton
Vivek Kasireddy (2):
mm/memfd: reserve hugetlb folios before allocation
selftests/udmabuf: add a test to pin fir
m/hugetlb: fix memfd_pin_folios resv_huge_pages leak")
Reported-by: syzbot+a504cb5bae4fe117b...@syzkaller.appspotmail.com
Signed-off-by: Vivek Kasireddy
Cc: Steve Sistare
Cc: Muchun Song
Cc: David Hildenbrand
Cc: Andrew Morton
---
include/linux/hugetlb.h | 5 +
mm/hugetl
initialization")
Suggested-by: Dmitry Osipenko
Cc: Gerd Hoffmann
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.c | 21 +++--
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_
helpers to initialize and free the
imported object")
Fixes: ca77f27a2665 ("drm/virtio: Import prime buffers from other devices as
guest blobs")
Cc: Gerd Hoffmann
Cc: Dmitry Osipenko
Cc: Gurchetan Singh
Cc: Chia-I Wu
Reported-by: Dan Carpenter
Signed-off-by: Vivek Kasiredd
ld release the lock to allow other VGA compatible
devices to access these shared VGA resources.
Cc: Gerd Hoffmann
Cc: Gurchetan Singh
Cc: Chia-I Wu
Reported-by: Dmitry Osipenko
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.c | 40 +++-
1 file
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 | 21 +++
drivers/gpu/drm/virtio
Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 65 +-
1 file changed, 64 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio
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 | 56 +-
1 file changed, 55 insertions(+), 1 deletion(-)
diff --git a/drivers
U.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Simona Vetter
Cc: Christian Koenig
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Vivek Kasireddy (5):
drm/virtio: Implement VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING cmd
drm/virtio: Add a helper to map and note the dma addrs and l
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:
RPL iGPU.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Simona Vetter
Cc: Christian Koenig
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Vivek Kasireddy (5):
drm/virtio: Implement VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING cmd
drm/virtio: Add a helper to map and note t
Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 65 +-
1 file changed, 64 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio
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
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 | 56 +-
1 file changed, 55 insertions(+), 1 deletion(-)
diff --git a/drivers
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
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:
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 | 65 +-
1 file changed, 64 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio
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
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:
sing a RPL iGPU.
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Simona Vetter
Cc: Christian Koenig
Cc: Dmitry Osipenko
Cc: Rob Clark
Cc: Gurchetan Singh
Cc: Chia-I Wu
Vivek Kasireddy (5):
drm/virtio: Implement VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING cmd
drm/virtio: Add a helper to map and note the
check.
v2:
- Relax the enforcment of ACS check only for Intel GPU functions
as they are P2PDMA compatible given the way the PF provisions
the resources among multiple VFs.
Cc: Bjorn Helgaas
Cc: Logan Gunthorpe
Cc:
Signed-off-by: Vivek Kasireddy
---
drivers/pci/p2pdma.c | 17
If the importer has allow_peer2peer set to true, then we can expect that
it would be able to handle VRAM addresses. Therefore, in this specific
case and only while running in VF mode, do not migrate the BO to System
RAM before exporting it.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe
rred-primary",
TAG+="mutter-device-disable-kms-modifiers"
# XDG_SESSION_TYPE=wayland dbus-run-session -- /usr/bin/gnome-shell --wayland
--no-x11 &
Cc: Michal Wajdeczko
Cc: Michał Winiarski
Cc: Simona Vetter
Cc: Matthew Auld
Cc: Matthew Brost
Cc: Thomas Hellström
Cc: Dongwon
on SG iterator (Matt)
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe/xe_pt.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c
index f27f579f4d85..cfa11acbf525 100644
--- a/drivers/gpu/drm/xe/xe_pt.c
+++ b/driver
per return the LMEM object instead of the start address.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 23 ++
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h | 1 +
2 files changed, 24 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_c
(of type drm_pagemap_dma_addr) and populate
it with the new addresses along with the segment sizes.
v2:
- Use dma_addr array instead of sg table to store translated addresses
(Matt)
Cc: Matthew Brost
Cc: Thomas Hellström
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe/xe_bo.c
it with the new addresses.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe/xe_bo.c | 108 ++-
drivers/gpu/drm/xe/xe_bo_types.h | 6 ++
2 files changed, 113 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
If a BO's is_devmem_external flag is set, it means that it is an
imported dmabuf BO that has a backing store in VRAM. Therefore, we
need to add XE_PPGTT_PTE_DM to the PTE flags as part of vm_bind.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe/xe_pt.c | 5 +++--
1 file chang
VF's region in LMEM.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 23 ++
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h | 1 +
2 files changed, 24 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
b/drivers/
check.
Cc: Bjorn Helgaas
Cc: Logan Gunthorpe
Cc:
Signed-off-by: Vivek Kasireddy
---
drivers/pci/p2pdma.c | 12 ++--
include/linux/pci.h | 1 +
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c
index 4f47a13cb500..34bee1ac94f2
t;
# XDG_SESSION_TYPE=wayland dbus-run-session -- /usr/bin/gnome-shell --wayland
--no-x11 &
Cc: Michal Wajdeczko
Cc: Michał Winiarski
Cc: Simona Vetter
Cc: Matthew Auld
Cc: Thomas Hellström
Cc: Dongwon Kim
Vivek Kasireddy (5):
PCI/P2PDMA: Don't enforce ACS check for functions of
If the importer has allow_peer2peer set to true, then we can expect that
it would be able to handle VRAM addresses. Therefore, in this specific
case and only while running in VF mode, do not migrate the BO to System
RAM before exporting it.
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/xe
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:
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
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
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
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
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:
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
d0 is virtio-gpu.
Cc: Jason Gunthorpe
Cc: Christoph Hellwig
Cc: Robin Murphy
Cc: Christian König
Cc: Daniel Vetter
Cc: Gerd Hoffmann
Cc: Alex Williamson
Cc: Kevin Tian
Vivek Kasireddy (3):
vfio: Export vfio device get and put registration helpers
vfio/pci: Share the core device po
There is no need to share the main device pointer (struct vfio_device *)
with all the feature functions as they only need the core device
pointer. Therefore, extract the core device pointer once in the
caller (vfio_pci_core_ioctl_feature) and share it instead.
Signed-off-by: Vivek Kasireddy
lowing enhancements are made to the original patch:
- Add support for creating dmabuf from multiple areas (or ranges)
- Add a mmap handler to provide CPU access to the dmabuf
Original-patch-by: Jason Gunthorpe
Signed-off-by: Vivek Kasireddy
---
drivers/vfio/pci/Makefile | 1 +
These helpers are useful for managing additional references taken
on the device from other associated VFIO modules.
Original-patch-by: Jason Gunthorpe
Signed-off-by: Vivek Kasireddy
---
drivers/vfio/vfio_main.c | 2 ++
include/linux/vfio.h | 2 ++
2 files changed, 4 insertions(+)
diff
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
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 5 +++
driver
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
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_object.c | 3 ++
drivers
: 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/virtgpu_plane.c
index a72a2dbda031..5ab0741b67cd 100644
--- a/drivers/gpu/drm
by sending detach_backing cmd.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_prime.c | 58 +-
1 file changed, 57 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c
b/drivers/gpu/drm/virtio
llströ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 addrs and lengths
drm/virtio: Add helpers to initialize and free the imported object
drm/virtio: Import pr
This cmd is useful to let the VMM (i.e, Qemu) know that the backing
store associated with a resource is no longer valid, so that the VMM
can perform any cleanup or unmap operations.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 2 ++
drivers/gpu
aniel Vetter
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
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.
denbrand
Cc: Daniel Vetter
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Cc: linux-kselft...@vger.kernel.org
Suggested-by: Mike Kravetz
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
.../selftests/dri
)
Reviewed-by: David Hildenbrand (v3)
Reviewed-by: Christoph Hellwig (v6)
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
include/linux/memfd.h | 5 ++
include/linux/mm.h| 3 +
mm/gup.c | 137 ++
mm
Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 155 --
1 file changed, 80 insertions(+), 75 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index e67515808ed3..047c3cd2ceff 1
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 139 +++---
1 file changed, 83 insertions(+), 56 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 274defd3fa3e..e67515808ed3 100644
--- a
fmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 122 +++---
1 file changed, 101 insertions(+), 21 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 820c993c8659..274defd3fa3e 100644
--- a/drivers/dma-buf/udma
w Morton
Cc: Oscar Salvador
Cc: Daniel Vetter
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Arnd Bergmann (1):
udmabuf: add CONFIG_MMU dependency
Vivek Kasireddy (8):
mm/gup: Introduce unpin_folio/unpin_folios helpers
mm/gup: Intro
Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Acked-by: David Hildenbrand
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
mm/gup.c | 124 ++-
1 file changed, 77 insertions(+), 47 deletions(-)
diff
AP for handling
mmap")
Signed-off-by: Arnd Bergmann
Acked-by: David Hildenbrand
Acked-by: Vivek Kasireddy
---
drivers/dma-buf/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig
index e4dc53a36428..b46eb8a552d7 100644
--- a/dri
folio is anon-exclusive (via
a per folio AnonExclusive flag).
Cc: David Hildenbrand
Cc: Matthew Wilcox
Cc: Christoph Hellwig
Cc: Jason Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Reviewed-by: David Hildenbrand
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek
Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 155 --
1 file changed, 80 insertions(+), 75 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index e67515808ed3..047c3cd2ceff 1
aniel Vetter
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
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.
denbrand
Cc: Daniel Vetter
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Cc: linux-kselft...@vger.kernel.org
Suggested-by: Mike Kravetz
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
.../selftests/dri
AP for handling
mmap")
Signed-off-by: Arnd Bergmann
Acked-by: David Hildenbrand
Acked-by: Vivek Kasireddy
---
drivers/dma-buf/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig
index e4dc53a36428..b46eb8a552d7 100644
--- a/dri
folio is anon-exclusive (via
a per folio AnonExclusive flag).
Cc: David Hildenbrand
Cc: Matthew Wilcox
Cc: Christoph Hellwig
Cc: Jason Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Reviewed-by: David Hildenbrand
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek
fmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 122 +++---
1 file changed, 101 insertions(+), 21 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 820c993c8659..274defd3fa3e 100644
--- a/drivers/dma-buf/udma
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 139 +++---
1 file changed, 83 insertions(+), 56 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 274defd3fa3e..e67515808ed3 100644
--- a
Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Acked-by: David Hildenbrand
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
mm/gup.c | 124 ++-
1 file changed, 77 insertions(+), 47 deletions(-)
diff
)
Reviewed-by: David Hildenbrand (v3)
Reviewed-by: Christoph Hellwig (v6)
Acked-by: Dave Airlie
Acked-by: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
include/linux/memfd.h | 5 ++
include/linux/mm.h| 3 +
mm/gup.c | 136 ++
mm
rd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Arnd Bergmann (1):
udmabuf: add CONFIG_MMU dependency
Vivek Kasireddy (8):
mm/gup: Introduce unpin_folio/unpin_folios helpers
mm/gup: Introduce check_and_migrate_movable_folios()
mm/gup: Introduce memfd_pin_folios() for pinning memfd folios
udmabuf:
lowing enhancements are made to the original patch:
- Use P2P DMA APIs to create pages (ZONE_DEVICE) instead of DMA addrs
- Add a mmap handler to provide CPU access to the dmabuf
- Add support for creating dmabuf from multiple areas (or ranges)
Original-patch-by: Jason Gunthorpe
Signed-off-by: V
urphy
Cc: Christian König
Cc: Daniel Vetter
Cc: Oded Gabbay
Cc: Gerd Hoffmann
Cc: Alex Williamson
Cc: Kevin Tian
Vivek Kasireddy (2):
vfio: Export vfio device get and put registration helpers
vfio/pci: Allow MMIO regions to be exported through dma-buf
drivers/vfio/pci/Makefile | 1
These helpers are useful for managing additional references taken
on the device from other associated VFIO modules.
Original-patch-by: Jason Gunthorpe
Signed-off-by: Vivek Kasireddy
---
drivers/vfio/vfio_main.c | 2 ++
include/linux/vfio.h | 2 ++
2 files changed, 4 insertions(+)
diff
ff-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 153 +++---
1 file changed, 78 insertions(+), 75 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index a8f3af61f7f2..afa8bfd2a2a9 100644
--- a/drivers/dma-buf/udmabuf.c
+++ b/driver
aniel Vetter
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 changed, 5 insertions(+), 3 dele
Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Acked-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
mm/gup.c | 124 ++-
1 file changed, 77 insertions(+), 47 deletions(-)
diff --git a/mm/gup.c b/mm/gup.c
index 14e94fdfa827
folio is anon-exclusive (via
a per folio AnonExclusive flag).
Cc: David Hildenbrand
Cc: Matthew Wilcox
Cc: Christoph Hellwig
Cc: Jason Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Reviewed-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
include/linux/mm.h | 2 ++
mm
denbrand
Cc: Daniel Vetter
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Cc: linux-kselft...@vger.kernel.org
Suggested-by: Mike Kravetz
Signed-off-by: Vivek Kasireddy
---
.../selftests/drivers/dma-buf/udmabuf.c | 214 +
)
Reviewed-by: David Hildenbrand (v3)
Reviewed-by: Christoph Hellwig (v6)
Signed-off-by: Vivek Kasireddy
---
include/linux/memfd.h | 5 ++
include/linux/mm.h| 3 +
mm/gup.c | 136 ++
mm/memfd.c| 35 +++
4 files
with -display gtk,gl=off above would
exercise the mmap handler.
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
Acked-by: Mike Kravetz (v2)
Signed-off-by: Vivek Kasireddy
---
driver
cox (Oracle)
Cc: Christoph Hellwig
Cc: Andrew Morton
Cc: Daniel Vetter
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (8):
mm/gup: Introduce unpin_folio/unpin_folios helpers
mm/gup: Introduce check_and_migrate_mov
from
udmabuf_create() into these helpers improves readability given
that udmabuf_create() is a bit long.
Cc: David Hildenbrand
Cc: Matthew Wilcox
Cc: Daniel Vetter
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Signed-off-by: Vivek
with -display gtk,gl=off above would
exercise the mmap handler.
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
Acked-by: Mike Kravetz (v2)
Signed-off-by: Vivek Kasireddy
---
driver
Wilcox
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
---
drivers/dma-buf/udmabuf.c | 140 ++
1 file changed, 83 insertions(+), 57
Chang
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 153 +++---
1 file changed, 78 insertions(+), 75 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index a8f3af61f7f2..afa8bfd2a2a9 100644
--- a/drivers/dma-buf/udma
folio is anon-exclusive (via
a per folio AnonExclusive flag).
Cc: David Hildenbrand
Cc: Matthew Wilcox
Cc: Christoph Hellwig
Cc: Jason Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
include/linux/mm.h | 2 ++
mm/gup.c | 47
Gunthorpe (v2)
Reviewed-by: David Hildenbrand (v3)
Reviewed-by: Christoph Hellwig (v6)
Signed-off-by: Vivek Kasireddy
---
include/linux/memfd.h | 5 ++
include/linux/mm.h| 3 +
mm/gup.c | 136 ++
mm/memfd.c| 35
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
.
Cc: Shuah Khan
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
---
.../selftests/drivers/dma-buf/udmabuf.c | 151 +-
1
ugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (8):
mm/gup: Introduce unpin_folio/unpin_folios helpers
mm/gup: Introduce check_and_migrate_movable_folios()
mm/gup: Introduce memfd_pin_folios() for pinning memfd folios
Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
mm/gup.c | 122 ---
1 file changed, 81 insertions(+), 41 deletions(-)
diff --git a/mm/gup.c b/mm/gup.c
index 9cf2adfa4ce5..00ee3b987307 100644
--- a/mm
1 - 100 of 274 matches
Mail list logo