Skip to contentSkip to conversation

drm/i915: Don't bail out early on i915_handle_error

PATCH In review Mika Kuoppala 4 participants 4 messages Feb 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Don't bail out early on i915_handle_error

If we bail out from handling the error, we never wake up the waiters, resulting in a stuck processes.

This regression was introduced in:

commit b8d24a06568368076ebd5a858a011699a97bfa42

Author: Mika Kuoppala <[email protected]>
Date:   Wed Jan 28 17:03:14 2015 +0200

drm/i915: Remove nested work in gpu error handling

References: https://bugs.freedesktop.org/show_bug.cgi?id=88933

---
 drivers/gpu/drm/i915/i915_irq.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +0 -3
index 53c5f9e..4145d95 100644
@@ -2612,9 +2612,6 @@ void i915_handle_error(struct drm_device *dev, bool wedged,
 	va_list args;
 	char error_msg[80];
 
-	if (WARN_ON(mutex_is_locked(&dev_priv->dev->struct_mutex)))
-		return;
-
 	va_start(args, fmt);
 	vscnprintf(error_msg, sizeof(error_msg), fmt, args);
 	va_end(args);
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 5 lines · Mika Kuoppala

If we bail out from handling the error, we never wake up the waiters, resulting in a stuck processes.

This regression was introduced in:

Quoted 8 lines

commit b8d24a06568368076ebd5a858a011699a97bfa42

Author: Mika Kuoppala <[email protected]>
Date:   Wed Jan 28 17:03:14 2015 +0200

drm/i915: Remove nested work in gpu error handling

References: https://bugs.freedesktop.org/show_bug.cgi?id=88933

I was hoping you would also try to think of another way to detect the race you postulated... :)
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
maintainer
#2 lore raw
In reply to Mika Kuoppala
Quoted 5 lines · Mika Kuoppala

If we bail out from handling the error, we never wake up the waiters, resulting in a stuck processes.

This regression was introduced in:

Quoted 7 lines

commit b8d24a06568368076ebd5a858a011699a97bfa42

Author: Mika Kuoppala <[email protected]>
Date:   Wed Jan 28 17:03:14 2015 +0200

drm/i915: Remove nested work in gpu error handling

References: https://bugs.freedesktop.org/show_bug.cgi?id=88933

Mika, please check and follow up with these bugs as well, and dupe as necessary. All bisected to the same.

https://bugs.freedesktop.org/show_bug.cgi?id=88654
https://bugs.freedesktop.org/show_bug.cgi?id=88928
https://bugs.freedesktop.org/show_bug.cgi?id=88915
https://bugs.freedesktop.org/show_bug.cgi?id=88908

BR,
Jani.

Quoted 26 lines
---
 drivers/gpu/drm/i915/i915_irq.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +0 -3
index 53c5f9e..4145d95 100644
@@ -2612,9 +2612,6 @@ void i915_handle_error(struct drm_device *dev, bool wedged,
 	va_list args;
 	char error_msg[80];
 
-	if (WARN_ON(mutex_is_locked(&dev_priv->dev->struct_mutex)))
-		return;
-
 	va_start(args, fmt);
 	vscnprintf(error_msg, sizeof(error_msg), fmt, args);
 	va_end(args);
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Tested-by on v1 1/1
#3 lore raw
In reply to Mika Kuoppala

Task id: 5702 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV 283/283 283/283
ILK -1 319/319 318/319

SNB              +1-1              322/346              322/346
IVB              +1-1              382/384              382/384
BYT                                  296/296              296/296
HSW              +1                 425/428              426/428
BDW                 -1              319/333              318/333
-------------------------------------Detailed-------------------------------------
Platform  Test                                drm-intel-nightly          Series Applied
 ILK  igt_gem_unfence_active_buffers      DMESG_WARN(1, M37)PASS(3, M26)      DMESG_WARN(1, M37)
*SNB  igt_kms_flip_event_leak      NSPT(7, M35M22)      PASS(1, M35)
*SNB  igt_kms_flip_single-buffer-flip-vs-dpms-off-vs-modeset      PASS(2, M35)      NSPT(1, M35)
*IVB  igt_gem_pwrite_pread_snooped-copy-performance      PASS(3, M34)      DMESG_WARN(1, M34)
 IVB  igt_gem_pwrite_pread_snooped-pwrite-blt-cpu_mmap-performance      DMESG_WARN(11, M34M21)PASS(10, M4M34)      PASS(1, M34)
 HSW  igt_gem_pwrite_pread_snooped-pwrite-blt-cpu_mmap-performance      DMESG_WARN(3, M40)PASS(24, M40M20)      PASS(1, M40)
*BDW  igt_gem_fence_thrash_bo-write-verify-threaded-none      PASS(3, M30)      DMESG_WARN(1, M30)

Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx