diff options
author | Ralph Campbell <rcampbell@nvidia.com> | 2022-07-25 11:36:15 -0700 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-29 18:07:18 -0700 |
commit | f6c3e1ae0114cd0f5123cf38187d450c1b119e67 (patch) | |
tree | 73c02549c0758ccb1cc3af1a286fe82e30754da5 /include/linux/mmzone.h | |
parent | 68deb82a7bfcf67c6491c2387215e038b525475f (diff) |
mm/hmm: add a test for cross device private faults
Add a simple test case for when hmm_range_fault() is called with the
HMM_PFN_REQ_FAULT flag and a device private PTE is found for a device
other than the hmm_range::dev_private_owner. This should cause the page
to be faulted back to system memory from the other device and the PFN
returned in the output array.
Also, remove a piece of code that unnecessarily unmaps part of the buffer.
Link: https://lkml.kernel.org/r/20220727000837.4128709-3-rcampbell@nvidia.com
Link: https://lkml.kernel.org/r/20220725183615.4118795-3-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Cc: Felix Kuehling <felix.kuehling@amd.com>
Cc: Philip Yang <Philip.Yang@amd.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
0 files changed, 0 insertions, 0 deletions