drm: Branch 'master'
[email protected] (Christian K??nig) Tue, 23 Jan 2018 10:17:48 +0000 (UTC)
| Newsgroups | gmane.comp.video.dri.patches |
|---|---|
| Message-ID | <[email protected]> |
amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 1cc17744b988106b4fe71ee9d3d17b651d6adb40 Author: Christian König <[email protected]> Date: Mon Jan 22 13:17:30 2018 +0100 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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c index a0d01727..f34e27a9 100644 --- a/amdgpu/amdgpu_device.c +++ b/amdgpu/amdgpu_device.c @@ -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); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot -- _______________________________________________ Dri-patches mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-patches