Skip to contentSkip to conversation

drm/amdgpu: change pte definitions to 64 bit

PATCH In review Alex Xie 3 participants 3 messages Feb 15, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Alex Xie

author
#0 lore raw

PATCH 1/1 drm/amdgpu: change pte definitions to 64 bit

Change-Id Iaeeb253cc5c028c93c536ee6ea08213c7fa8f299
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +1 -1
index 51fa12f..cc389af 100644
@@ -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)
 
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1487182140-24084-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 2 lines · Alex Xie
Change-Id Iaeeb253cc5c028c93c536ee6ea08213c7fa8f299
Quoted 20 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +1 -2
index 51fa12f..cc389af 100644
@@ -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)
 
--

2.7.4

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by
#3 lore raw
In reply to a message not in the archive

Am 15.02.2017 um 19:09 schrieb Alex Xie:

Quoted 2 lines
Change-Id Iaeeb253cc5c028c93c536ee6ea08213c7fa8f299

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

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +0 -0
index 51fa12f..cc389af 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h struct amdgpu_bo_list_entry; · line 69

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +1 -1
@@ -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)
 

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx