aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König2017-11-02 12:54:59 -0500
committerChristian König2018-01-09 10:15:02 -0600
commita8e436de5d444982e791470cfec505e6280c416a (patch)
tree153b9cfd77eff1e404b46fb9db258cc1a31a41d7 /amdgpu/amdgpu_device.c
parentad3152fa698b128c9bd266522b0b48594b131055 (diff)
downloadexternal-libdrm-a8e436de5d444982e791470cfec505e6280c416a.tar.gz
external-libdrm-a8e436de5d444982e791470cfec505e6280c416a.tar.xz
external-libdrm-a8e436de5d444982e791470cfec505e6280c416a.zip
amdgpu: fix 32bit VA manager max address
The range is exclusive not inclusive. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_device.c')
-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 eb4b2745..d7077184 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -265,7 +265,7 @@ int amdgpu_device_initialize(int fd,
265 } 265 }
266 266
267 start = dev->dev_info.virtual_address_offset; 267 start = dev->dev_info.virtual_address_offset;
268 max = MIN2(dev->dev_info.virtual_address_max, 0xffffffff); 268 max = MIN2(dev->dev_info.virtual_address_max, 0x100000000ULL);
269 amdgpu_vamgr_init(&dev->vamgr_32, start, max, 269 amdgpu_vamgr_init(&dev->vamgr_32, start, max,
270 dev->dev_info.virtual_address_alignment); 270 dev->dev_info.virtual_address_alignment);
271 271