[PATCH libdrm] amdgpu: fix high VA mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 22, 2018 at 7:18 AM, Christian König
<ckoenig.leichtzumerken at gmail.com> wrote:
> That constant needs to be 64bits.
>
> Fixes: amdgpu: use the high VA range if possible v2
>
> Signed-off-by: Christian König <christian.koenig at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  amdgpu/amdgpu_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
>
> --
> 2.14.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux