aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2018-09-14 10:54:33 +0000
committerAlex Deucher <[email protected]>2018-09-14 15:05:42 +0000
commit0957dc7097a3f462f6cedb45cf9b9785cc29e5bb (patch)
tree4a0637092e852cc62dc84fc88c9ac77c52fd41d6 /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
parentdrm/amdgpu: fix mask in GART location calculation (diff)
downloadkernel-0957dc7097a3f462f6cedb45cf9b9785cc29e5bb.tar.gz
kernel-0957dc7097a3f462f6cedb45cf9b9785cc29e5bb.zip
drm/amdgpu: revert "stop using gart_start as offset for the GTT domain"
Turned out the commit is incomplete and since we remove using the AGP mapping from the GTT manager it is also not necessary any more. This reverts commit 22d8bfafcc12dfa17b91d2e8ae4e1898e782003a. Signed-off-by: Christian König <[email protected]> Acked-by: Alex Deucher <[email protected]> Acked-by: James Zhu <[email protected]> Tested-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
index c2539f6821c0..da7b1b92d9cf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
@@ -143,8 +143,7 @@ static int amdgpu_gtt_mgr_alloc(struct ttm_mem_type_manager *man,
spin_unlock(&mgr->lock);
if (!r)
- mem->start = node->node.start +
- (adev->gmc.gart_start >> PAGE_SHIFT);
+ mem->start = node->node.start;
return r;
}