[PATCH] drm/i915/dsb: Fix for EINTR error during pinning the gem object

Animesh Manna animesh.manna at intel.com
Fri Nov 19 08:15:49 UTC 2021


Signed-off-by: Animesh Manna <animesh.manna at intel.com>
---
 drivers/gpu/drm/i915/display/intel_dsb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dsb.c b/drivers/gpu/drm/i915/display/intel_dsb.c
index 83a69a4a4fea..fa436f31d065 100644
--- a/drivers/gpu/drm/i915/display/intel_dsb.c
+++ b/drivers/gpu/drm/i915/display/intel_dsb.c
@@ -287,8 +287,8 @@ void intel_dsb_prepare(struct intel_crtc_state *crtc_state)
 	}
 
 	vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0, 0);
-	if (IS_ERR(vma)) {
-		drm_err(&i915->drm, "Vma creation failed\n");
+	if (IS_ERR(vma) && (signed long)(void *)vma != -EINTR) {
+		drm_err(&i915->drm, "Vma creation failed, err_no = %ld\n", (unsigned long)(void *)vma);
 		i915_gem_object_put(obj);
 		kfree(dsb);
 		goto out;
-- 
2.29.0



More information about the Intel-gfx-trybot mailing list