aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
authorChristian König2018-01-22 06:17:30 -0600
committerChristian König2018-01-23 04:17:43 -0600
commit1cc17744b988106b4fe71ee9d3d17b651d6adb40 (patch)
treecc0647f8758f3f7821a0668a18385b596839396c /amdgpu
parent3509e7cd2b9098193b9f8c97ecd68fae929eb131 (diff)
downloadexternal-libdrm-1cc17744b988106b4fe71ee9d3d17b651d6adb40.tar.gz
external-libdrm-1cc17744b988106b4fe71ee9d3d17b651d6adb40.tar.xz
external-libdrm-1cc17744b988106b4fe71ee9d3d17b651d6adb40.zip
amdgpu: fix high VA mask
That constant needs to be 64bits. Fixes: amdgpu: use the high VA range if possible v2 Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index a0d01727..f34e27a9 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -272,7 +272,7 @@ int amdgpu_device_initialize(int fd,
272 max = dev->dev_info.virtual_address_max; 272 max = dev->dev_info.virtual_address_max;
273 } 273 }
274 274
275 max = MIN2(max, (start & ~0xffffffff) + 0x100000000ULL); 275 max = MIN2(max, (start & ~0xffffffffULL) + 0x100000000ULL);
276 amdgpu_vamgr_init(&dev->vamgr_32, start, max, 276 amdgpu_vamgr_init(&dev->vamgr_32, start, max,
277 dev->dev_info.virtual_address_alignment); 277 dev->dev_info.virtual_address_alignment);
278 278