| From: |
| Vivek Kasireddy <vivek.kasireddy-AT-intel.com> |
| To: |
| dri-devel-AT-lists.freedesktop.org, linux-mm-AT-kvack.org |
| Subject: |
| [PATCH v1 0/3] mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file pages |
| Date: |
| Tue, 03 Oct 2023 00:44:44 -0700 |
| Message-ID: |
| <20231003074447.3245729-1-vivek.kasireddy@intel.com> |
| Cc: |
| Vivek Kasireddy <vivek.kasireddy-AT-intel.com>, David Hildenbrand <david-AT-redhat.com>, Daniel Vetter <daniel.vetter-AT-ffwll.ch>, Mike Kravetz <mike.kravetz-AT-oracle.com>, Hugh Dickins <hughd-AT-google.com>, Peter Xu <peterx-AT-redhat.com>, Jason Gunthorpe <jgg-AT-nvidia.com>, Gerd Hoffmann <kraxel-AT-redhat.com>, Dongwon Kim <dongwon.kim-AT-intel.com>, Junxiao Chang <junxiao.chang-AT-intel.com> |
| Archive-link: |
| Article |
The first patch introduces pin_user_pages_fd() API and the second
patch shows how the udmabuf driver can use it to longterm-pin the
the pages. The last patch adds two new udmabuf selftests to verify
data coherency after page migration.
Cc: David Hildenbrand <david@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>
Cc: Junxiao Chang <junxiao.chang@intel.com>
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 tests to verify data after page
migration
drivers/dma-buf/udmabuf.c | 82 +++++++---
include/linux/mm.h | 2 +
mm/gup.c | 87 ++++++++++
.../selftests/drivers/dma-buf/udmabuf.c | 151 +++++++++++++++++-
4 files changed, 297 insertions(+), 25 deletions(-)
--
2.39.2