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>
main
Christian König 2017-11-02 18:54:59 +01:00
parent ad3152fa69
commit a8e436de5d
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ int amdgpu_device_initialize(int fd,
} }
start = dev->dev_info.virtual_address_offset; start = dev->dev_info.virtual_address_offset;
max = MIN2(dev->dev_info.virtual_address_max, 0xffffffff); max = MIN2(dev->dev_info.virtual_address_max, 0x100000000ULL);
amdgpu_vamgr_init(&dev->vamgr_32, start, max, amdgpu_vamgr_init(&dev->vamgr_32, start, max,
dev->dev_info.virtual_address_alignment); dev->dev_info.virtual_address_alignment);