aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-11-06 09:37:01 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-06 12:48:05 -0500
commitbb7939b2030ab55acd203c86160c37db22f5796a (patch)
tree862995ae5c903f912e675d5e89b0ba774cde34c9 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
parent6af046d26f34278eacd6ecddb37170624f6d4251 (diff)
drm/amdgpu: fix VA hole handling on Vega10 v3
Similar to the CPU address space the VA on Vega10 has a hole in it. v2: use dev_dbg instead of dev_err v3: add some more comments to explain how the hw works Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> CC: stable@vger.kernel.org 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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index e8f8896d18db..c80d45dd2bd3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -96,6 +96,19 @@ struct amdgpu_bo_list_entry;
96/* hardcode that limit for now */ 96/* hardcode that limit for now */
97#define AMDGPU_VA_RESERVED_SIZE (8ULL << 20) 97#define AMDGPU_VA_RESERVED_SIZE (8ULL << 20)
98 98
99/* VA hole for 48bit addresses on Vega10 */
100#define AMDGPU_VA_HOLE_START 0x0000800000000000ULL
101#define AMDGPU_VA_HOLE_END 0xffff800000000000ULL
102
103/*
104 * Hardware is programmed as if the hole doesn't exists with start and end
105 * address values.
106 *
107 * This mask is used to remove the upper 16bits of the VA and so come up with
108 * the linear addr value.
109 */
110#define AMDGPU_VA_HOLE_MASK 0x0000ffffffffffffULL
111
99/* max vmids dedicated for process */ 112/* max vmids dedicated for process */
100#define AMDGPU_VM_MAX_RESERVED_VMID 1 113#define AMDGPU_VM_MAX_RESERVED_VMID 1
101 114