aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0009-drm-amdgpu-add-err-check-for-pin-userptr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0009-drm-amdgpu-add-err-check-for-pin-userptr.patch')
-rw-r--r--common/recipes-kernel/linux/files/0009-drm-amdgpu-add-err-check-for-pin-userptr.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/common/recipes-kernel/linux/files/0009-drm-amdgpu-add-err-check-for-pin-userptr.patch b/common/recipes-kernel/linux/files/0009-drm-amdgpu-add-err-check-for-pin-userptr.patch
deleted file mode 100644
index f7f77fc5..00000000
--- a/common/recipes-kernel/linux/files/0009-drm-amdgpu-add-err-check-for-pin-userptr.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From de1d487e1722791013ba3b384fc679a16d6070c5 Mon Sep 17 00:00:00 2001
-From: Chunming Zhou <David1.Zhou@amd.com>
-Date: Thu, 26 Nov 2015 16:33:58 +0800
-Subject: [PATCH 0009/1110] drm/amdgpu: add err check for pin userptr
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Missing error check if the operation failed.
-
-Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
-Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
-Signed-off-by: Kalyan Alle <kalyan.alle@@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 14 +++++++-------
- 1 file changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
-index 1cbb16e..e8fe0b7 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
-@@ -587,13 +587,13 @@ static int amdgpu_ttm_backend_bind(struct ttm_tt *ttm,
- uint32_t flags = amdgpu_ttm_tt_pte_flags(gtt->adev, ttm, bo_mem);
- int r;
-
-- if (gtt->userptr) {
-- r = amdgpu_ttm_tt_pin_userptr(ttm);
-- if (r) {
-- DRM_ERROR("failed to pin userptr\n");
-- return r;
-- }
-- }
-+ if (gtt->userptr) {
-+ r = amdgpu_ttm_tt_pin_userptr(ttm);
-+ if (r) {
-+ DRM_ERROR("failed to pin userptr\n");
-+ return r;
-+ }
-+ }
- gtt->offset = (unsigned long)(bo_mem->start << PAGE_SHIFT);
- if (!ttm->num_pages) {
- WARN(1, "nothing to bind %lu pages for mreg %p back %p!\n",
---
-2.7.4
-