aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--amdgpu/amdgpu_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index 9ff6ad16..fb2cfb57 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -323,9 +323,9 @@ int amdgpu_query_sw_info(amdgpu_device_handle dev, enum amdgpu_sw_info info,
323 switch (info) { 323 switch (info) {
324 case amdgpu_sw_info_address32_hi: 324 case amdgpu_sw_info_address32_hi:
325 if (dev->vamgr_high_32.va_max) 325 if (dev->vamgr_high_32.va_max)
326 *val32 = dev->vamgr_high_32.va_max >> 32; 326 *val32 = (dev->vamgr_high_32.va_max - 1) >> 32;
327 else 327 else
328 *val32 = dev->vamgr_32.va_max >> 32; 328 *val32 = (dev->vamgr_32.va_max - 1) >> 32;
329 return 0; 329 return 0;
330 } 330 }
331 return -EINVAL; 331 return -EINVAL;