aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2562-drm-amd-display-Remove-a-false-positive-error-messag.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2562-drm-amd-display-Remove-a-false-positive-error-messag.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2562-drm-amd-display-Remove-a-false-positive-error-messag.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2562-drm-amd-display-Remove-a-false-positive-error-messag.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2562-drm-amd-display-Remove-a-false-positive-error-messag.patch
new file mode 100644
index 00000000..2379d6a7
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2562-drm-amd-display-Remove-a-false-positive-error-messag.patch
@@ -0,0 +1,37 @@
+From b23aaeac915176f7d7d722e0cd8b809ecebb69ee Mon Sep 17 00:00:00 2001
+From: Jerry Zuo <Jerry.Zuo@amd.com>
+Date: Fri, 6 Oct 2017 15:08:07 -0400
+Subject: [PATCH 2562/4131] drm/amd/display: Remove a false-positive error
+ message
+
+To avoid confusion, need to suppress the error message when get
+-ERESTARTSYS error code. It is normal when getting interrupted
+by signals in the process of a wait for the buffer to become
+unreserved. Only propagate to user-mode for further action,
+no need to pop up error message.
+
+Signed-off-by: Jerry Zuo <Jerry.Zuo@amd.com>
+Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+index a1caae0..1f205cc 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -1780,7 +1780,9 @@ static int get_fb_info(const struct amdgpu_framebuffer *amdgpu_fb,
+ int r = amdgpu_bo_reserve(rbo, false);
+
+ if (unlikely(r)) {
+- DRM_ERROR("Unable to reserve buffer\n");
++ // Don't show error msg. when return -ERESTARTSYS
++ if (r != -ERESTARTSYS)
++ DRM_ERROR("Unable to reserve buffer: %d\n", r);
+ return r;
+ }
+
+--
+2.7.4
+