]> 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)
commit93d4fdcb651df9cc59b8000a45bdad00f455543b
tree52d28682b81fd6f2dc9f27af85b7294c4045ca23
parent1776244f4b0f5c6eac7bba3f3a4727c1499465b4
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