aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorRex Zhu <[email protected]>2018-10-24 08:10:33 +0000
committerAlex Deucher <[email protected]>2018-12-10 20:21:13 +0000
commit08d1bdd4cc57e89d037205687a61d2b6ff9dddd4 (patch)
treecf4d24d637428f5cb2be86b6b612c1b881f7f67e /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu: bypass RLC init under sriov for Tonga (v2) (diff)
downloadkernel-08d1bdd4cc57e89d037205687a61d2b6ff9dddd4.tar.gz
kernel-08d1bdd4cc57e89d037205687a61d2b6ff9dddd4.zip
drm/amdgpu: Limit vm max ctx number to 4096
driver need to reserve resource for each ctx for some hw features. so add this limitation. Reviewed-by: Christian König <[email protected]> Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 5752024aa572..88db3c263e5f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -164,6 +164,7 @@ extern int amdgpu_si_support;
extern int amdgpu_cik_support;
#endif
+#define AMDGPU_VM_MAX_NUM_CTX 4096
#define AMDGPU_SG_THRESHOLD (256*1024*1024)
#define AMDGPU_DEFAULT_GTT_SIZE_MB 3072ULL /* 3GB by default */
#define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000