diff options
author | Prike Liang <Prike.Liang@amd.com> | 2018-11-16 14:05:34 +0800 |
---|---|---|
committer | Prike Liang <Prike.Liang@amd.com> | 2018-11-16 17:15:58 +0800 |
commit | 8f607aaa0a17e7dabf4a0dc6af575d10d4f22d2b (patch) | |
tree | 33cdb2a81ac9e0dcda87346bbf73c663e0fd812b | |
parent | c3250630ef61eb414edb8329d1ae157d2e17eb64 (diff) |
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 <Prike.Liang@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |