diff options
author | Christian König <christian.koenig@amd.com> | 2017-02-13 08:22:58 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:52:59 -0400 |
commit | 35ba15f03de690b9d25dd46226b398ee0ad98d5d (patch) | |
tree | e5695f30f005201aca94918632786c7772c2383c /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | 9f8df7d71e382c9afa808a08c11a990e90ac7df4 (diff) |
drm/amdgpu: fix PTE defines
Those should be 64bit, even on a 32bit system.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index f90e1c8daf01..bcd4fb5aa8cb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -53,19 +53,19 @@ struct amdgpu_bo_list_entry; | |||
53 | /* LOG2 number of continuous pages for the fragment field */ | 53 | /* LOG2 number of continuous pages for the fragment field */ |
54 | #define AMDGPU_LOG2_PAGES_PER_FRAG 4 | 54 | #define AMDGPU_LOG2_PAGES_PER_FRAG 4 |
55 | 55 | ||
56 | #define AMDGPU_PTE_VALID (1 << 0) | 56 | #define AMDGPU_PTE_VALID (1ULL << 0) |
57 | #define AMDGPU_PTE_SYSTEM (1 << 1) | 57 | #define AMDGPU_PTE_SYSTEM (1ULL << 1) |
58 | #define AMDGPU_PTE_SNOOPED (1 << 2) | 58 | #define AMDGPU_PTE_SNOOPED (1ULL << 2) |
59 | 59 | ||
60 | /* VI only */ | 60 | /* VI only */ |
61 | #define AMDGPU_PTE_EXECUTABLE (1 << 4) | 61 | #define AMDGPU_PTE_EXECUTABLE (1ULL << 4) |
62 | 62 | ||
63 | #define AMDGPU_PTE_READABLE (1 << 5) | 63 | #define AMDGPU_PTE_READABLE (1ULL << 5) |
64 | #define AMDGPU_PTE_WRITEABLE (1 << 6) | 64 | #define AMDGPU_PTE_WRITEABLE (1ULL << 6) |
65 | 65 | ||
66 | #define AMDGPU_PTE_FRAG(x) ((x & 0x1f) << 7) | 66 | #define AMDGPU_PTE_FRAG(x) ((x & 0x1f) << 7) |
67 | 67 | ||
68 | #define AMDGPU_PTE_PRT (1UL << 63) | 68 | #define AMDGPU_PTE_PRT (1ULL << 63) |
69 | 69 | ||
70 | /* How to programm VM fault handling */ | 70 | /* How to programm VM fault handling */ |
71 | #define AMDGPU_VM_FAULT_STOP_NEVER 0 | 71 | #define AMDGPU_VM_FAULT_STOP_NEVER 0 |