aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3537-drm-amdgpu-remove-extra-TT-unpopulated-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3537-drm-amdgpu-remove-extra-TT-unpopulated-check.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3537-drm-amdgpu-remove-extra-TT-unpopulated-check.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3537-drm-amdgpu-remove-extra-TT-unpopulated-check.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3537-drm-amdgpu-remove-extra-TT-unpopulated-check.patch
new file mode 100644
index 00000000..2106f93a
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3537-drm-amdgpu-remove-extra-TT-unpopulated-check.patch
@@ -0,0 +1,36 @@
+From 958190707f12449aabe2d5ae3ad9914d21cb7c2b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Thu, 1 Feb 2018 14:40:35 +0100
+Subject: [PATCH 3537/4131] drm/amdgpu: remove extra TT unpopulated check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The subsystem should check that, not the driver.
+
+Change-Id: I69f9e2239a2a041e106c033377d902be04efcd53
+
+Reviewed-by: Roger He <Hongbo.He@amd.com>
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+index 5aea098..8412f6d 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+@@ -1070,9 +1070,6 @@ static int amdgpu_ttm_tt_populate(struct ttm_tt *ttm)
+ struct amdgpu_ttm_tt *gtt = (void *)ttm;
+ bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG);
+
+- if (ttm->state != tt_unpopulated)
+- return 0;
+-
+ if (gtt && gtt->userptr) {
+ ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
+ if (!ttm->sg)
+--
+2.7.4
+