aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0894-drm-amdgpu-fix-amdgpu_bo_pin_restricted-VRAM-placing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0894-drm-amdgpu-fix-amdgpu_bo_pin_restricted-VRAM-placing.patch')
-rw-r--r--common/recipes-kernel/linux/files/0894-drm-amdgpu-fix-amdgpu_bo_pin_restricted-VRAM-placing.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/common/recipes-kernel/linux/files/0894-drm-amdgpu-fix-amdgpu_bo_pin_restricted-VRAM-placing.patch b/common/recipes-kernel/linux/files/0894-drm-amdgpu-fix-amdgpu_bo_pin_restricted-VRAM-placing.patch
deleted file mode 100644
index c6d217df..00000000
--- a/common/recipes-kernel/linux/files/0894-drm-amdgpu-fix-amdgpu_bo_pin_restricted-VRAM-placing.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From d6b20616f15c2208117e2691608bd5149e515524 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
-Date: Tue, 19 Jan 2016 12:48:14 +0100
-Subject: [PATCH 0894/1565] drm/amdgpu: fix amdgpu_bo_pin_restricted VRAM
- placing v2
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-We could pin BOs into invisible VRAM otherwise.
-
-v2: make logic more readable as suggested by Michel
-
-Cc: stable@vger.kernel.org
-Signed-off-by: Christian König <christian.koenig@amd.com>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
-Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> (v1)
-Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-index c3ce103..a2a16ac 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-@@ -399,7 +399,8 @@ int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain,
- }
- if (fpfn > bo->placements[i].fpfn)
- bo->placements[i].fpfn = fpfn;
-- if (lpfn && lpfn < bo->placements[i].lpfn)
-+ if (!bo->placements[i].lpfn ||
-+ (lpfn && lpfn < bo->placements[i].lpfn))
- bo->placements[i].lpfn = lpfn;
- bo->placements[i].flags |= TTM_PL_FLAG_NO_EVICT;
- }
---
-1.9.1
-