summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-03-03 15:23:14 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:54:37 -0400
commitca02061c7a8ca3956e9e1cd60947b97d444e1622 (patch)
tree3c33eaee0c92727b7ce89dcde8588ce1606dd814
parentcef105f7dc0ad2b9bcaab77f05d520ac7d556ab3 (diff)
downloadlinux-ca02061c7a8ca3956e9e1cd60947b97d444e1622.tar.bz2
drm/amdgpu: add PTE defines for MTYPE
New on SOC-15 asics. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index cbef85bef296..5c7435227995 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -67,6 +67,10 @@ struct amdgpu_bo_list_entry;
#define AMDGPU_PTE_PRT (1ULL << 63)
+/* VEGA10 only */
+#define AMDGPU_PTE_MTYPE(a) ((uint64_t)a << 57)
+#define AMDGPU_PTE_MTYPE_MASK AMDGPU_PTE_MTYPE(3ULL)
+
/* How to programm VM fault handling */
#define AMDGPU_VM_FAULT_STOP_NEVER 0
#define AMDGPU_VM_FAULT_STOP_FIRST 1