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
Christian König 2018-01-22 13:17:30 +01:00
parent 3509e7cd2b
commit 1cc17744b9
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ int amdgpu_device_initialize(int fd,
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,
dev->dev_info.virtual_address_alignment);