drm/amdgpu: use kiq to do invalidate tlb
authorEmily Deng <Emily.Deng@amd.com>
Fri, 17 Aug 2018 10:25:36 +0000 (18:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:08 +0000 (11:11 -0500)
commit3890d11153e20ed48de2adca4261788f72b93f66
tree077f2742f794b99e57a97bec71fd5be632fad554
parent39b62541aac396d18108c160ddb956a22483046d
drm/amdgpu: use kiq to do invalidate tlb

To avoid the tlb flush not interrupted by world switch, use kiq and one
command to do tlb invalidate.

v2:
Refine the invalidate lock position.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-and-Tested-by: Rex Zhu <Rex.Zhu@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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c