drm/nouveau/vmm/gp100-: fix mapping 2MB sysmem pages
authorRalph Campbell <rcampbell@nvidia.com>
Tue, 30 Jun 2020 19:57:35 +0000 (12:57 -0700)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:50:50 +0000 (18:50 +1000)
commit7763d24f3ba0e5e30daf047cfa6e6bcfd9d7de75
tree635eef7b60a45bc1aed22e4c2a6240ebc707c18f
parente5c7864f6297c2f6256369bff2f2ef9f1d5edd5e
drm/nouveau/vmm/gp100-: fix mapping 2MB sysmem pages

The nvif_object_ioctl() method NVIF_VMM_V0_PFNMAP wasn't correctly
setting the hardware specific GPU page table entries for 2MB sized
pages. Fix this by adding functions to set and clear PD0 GPU page
table entries.

Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c