From 8f607aaa0a17e7dabf4a0dc6af575d10d4f22d2b Mon Sep 17 00:00:00 2001 From: Prike Liang Date: Fri, 16 Nov 2018 14:05:34 +0800 Subject: Revert "drm/amdgpu: add amdgpu_gmc_get_pde_for_bo helper v2" This reverts commit d278082be7312ae62cd54cb1a984027171726ab5. For the jira SWDEV-167318 Change-Id: I4a18fd3a159dacba793a57dc0f5fd2c45cefbb9b Signed-off-by: Prike Liang --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 0a4828310a20..d66728f1afa5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1523,6 +1523,9 @@ uint64_t amdgpu_ttm_tt_pde_flags(struct ttm_tt *ttm, struct ttm_mem_reg *mem) flags |= AMDGPU_PTE_SNOOPED; } + if (mem && mem->mem_type == AMDGPU_PL_DGMA_IMPORT) + flags |= AMDGPU_PTE_SYSTEM; + return flags; } -- cgit v1.2.3