drm/amdgpu: Limit vm max ctx number to 4096
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 24 Oct 2018 08:10:33 +0000 (16:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Dec 2018 20:21:13 +0000 (15:21 -0500)
commit08d1bdd4cc57e89d037205687a61d2b6ff9dddd4
treecf4d24d637428f5cb2be86b6b612c1b881f7f67e
parent31edd7c0a813d9dc778fcb5da1eb8202c140dc4d
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 <christian.koenig@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c