All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libdrm] amdgpu: fix high VA mask
@ 2018-01-22 12:18 Christian König
       [not found] ` <20180122121837.1266-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Christian König @ 2018-01-22 12:18 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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>
---
 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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH libdrm] amdgpu: fix high VA mask
       [not found] ` <20180122121837.1266-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
@ 2018-01-22 15:37   ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2018-01-22 15:37 UTC (permalink / raw)
  To: Christian König; +Cc: amd-gfx list

On Mon, Jan 22, 2018 at 7:18 AM, Christian König
<ckoenig.leichtzumerken@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@amd.com>

Reviewed-by: Alex Deucher <alexander.deucher@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@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-22 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-22 12:18 [PATCH libdrm] amdgpu: fix high VA mask Christian König
     [not found] ` <20180122121837.1266-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-01-22 15:37   ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.