projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef105f
)
drm/amdgpu: add PTE defines for MTYPE
author
Alex Deucher
<
[email protected]
>
Fri, 3 Mar 2017 20:23:14 +0000
(15:23 -0500)
committer
Alex Deucher
<
[email protected]
>
Thu, 30 Mar 2017 03:54:37 +0000
(23:54 -0400)
New on SOC-15 asics.
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index cbef85bef29610dc625e6fa9ca08c8efede18661..5c7435227995789204021852819686573c36f9d4 100644
(file)
--- 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