u.
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 pointer while inv
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
g 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 +
dri
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 +++
drivers/gpu
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
-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/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
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 prime buffers from
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
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.c | 8
and
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/drivers/
)
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
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 100644
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
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/udmabuf.c
dor
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: Introduce check_and_migrate_mo
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
dling
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/drivers/dma-b
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
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 100644
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.c | 8
and
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/drivers/
dling
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/drivers/dma-b
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
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/udmabuf.c
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
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
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: Use vmf_insert_pfn a
g 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: Vivek
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 +
driver
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
-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/drivers/dma
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 deletions
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
and
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
=on 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
---
drivers/dma
ph 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_movable_folios()
mm/gup: I
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
=on 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
---
drivers/dma
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
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/udmabuf.c
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
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 changed, 5
.
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
er 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
udmabuf: Use vmf_ins
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
(resource_flush) is in progress.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 56 +-
1 file changed, 55 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio/virtgpu_plane.c
zes and also the bar number as part of this request.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
include/uapi/linux/udmabuf.h | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/include/uapi/linux/udmabuf.h b/include/uapi/linux/udmabuf.h
index 46b6532ed855.
ers.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 122 +++---
1 file changed, 114 insertions(+), 8 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 274defd3fa3e..7355451ed337 100644
--- a/driv
by sending detach_backing cmd.
Cc: Gerd Hoffmann
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_prime.c | 54 +-
1 file changed, 53 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c
b/drivers/gpu/drm/virtio
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
o
Cc: Rob Clark
Cc: Thomas Hellström
Cc: Oded Gabbay
Cc: Michal Wajdeczko
Cc: Michael Tretter
Vivek Kasireddy (7):
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 initializ
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 | 6
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
Signed-off-by: Vivek Kasireddy
---
drivers/gpu/drm/virtio/virtgpu_prime.c | 69
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
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/udmabuf.c
.
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
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 changed, 5
e API pass in file * instead of fd (Jason)
Cc: David Hildenbrand
Cc: Matthew Wilcox (Oracle)
Cc: Christoph Hellwig
Cc: Andrew Morton
Cc: Daniel Vetter
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek
Cc: Christoph Hellwig
Cc: Jason Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
mm/gup.c | 129 +++
1 file changed, 92 insertions(+), 37 deletions(-)
diff --git a/mm/gup.c b/mm/gup.c
index
=on 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
---
drivers/dma
: 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 | 81 --
2 files changed, 74 insertions(+), 9
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| 34
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 changed, 5
=on 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
---
drivers/dma
.
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
Cc: Christoph Hellwig
Cc: Jason Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
mm/gup.c | 129 +++
1 file changed, 92 insertions(+), 37 deletions(-)
diff --git a/mm/gup.c b/mm/gup.c
index
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
ad of fd (Jason)
Cc: David Hildenbrand
Cc: Matthew Wilcox (Oracle)
Cc: Christoph Hellwig
Cc: Daniel Vetter
Cc: Mike Kravetz
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_fol
: 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 | 81 --
2 files changed, 74 insertions(+), 9
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/udmabuf.c
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| 34
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 140 ++
1 file changed, 83 insertions(+), 57 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 274defd3fa3e..a8f3af61f7f2 100644
--- a/drivers/dma-buf/udmabuf.c
Cc: Christoph Hellwig
Cc: Jason Gunthorpe
Cc: Peter Xu
Suggested-by: David Hildenbrand
Signed-off-by: Vivek Kasireddy
---
mm/gup.c | 129 +++
1 file changed, 92 insertions(+), 37 deletions(-)
diff --git a/mm/gup.c b/mm/gup.c
index
: 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 | 81 --
2 files changed, 74 insertions(+), 9
: 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
son Gunthorpe
Reviewed-by: Jason 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 +
lio() instead of unpin_user_page() to unpin folio
Cc: David Hildenbrand
Cc: Matthew 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/udmabu
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 changed, 5
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (8):
udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap
udmabuf: Add back support for mapping hugetlb pages (v6)
mm/gup: Introduce unpin_folio/unpin_folios helpers
mm/gup
context and
into common code
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
---
drivers/dma-buf/udmabuf.c | 122
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 140 ++
1 file changed, 83 insertions(+), 57 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 274defd3fa3e..a8f3af61f7f2 100644
--- a/drivers/dma-buf/udmabuf.c
: 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
and
Cc: Matthew 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 | 153 +++---
1 file changed,
ter
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Suggested-by: Jason Gunthorpe
Reviewed-by: Jason Gunthorpe (v2)
Reviewed-by: David Hildenbrand (v3)
Reviewed-by: Christoph Hellwig (v6)
Signed-off-by: Vivek Kasireddy
---
include/linux/
context and
into common code
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
---
drivers/dma-buf/udmabuf.c | 122
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 changed, 5
Cc: David Hildenbrand
Cc: Matthew Wilcox (Oracle)
Cc: Christoph Hellwig
Cc: Daniel Vetter
Cc: Mike Kravetz
Cc: Hugh Dickins
Cc: Peter Xu
Cc: Jason Gunthorpe
Cc: Gerd Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (6):
udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling
Signed-off-by: Vivek Kasireddy
---
drivers/dma-buf/udmabuf.c | 140 ++
1 file changed, 83 insertions(+), 57 deletions(-)
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 274defd3fa3e..a8f3af61f7f2 100644
--- a/drivers/dma-buf/udmabuf.c
Hellwig (v6)
Signed-off-by: Vivek Kasireddy
---
include/linux/memfd.h | 5 ++
include/linux/mm.h| 3 +
mm/gup.c | 149 ++
mm/memfd.c| 34 ++
4 files changed, 191 insertions(+)
diff --git a/include/linux/memfd.h b/
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 | 124 +++---
1 file changed, 49 insertions(+), 75 deletions(-)
diff --git a/drivers/dma-buf/udmabu
: 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
context and
into common code
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
---
drivers/dma-buf/udmabuf.c | 122
Hoffmann
Cc: Dongwon Kim
Cc: Junxiao Chang
Vivek Kasireddy (6):
udmabuf: Use vmf_insert_pfn and VM_PFNMAP for handling mmap
udmabuf: Add back support for mapping hugetlb pages (v6)
mm/gup: Introduce memfd_pin_folios() for pinning memfd folios (v8)
udmabuf: Convert udmabuf driver to use
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 changed, 5
1 - 100 of 225 matches
Mail list logo