OSDN Git Service

drm/amdgpu: reduce reserved VA size
authorChristian König <christian.koenig@amd.com>
Mon, 22 Jan 2018 10:17:18 +0000 (11:17 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:29 +0000 (14:18 -0500)
1MB should be more than enough, currently we use about 8K.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h

index 21a80f1..fabf44b 100644 (file)
@@ -99,7 +99,7 @@ struct amdgpu_bo_list_entry;
 #define AMDGPU_MMHUB                           1
 
 /* hardcode that limit for now */
-#define AMDGPU_VA_RESERVED_SIZE                        (8ULL << 20)
+#define AMDGPU_VA_RESERVED_SIZE                        (1ULL << 20)
 
 /* VA hole for 48bit addresses on Vega10 */
 #define AMDGPU_VA_HOLE_START                   0x0000800000000000ULL