aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
diff options
context:
space:
mode:
authorChunming Zhou <[email protected]>2017-03-23 09:38:34 +0000
committerAlex Deucher <[email protected]>2017-03-30 03:55:30 +0000
commit4fb1cf3acee526cb352c42c9f3e66db06b7eef60 (patch)
treecc5605f40badd217e0e0544be1c1ede5545b7340 /drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
parentdrm/amdgpu: adapt vm size for multi vmpt (diff)
downloadkernel-4fb1cf3acee526cb352c42c9f3e66db06b7eef60.tar.gz
kernel-4fb1cf3acee526cb352c42c9f3e66db06b7eef60.zip
drm/amdgpu: set page table depth by num_level
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
index 7c2075a2c243..128024aba39e 100644
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
@@ -216,7 +216,7 @@ int mmhub_v1_0_gart_enable(struct amdgpu_device *adev)
tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL,
ENABLE_CONTEXT, 1);
tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL,
- PAGE_TABLE_DEPTH, 1);
+ PAGE_TABLE_DEPTH, adev->vm_manager.num_level);
tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL,
RANGE_PROTECTION_FAULT_ENABLE_DEFAULT, 1);
tmp = REG_SET_FIELD(tmp, VM_CONTEXT1_CNTL,