[PATCH] drm/amdgpu: change pte definitions to 64 bit

Christian König deathsimple at vodafone.de
Wed Feb 15 18:14:15 UTC 2017


Am 15.02.2017 um 19:09 schrieb Alex Xie:
> Change-Id: Iaeeb253cc5c028c93c536ee6ea08213c7fa8f299
> Signed-off-by: Alex Xie <AlexBin.Xie at amd.com>

Ah, good catch. I've missed that one.

Reviewed-by: Christian König <christian.koenig at amd.com>.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
> index 51fa12f..cc389af 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
> @@ -63,7 +63,7 @@ struct amdgpu_bo_list_entry;
>   #define AMDGPU_PTE_READABLE	(1ULL << 5)
>   #define AMDGPU_PTE_WRITEABLE	(1ULL << 6)
>   
> -#define AMDGPU_PTE_FRAG(x)	((x & 0x1f) << 7)
> +#define AMDGPU_PTE_FRAG(x)	((x & 0x1fULL) << 7)
>   
>   #define AMDGPU_PTE_PRT		(1ULL << 63)
>   




More information about the amd-gfx mailing list