summaryrefslogtreecommitdiff
path: root/lib/test_hmm.c
diff options
context:
space:
mode:
authorRalph Campbell <rcampbell@nvidia.com>2020-07-23 15:29:59 -0700
committerJason Gunthorpe <jgg@nvidia.com>2020-07-28 15:48:42 -0300
commit1a77decd0caed0bc5b6f5e474981d574076f0841 (patch)
tree2c2c9cecf6faea2b21bbe38ce10be0e7574182bb /lib/test_hmm.c
parentb223555dc4ed6efc321d23e78e55197cf0080ef3 (diff)
nouveau: fix storing invalid ptes
When migrating a range of system memory to device private memory, some of the pages in the address range may not be migrating. In this case, the non migrating pages won't have a new GPU MMU entry to store but the nvif_object_ioctl() NVIF_VMM_V0_PFNMAP method doesn't check the input and stores a bad valid GPU page table entry. Fix this by skipping the invalid input PTEs when updating the GPU page tables. Link: https://lore.kernel.org/r/20200723223004.9586-2-rcampbell@nvidia.com Signed-off-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'lib/test_hmm.c')
0 files changed, 0 insertions, 0 deletions