diff options
author | Emily Deng <Emily.Deng@amd.com> | 2018-08-17 06:25:36 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 12:11:08 -0400 |
commit | 3890d11153e20ed48de2adca4261788f72b93f66 (patch) | |
tree | 077f2742f794b99e57a97bec71fd5be632fad554 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | 39b62541aac396d18108c160ddb956a22483046d (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index 21adb1b6e5cb..38856365580d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |||
@@ -22,9 +22,6 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include "amdgpu.h" | 24 | #include "amdgpu.h" |
25 | #define MAX_KIQ_REG_WAIT 5000 /* in usecs, 5ms */ | ||
26 | #define MAX_KIQ_REG_BAILOUT_INTERVAL 5 /* in msecs, 5ms */ | ||
27 | #define MAX_KIQ_REG_TRY 20 | ||
28 | 25 | ||
29 | uint64_t amdgpu_csa_vaddr(struct amdgpu_device *adev) | 26 | uint64_t amdgpu_csa_vaddr(struct amdgpu_device *adev) |
30 | { | 27 | { |