]> 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)
commiteddbd244f5d5193953eb102747e43734447c0f75
tree52d28682b81fd6f2dc9f27af85b7294c4045ca23
parenta55fbd54e6dd386f6beb4292a8539e6cbde30c0e
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