aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König2017-11-02 12:54:59 -0500
committerChristian König2017-11-08 09:12:29 -0600
commit944f6665de36b6a6c36263f23b7b9d1730e544fa (patch)
tree3f60e3a8fc4afce13f52d5e798a3ed1f543f1cf8
parenta844925c8af45161145ab512efb8d5584c9d97f2 (diff)
downloadexternal-libdrm-944f6665de36b6a6c36263f23b7b9d1730e544fa.tar.gz
external-libdrm-944f6665de36b6a6c36263f23b7b9d1730e544fa.tar.xz
external-libdrm-944f6665de36b6a6c36263f23b7b9d1730e544fa.zip
amdgpu: fix 32bit VA manager max address
The range is exclusive not inclusive. Signed-off-by: Christian König <christian.koenig@amd.com>
-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 344e87ed..fa4ab0e7 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -271,7 +271,7 @@ int amdgpu_device_initialize(int fd,
271 } 271 }
272 272
273 start = dev->dev_info.virtual_address_offset; 273 start = dev->dev_info.virtual_address_offset;
274 max = MIN2(dev->dev_info.virtual_address_max, 0xffffffff); 274 max = MIN2(dev->dev_info.virtual_address_max, 0x100000000ULL);
275 amdgpu_vamgr_init(&dev->vamgr_32, start, max, 275 amdgpu_vamgr_init(&dev->vamgr_32, start, max,
276 dev->dev_info.virtual_address_alignment); 276 dev->dev_info.virtual_address_alignment);
277 277