blob: bba9aa3edba1e05cdf458d758cf76b8399dc87ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From 8159b7e887b2ff40a279ac89ba7a6e04b6f7054e Mon Sep 17 00:00:00 2001
From: Kalyan Alle <kalyan.alle@amd.com>
Date: Tue, 24 Jul 2018 17:41:27 +0530
Subject: [PATCH 4095/4131] drm/amd/amdgpu: workaround to resolve the mgpu
not functional issue.
Revert ttm_sg_tt_init and roll back to ttm_dma_tt_init
Signed-off-by: Kalyan Alle <kalyan.alle@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 11ac7f2..71a5c67 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1047,11 +1047,7 @@ static struct ttm_tt *amdgpu_ttm_tt_create(struct ttm_buffer_object *bo,
return NULL;
}
gtt->ttm.ttm.func = &amdgpu_backend_func;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) || !defined(BUILD_AS_DKMS)
- if (ttm_sg_tt_init(>t->ttm, bo, page_flags)) {
-#else
if (ttm_dma_tt_init(>t->ttm, bo, page_flags)) {
-#endif
kfree(gtt);
return NULL;
}
--
2.7.4
|