drm/amdgpu: change pte definitions to 64 bit
authorAlex Xie <AlexBin.Xie@amd.com>
Wed, 15 Feb 2017 19:10:19 +0000 (14:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:00 +0000 (23:53 -0400)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h

index bcd4fb5aa8cbc7240e698b0a9942763cb2609178..1dc5c10644527052599c14f073f07bf2e62a1011 100644 (file)
@@ -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)