summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2016-07-04 11:42:26 -0400
committerGerrit Code Review <gerritcr@atlswgit01.amd.com>2016-07-15 23:58:57 -0400
commitd020404b487086ea3ea9bbacef694126a887f538 (patch)
treed4cf8a38729643eaf6e2d4c9348c11e3d21c7d8e
parent54f16461083c729bed463642130787ad6e83764d (diff)
drm/amdgpu: Enable file-backed userptr mappings for KFD
This change was originally applied in aaad19ff but lost in the transition to kernel 4.4. Reapply it. Change-Id: I2320429935c5311c2817af166e0553fcaf73d6ec Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> (cherry picked from commit 7b12251a64797e5cdde048df56d66af0d5e405bc)
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
index c0aa3e141c03..3cb0860b9478 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
@@ -371,8 +371,7 @@ static int __alloc_memory_of_gpu(struct kgd_dev *kgd, uint64_t va,
alloc_domain, size);
if (userptr) {
- ret = amdgpu_ttm_tt_set_userptr(bo->tbo.ttm, user_addr,
- AMDGPU_GEM_USERPTR_ANONONLY);
+ ret = amdgpu_ttm_tt_set_userptr(bo->tbo.ttm, user_addr, 0);
if (ret) {
dev_err(adev->dev,
"(%d) failed to set userptr\n", ret);