aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorEmily Deng <Emily.Deng@amd.com>2018-08-17 06:25:36 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 12:11:08 -0400
commit3890d11153e20ed48de2adca4261788f72b93f66 (patch)
tree077f2742f794b99e57a97bec71fd5be632fad554 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent39b62541aac396d18108c160ddb956a22483046d (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.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 6265b88135fc..19ef7711d944 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -212,6 +212,10 @@ enum amdgpu_kiq_irq {
212 AMDGPU_CP_KIQ_IRQ_LAST 212 AMDGPU_CP_KIQ_IRQ_LAST
213}; 213};
214 214
215#define MAX_KIQ_REG_WAIT 5000 /* in usecs, 5ms */
216#define MAX_KIQ_REG_BAILOUT_INTERVAL 5 /* in msecs, 5ms */
217#define MAX_KIQ_REG_TRY 20
218
215int amdgpu_device_ip_set_clockgating_state(void *dev, 219int amdgpu_device_ip_set_clockgating_state(void *dev,
216 enum amd_ip_block_type block_type, 220 enum amd_ip_block_type block_type,
217 enum amd_clockgating_state state); 221 enum amd_clockgating_state state);