aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0875-drm-amd-dal-fix-incorrect-cursor-error-msg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0875-drm-amd-dal-fix-incorrect-cursor-error-msg.patch')
-rw-r--r--common/recipes-kernel/linux/files/0875-drm-amd-dal-fix-incorrect-cursor-error-msg.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0875-drm-amd-dal-fix-incorrect-cursor-error-msg.patch b/common/recipes-kernel/linux/files/0875-drm-amd-dal-fix-incorrect-cursor-error-msg.patch
new file mode 100644
index 00000000..8d69661f
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0875-drm-amd-dal-fix-incorrect-cursor-error-msg.patch
@@ -0,0 +1,48 @@
+From 9f03b1d92573af44b42a836345da9d782629fd7b Mon Sep 17 00:00:00 2001
+From: Mykola Lysenko <Mykola.Lysenko@amd.com>
+Date: Thu, 3 Dec 2015 11:40:23 +0800
+Subject: [PATCH 0875/1050] drm/amd/dal: fix incorrect cursor error msg
+
+Change-Id: Idd8ae3e1f109c3126f555503239aa7a589569ae1
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 19 +++++++++++++++----
+ 1 file changed, 15 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+index 2e5f5ba..2abf1e9 100644
+--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
++++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+@@ -115,13 +115,24 @@ static int dm_crtc_unpin_cursor_bo_old(
+ ret = amdgpu_bo_reserve(robj, false);
+
+ if (likely(ret == 0)) {
+- amdgpu_bo_unpin(robj);
++ ret = amdgpu_bo_unpin(robj);
++
++ if (unlikely(ret != 0)) {
++ DRM_ERROR(
++ "%s: unpin failed (ret=%d), bo %p\n",
++ __func__,
++ ret,
++ amdgpu_crtc->cursor_bo);
++ }
++
+ amdgpu_bo_unreserve(robj);
+- }
+- } else {
+- DRM_ERROR("dm_crtc_unpin_cursor_ob_old bo %x, leaked %p\n",
++ } else {
++ DRM_ERROR(
++ "%s: reserve failed (ret=%d), bo %p\n",
++ __func__,
+ ret,
+ amdgpu_crtc->cursor_bo);
++ }
+ }
+
+ drm_gem_object_unreference_unlocked(amdgpu_crtc->cursor_bo);
+--
+1.9.1
+