summaryrefslogtreecommitdiff
path: root/amdgpu
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-11-09 10:35:24 +0100
committerChristian König <christian.koenig@amd.com>2017-11-09 10:35:44 +0100
commit0c2481edf7a2ce674beaf9ea61a6b19dea2f210b (patch)
tree3f60e3a8fc4afce13f52d5e798a3ed1f543f1cf8 /amdgpu
parent6c0ea4b0c5452bfc1e67b74ce723696ef3c80b25 (diff)
downloadlibdrm-0c2481edf7a2ce674beaf9ea61a6b19dea2f210b.tar.gz
libdrm-0c2481edf7a2ce674beaf9ea61a6b19dea2f210b.tar.bz2
libdrm-0c2481edf7a2ce674beaf9ea61a6b19dea2f210b.zip
Revert "amdgpu: use the high VA range if possible"
This reverts commit 6c0ea4b0c5452bfc1e67b74ce723696ef3c80b25. Accidentially pushed an incomplete patch. Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/amdgpu_device.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index e04424d3..fa4ab0e7 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -275,13 +275,8 @@ int amdgpu_device_initialize(int fd,
amdgpu_vamgr_init(&dev->vamgr_32, start, max,
dev->dev_info.virtual_address_alignment);
- if (dev->dev_info.high_va_offset && dev->dev_info.high_va_max) {
- start = dev->dev_info.high_va_offset;
- max = dev->dev_info.high_va_max;
- } else {
- start = MAX2(dev->dev_info.virtual_address_offset, 0x100000000ULL);
- max = MAX2(dev->dev_info.virtual_address_max, 0x100000000ULL);
- }
+ start = MAX2(dev->dev_info.virtual_address_offset, 0x100000000ULL);
+ max = MAX2(dev->dev_info.virtual_address_max, 0x100000000ULL);
amdgpu_vamgr_init(&dev->vamgr, start, max,
dev->dev_info.virtual_address_alignment);