OSDN Git Service

drm/amdgpu: Flush TLB after mapping for VG20+XGMI
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 1 Apr 2022 19:30:12 +0000 (15:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Apr 2022 14:29:47 +0000 (10:29 -0400)
commit0f12a22f375400a3fc42b86a0f8c23da530fb0fc
tree0877788955c2d8801fa3bcf6fdf1157793785a5a
parent34452ac3038a7dea7e5407c0f06f762412e679f3
drm/amdgpu: Flush TLB after mapping for VG20+XGMI

For VG20 + XGMI bridge, all mappings PTEs cache in TC, this may have
stall invalid PTEs in TC because one cache line has 8 pages. Need always
flush_tlb after updating mapping.

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