amdgpu: fix high VA mask
That constant needs to be 64bits. Fixes: amdgpu: use the high VA range if possible v2 Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>main
parent
3509e7cd2b
commit
1cc17744b9
|
@ -272,7 +272,7 @@ int amdgpu_device_initialize(int fd,
|
||||||
max = dev->dev_info.virtual_address_max;
|
max = dev->dev_info.virtual_address_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
max = MIN2(max, (start & ~0xffffffff) + 0x100000000ULL);
|
max = MIN2(max, (start & ~0xffffffffULL) + 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