From: Alex Deucher Date: Fri, 3 Mar 2017 20:23:14 +0000 (-0500) Subject: drm/amdgpu: add PTE defines for MTYPE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca02061c7a8ca3956e9e1cd60947b97d444e1622;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: add PTE defines for MTYPE New on SOC-15 asics. Signed-off-by: Alex Deucher --- 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