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
parent
ad3152fa69
commit
a8e436de5d
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue