]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit977092c9f9a6d4bd741096817c03d82cbc68f8f5
tree635eef7b60a45bc1aed22e4c2a6240ebc707c18f
parent43d73d13aab5c8e134ee4e7f4568965c37623b57
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