summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-11-06 15:25:37 +0100
committerAlex Deucher <alexander.deucher@amd.com>2017-11-13 14:36:40 -0500
commitff4cd38943199348a53f980709e16f0bc5c0b8c9 (patch)
tree4467c628a2d4e78e59d65af1206befc2b4e86bd9 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
parent822770ad49d8f5490f444e345bbd59ecfdd86a15 (diff)
downloadop-kernel-dev-ff4cd38943199348a53f980709e16f0bc5c0b8c9.zip
op-kernel-dev-ff4cd38943199348a53f980709e16f0bc5c0b8c9.tar.gz
drm/amdgpu: make AMDGPU_VA_RESERVED_SIZE 64bit
Even when it's a small handle it as 64bit value as well. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index aa91425..bae7735 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -94,7 +94,8 @@ struct amdgpu_bo_list_entry;
#define AMDGPU_MMHUB 1
/* hardcode that limit for now */
-#define AMDGPU_VA_RESERVED_SIZE (8 << 20)
+#define AMDGPU_VA_RESERVED_SIZE (8ULL << 20)
+
/* max vmids dedicated for process */
#define AMDGPU_VM_MAX_RESERVED_VMID 1
OpenPOWER on IntegriCloud