]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Update PDEs flush TLB if PTB/PDB moved
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 1 Jun 2022 23:02:45 +0000 (19:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:27:17 +0000 (16:27 -0400)
commit4d1e5f12b7a0d2ade73003d2522a23b4559c7e02
tree52d28682b81fd6f2dc9f27af85b7294c4045ca23
parent371017309a9f1725bfd3283afe61efa4ac34d30c
drm/amdgpu: Update PDEs flush TLB if PTB/PDB moved

Flush TLBs when existing PDEs are updated because a PTB or PDB moved,
but avoids unnecessary TLB flushes when new PDBs or PTBs are added to
the page table, which commonly happens when memory is mapped for the
first time.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c