All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/i915: Cancel the modeset retry work during modeset cleanup
@ 2017-10-26 21:52 Manasi Navare
  2017-10-26 22:18 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Manasi Navare @ 2017-10-26 21:52 UTC (permalink / raw)
  To: intel-gfx; +Cc: Tony Cheng, Daniel Vetter, Harry Wentland

During modeset cleanup on driver unload we may have a pending
hotplug work. This needs to be canceled early during the teardown
so that it does not fire after we have freed the connector.
We do this after drm_kms_helper_poll_fini(dev) since this might
trigger modeset retry work due to link retrain and before
intel_fbdev_fini() since this work requires the lock from fbdev.

If this is not done we may see something like:
DEBUG_LOCKS_WARN_ON(mutex_is_locked(lock))
 ------------[ cut here ]------------
 WARNING: CPU: 4 PID: 5010 at kernel/locking/mutex-debug.c:103 mutex_destroy+0x4e/0x60
 Modules linked in: i915(-) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm vgem ax88179_178
+a usbnet mii x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid
+[last unloaded: snd_hda_intel]
 CPU: 4 PID: 5010 Comm: drv_module_relo Tainted: G     U          4.14.0-rc3-CI-CI_DRM_3186+ #1
 Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
 task: ffff8803c827aa40 task.stack: ffffc90000520000
 RIP: 0010:mutex_destroy+0x4e/0x60
 RSP: 0018:ffffc90000523d58 EFLAGS: 00010292
 RAX: 000000000000002a RBX: ffff88044fbef648 RCX: 0000000000000000
 RDX: 0000000080000001 RSI: 0000000000000001 RDI: ffffffff810f0cf0
 RBP: ffffc90000523d60 R08: 0000000000000001 R09: 0000000000000001
 R10: 000000000f21cb81 R11: 0000000000000000 R12: ffff88044f71efc8
 R13: ffffffffa02b3d20 R14: ffffffffa02b3d90 R15: ffff880459b29308
 FS:  00007f5df4d6e8c0(0000) GS:ffff88045d300000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 000055ec51f00a18 CR3: 0000000451782006 CR4: 00000000003606e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  drm_fb_helper_fini+0xd9/0x130
  intel_fbdev_destroy+0x12/0x60 [i915]
  intel_fbdev_fini+0x28/0x30 [i915]
  intel_modeset_cleanup+0x45/0xa0 [i915]
  i915_driver_unload+0x92/0x180 [i915]
  i915_pci_remove+0x19/0x30 [i915]
  i915_driver_unload+0x92/0x180 [i915]
  i915_pci_remove+0x19/0x30 [i915]
  pci_device_remove+0x39/0xb0
  device_release_driver_internal+0x15d/0x220
  driver_detach+0x40/0x80
  bus_remove_driver+0x58/0xd0
  driver_unregister+0x2c/0x40
  pci_unregister_driver+0x36/0xb0
  i915_exit+0x1a/0x8b [i915]
  SyS_delete_module+0x18c/0x1e0
  entry_SYSCALL_64_fastpath+0x1c/0xb1
 RIP: 0033:0x7f5df3286287
 RSP: 002b:00007fff8e107cc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000b0
 RAX: ffffffffffffffda RBX: ffffffff81493a03 RCX: 00007f5df3286287
 RDX: 0000000000000001 RSI: 0000000000000800 RDI: 0000564c7be02e48
 RBP: ffffc90000523f88 R08: 0000000000000000 R09: 0000000000000080
 R10: 00007f5df4d6e8c0 R11: 0000000000000246 R12: 0000000000000000
 R13: 00007fff8e107eb0 R14: 0000000000000000 R15: 0000000000000000
Or a GPF like:

 general protection fault: 0000 [#1] PREEMPT SMP
 Modules linked in: i915(-) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm vgem ax88179_178
+a usbnet mii x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid
+[last unloaded: snd_hda_intel]
 CPU: 0 PID: 82 Comm: kworker/0:1 Tainted: G     U  W       4.14.0-rc3-CI-CI_DRM_3186+ #1
 Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
 Workqueue: events intel_dp_modeset_retry_work_fn [i915]
 task: ffff88045a5caa40 task.stack: ffffc90000378000
 RIP: 0010:drm_setup_crtcs+0x143/0xbf0
 RSP: 0018:ffffc9000037bd20 EFLAGS: 00010202
 RAX: 6b6b6b6b6b6b6b6b RBX: 0000000000000002 RCX: 0000000000000001
 RDX: 0000000000000001 RSI: 0000000000000780 RDI: 00000000ffffffff
 RBP: ffffc9000037bdb8 R08: 0000000000000001 R09: 0000000000000001
 R10: 0000000000000780 R11: 0000000000000000 R12: 0000000000000002
 R13: ffff88044fbef4e8 R14: 0000000000000780 R15: 0000000000000438
 FS:  0000000000000000(0000) GS:ffff88045d200000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 000055ec51ee5168 CR3: 000000044c89d003 CR4: 00000000003606f0
 Call Trace:
  drm_fb_helper_hotplug_event.part.18+0x7e/0xc0
  drm_fb_helper_hotplug_event+0x1a/0x20
  intel_fbdev_output_poll_changed+0x1a/0x20 [i915]
  drm_kms_helper_hotplug_event+0x27/0x30
  intel_dp_modeset_retry_work_fn+0x77/0x80 [i915]
  process_one_work+0x233/0x660
  worker_thread+0x206/0x3b0
  kthread+0x152/0x190
  ? process_one_work+0x660/0x660
  ? kthread_create_on_node+0x40/0x40
  ret_from_fork+0x27/0x40
 Code: 06 00 00 45 8b 45 20 31 db 45 31 e4 45 85 c0 0f 8e 91 06 00 00 44 8b 75 94 44 8b 7d 90 49 8b 45 28 49 63 d4 44 89 f6 41 83 c4 01 <48> 8b 04 d0 44
+89 fa 48 8b 38 48 8b 87 a8 01 00 00 ff 50 20 01
 RIP: drm_setup_crtcs+0x143/0xbf0 RSP: ffffc9000037bd20
 ---[ end trace 08901ff1a77d30c7 ]---

v2:
* Rename it to intel_hpd_poll_fini() and call drm_kms_helper_fini() inside it
as the first step before cancel work (Chris Wilson)
* Add GPF trace in commit message and make the function static (Maarten Lankhorst)

Suggested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 9301397a63b3 ("drm/i915: Implement Link Rate fallback on Link training failure")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tony Cheng <tony.cheng@amd.com>
Cc: Harry Wentland <Harry.wentland@amd.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 0e493a1..1ffe7a4 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -15200,6 +15200,23 @@ void intel_connector_unregister(struct drm_connector *connector)
 	intel_panel_destroy_backlight(connector);
 }
 
+static void intel_hpd_poll_fini(struct drm_device *dev)
+{
+	struct intel_connector *connector;
+	struct drm_connector_list_iter conn_iter;
+
+	/* Disable Polling */
+	drm_kms_helper_poll_fini(dev);
+
+	/* kill the modeset retry work after killing the polling */
+	drm_connector_list_iter_begin(dev, &conn_iter);
+	for_each_intel_connector_iter(connector, &conn_iter) {
+		if (connector->modeset_retry_work.func)
+			cancel_work_sync(&connector->modeset_retry_work);
+	}
+	drm_connector_list_iter_end(&conn_iter);
+}
+
 void intel_modeset_cleanup(struct drm_device *dev)
 {
 	struct drm_i915_private *dev_priv = to_i915(dev);
@@ -15219,8 +15236,10 @@ void intel_modeset_cleanup(struct drm_device *dev)
 	/*
 	 * Due to the hpd irq storm handling the hotplug work can re-arm the
 	 * poll handlers. Hence disable polling after hpd handling is shut down.
+	 * Poll work can trigger the modeset retry work so Kill it
+	 * after disabling the polling.
 	 */
-	drm_kms_helper_poll_fini(dev);
+	intel_hpd_poll_fini(dev);
 
 	/* poll work can call into fbdev, hence clean that up afterwards */
 	intel_fbdev_fini(dev_priv);
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] drm/i915: Cancel the modeset retry work during modeset cleanup
  2017-10-26 21:52 [PATCH v2] drm/i915: Cancel the modeset retry work during modeset cleanup Manasi Navare
@ 2017-10-26 22:18 ` Chris Wilson
  2017-10-27  6:10   ` Maarten Lankhorst
  2017-10-26 22:18 ` ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2) Patchwork
  2017-10-26 23:23 ` ✓ Fi.CI.IGT: " Patchwork
  2 siblings, 1 reply; 8+ messages in thread
From: Chris Wilson @ 2017-10-26 22:18 UTC (permalink / raw)
  To: Manasi Navare, intel-gfx; +Cc: Tony Cheng, Daniel Vetter, Harry Wentland

Quoting Manasi Navare (2017-10-26 22:52:00)
> During modeset cleanup on driver unload we may have a pending
> hotplug work. This needs to be canceled early during the teardown
> so that it does not fire after we have freed the connector.
> We do this after drm_kms_helper_poll_fini(dev) since this might
> trigger modeset retry work due to link retrain and before
> intel_fbdev_fini() since this work requires the lock from fbdev.
> 
> If this is not done we may see something like:
> DEBUG_LOCKS_WARN_ON(mutex_is_locked(lock))
>  ------------[ cut here ]------------
>  WARNING: CPU: 4 PID: 5010 at kernel/locking/mutex-debug.c:103 mutex_destroy+0x4e/0x60
>  Modules linked in: i915(-) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm vgem ax88179_178
> +a usbnet mii x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid
> +[last unloaded: snd_hda_intel]
>  CPU: 4 PID: 5010 Comm: drv_module_relo Tainted: G     U          4.14.0-rc3-CI-CI_DRM_3186+ #1
>  Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
>  task: ffff8803c827aa40 task.stack: ffffc90000520000
>  RIP: 0010:mutex_destroy+0x4e/0x60
>  RSP: 0018:ffffc90000523d58 EFLAGS: 00010292
>  RAX: 000000000000002a RBX: ffff88044fbef648 RCX: 0000000000000000
>  RDX: 0000000080000001 RSI: 0000000000000001 RDI: ffffffff810f0cf0
>  RBP: ffffc90000523d60 R08: 0000000000000001 R09: 0000000000000001
>  R10: 000000000f21cb81 R11: 0000000000000000 R12: ffff88044f71efc8
>  R13: ffffffffa02b3d20 R14: ffffffffa02b3d90 R15: ffff880459b29308
>  FS:  00007f5df4d6e8c0(0000) GS:ffff88045d300000(0000) knlGS:0000000000000000
>  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>  CR2: 000055ec51f00a18 CR3: 0000000451782006 CR4: 00000000003606e0
>  DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
>  DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
>  Call Trace:
>   drm_fb_helper_fini+0xd9/0x130
>   intel_fbdev_destroy+0x12/0x60 [i915]
>   intel_fbdev_fini+0x28/0x30 [i915]
>   intel_modeset_cleanup+0x45/0xa0 [i915]
>   i915_driver_unload+0x92/0x180 [i915]
>   i915_pci_remove+0x19/0x30 [i915]
>   i915_driver_unload+0x92/0x180 [i915]
>   i915_pci_remove+0x19/0x30 [i915]
>   pci_device_remove+0x39/0xb0
>   device_release_driver_internal+0x15d/0x220
>   driver_detach+0x40/0x80
>   bus_remove_driver+0x58/0xd0
>   driver_unregister+0x2c/0x40
>   pci_unregister_driver+0x36/0xb0
>   i915_exit+0x1a/0x8b [i915]
>   SyS_delete_module+0x18c/0x1e0
>   entry_SYSCALL_64_fastpath+0x1c/0xb1
>  RIP: 0033:0x7f5df3286287
>  RSP: 002b:00007fff8e107cc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000b0
>  RAX: ffffffffffffffda RBX: ffffffff81493a03 RCX: 00007f5df3286287
>  RDX: 0000000000000001 RSI: 0000000000000800 RDI: 0000564c7be02e48
>  RBP: ffffc90000523f88 R08: 0000000000000000 R09: 0000000000000080
>  R10: 00007f5df4d6e8c0 R11: 0000000000000246 R12: 0000000000000000
>  R13: 00007fff8e107eb0 R14: 0000000000000000 R15: 0000000000000000
> Or a GPF like:
> 
>  general protection fault: 0000 [#1] PREEMPT SMP
>  Modules linked in: i915(-) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm vgem ax88179_178
> +a usbnet mii x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid
> +[last unloaded: snd_hda_intel]
>  CPU: 0 PID: 82 Comm: kworker/0:1 Tainted: G     U  W       4.14.0-rc3-CI-CI_DRM_3186+ #1
>  Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
>  Workqueue: events intel_dp_modeset_retry_work_fn [i915]
>  task: ffff88045a5caa40 task.stack: ffffc90000378000
>  RIP: 0010:drm_setup_crtcs+0x143/0xbf0
>  RSP: 0018:ffffc9000037bd20 EFLAGS: 00010202
>  RAX: 6b6b6b6b6b6b6b6b RBX: 0000000000000002 RCX: 0000000000000001
>  RDX: 0000000000000001 RSI: 0000000000000780 RDI: 00000000ffffffff
>  RBP: ffffc9000037bdb8 R08: 0000000000000001 R09: 0000000000000001
>  R10: 0000000000000780 R11: 0000000000000000 R12: 0000000000000002
>  R13: ffff88044fbef4e8 R14: 0000000000000780 R15: 0000000000000438
>  FS:  0000000000000000(0000) GS:ffff88045d200000(0000) knlGS:0000000000000000
>  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>  CR2: 000055ec51ee5168 CR3: 000000044c89d003 CR4: 00000000003606f0
>  Call Trace:
>   drm_fb_helper_hotplug_event.part.18+0x7e/0xc0
>   drm_fb_helper_hotplug_event+0x1a/0x20
>   intel_fbdev_output_poll_changed+0x1a/0x20 [i915]
>   drm_kms_helper_hotplug_event+0x27/0x30
>   intel_dp_modeset_retry_work_fn+0x77/0x80 [i915]
>   process_one_work+0x233/0x660
>   worker_thread+0x206/0x3b0
>   kthread+0x152/0x190
>   ? process_one_work+0x660/0x660
>   ? kthread_create_on_node+0x40/0x40
>   ret_from_fork+0x27/0x40
>  Code: 06 00 00 45 8b 45 20 31 db 45 31 e4 45 85 c0 0f 8e 91 06 00 00 44 8b 75 94 44 8b 7d 90 49 8b 45 28 49 63 d4 44 89 f6 41 83 c4 01 <48> 8b 04 d0 44
> +89 fa 48 8b 38 48 8b 87 a8 01 00 00 ff 50 20 01
>  RIP: drm_setup_crtcs+0x143/0xbf0 RSP: ffffc9000037bd20
>  ---[ end trace 08901ff1a77d30c7 ]---
> 
> v2:
> * Rename it to intel_hpd_poll_fini() and call drm_kms_helper_fini() inside it
> as the first step before cancel work (Chris Wilson)
> * Add GPF trace in commit message and make the function static (Maarten Lankhorst)
> 
> Suggested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
> Fixes: 9301397a63b3 ("drm/i915: Implement Link Rate fallback on Link training failure")
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Tony Cheng <tony.cheng@amd.com>
> Cc: Harry Wentland <Harry.wentland@amd.com>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
> Cc: Manasi Navare <manasi.d.navare@intel.com>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_display.c | 21 ++++++++++++++++++++-
>  1 file changed, 20 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 0e493a1..1ffe7a4 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -15200,6 +15200,23 @@ void intel_connector_unregister(struct drm_connector *connector)
>         intel_panel_destroy_backlight(connector);
>  }
>  
> +static void intel_hpd_poll_fini(struct drm_device *dev)
> +{
> +       struct intel_connector *connector;
> +       struct drm_connector_list_iter conn_iter;
> +
> +       /* Disable Polling */
> +       drm_kms_helper_poll_fini(dev);
> +
> +       /* kill the modeset retry work after killing the polling */
> +       drm_connector_list_iter_begin(dev, &conn_iter);
> +       for_each_intel_connector_iter(connector, &conn_iter) {
> +               if (connector->modeset_retry_work.func)
> +                       cancel_work_sync(&connector->modeset_retry_work);
> +       }
> +       drm_connector_list_iter_end(&conn_iter);
> +}

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
  2017-10-26 21:52 [PATCH v2] drm/i915: Cancel the modeset retry work during modeset cleanup Manasi Navare
  2017-10-26 22:18 ` Chris Wilson
@ 2017-10-26 22:18 ` Patchwork
  2017-10-26 22:21   ` Chris Wilson
  2017-10-26 23:23 ` ✓ Fi.CI.IGT: " Patchwork
  2 siblings, 1 reply; 8+ messages in thread
From: Patchwork @ 2017-10-26 22:18 UTC (permalink / raw)
  To: Manasi Navare; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
URL   : https://patchwork.freedesktop.org/series/32668/
State : success

== Summary ==

Series 32668v2 drm/i915: Cancel the modeset retry work during modeset cleanup
https://patchwork.freedesktop.org/api/1.0/series/32668/revisions/2/mbox/

Test kms_frontbuffer_tracking:
        Subgroup basic:
                fail       -> PASS       (fi-glk-dsi) fdo#103167
Test kms_pipe_crc_basic:
        Subgroup read-crc-pipe-a-frame-sequence:
                none       -> INCOMPLETE (fi-cnl-y)

fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167

fi-bdw-5557u     total:289  pass:268  dwarn:0   dfail:0   fail:0   skip:21  time:442s
fi-bdw-gvtdvm    total:289  pass:265  dwarn:0   dfail:0   fail:0   skip:24  time:448s
fi-blb-e6850     total:289  pass:223  dwarn:1   dfail:0   fail:0   skip:65  time:375s
fi-bsw-n3050     total:289  pass:243  dwarn:0   dfail:0   fail:0   skip:46  time:527s
fi-bwr-2160      total:289  pass:183  dwarn:0   dfail:0   fail:0   skip:106 time:263s
fi-bxt-dsi       total:289  pass:259  dwarn:0   dfail:0   fail:0   skip:30  time:494s
fi-bxt-j4205     total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:494s
fi-byt-j1900     total:289  pass:253  dwarn:1   dfail:0   fail:0   skip:35  time:491s
fi-byt-n2820     total:289  pass:249  dwarn:1   dfail:0   fail:0   skip:39  time:470s
fi-cfl-s         total:289  pass:253  dwarn:4   dfail:0   fail:0   skip:32  time:553s
fi-cnl-y         total:289  pass:215  dwarn:0   dfail:0   fail:0   skip:24 
fi-elk-e7500     total:289  pass:229  dwarn:0   dfail:0   fail:0   skip:60  time:416s
fi-gdg-551       total:289  pass:178  dwarn:1   dfail:0   fail:1   skip:109 time:249s
fi-glk-1         total:289  pass:261  dwarn:0   dfail:0   fail:0   skip:28  time:581s
fi-glk-dsi       total:289  pass:259  dwarn:0   dfail:0   fail:0   skip:30  time:492s
fi-hsw-4770      total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:432s
fi-hsw-4770r     total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:429s
fi-ilk-650       total:289  pass:228  dwarn:0   dfail:0   fail:0   skip:61  time:430s
fi-ivb-3520m     total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:480s
fi-ivb-3770      total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:454s
fi-kbl-7500u     total:289  pass:264  dwarn:1   dfail:0   fail:0   skip:24  time:494s
fi-kbl-7560u     total:289  pass:270  dwarn:0   dfail:0   fail:0   skip:19  time:578s
fi-kbl-7567u     total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:487s
fi-kbl-r         total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:581s
fi-pnv-d510      total:289  pass:222  dwarn:1   dfail:0   fail:0   skip:66  time:549s
fi-skl-6260u     total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:458s
fi-skl-6600u     total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:587s
fi-skl-6700hq    total:289  pass:263  dwarn:0   dfail:0   fail:0   skip:26  time:643s
fi-skl-6700k     total:289  pass:265  dwarn:0   dfail:0   fail:0   skip:24  time:520s
fi-skl-gvtdvm    total:289  pass:266  dwarn:0   dfail:0   fail:0   skip:23  time:460s
fi-snb-2520m     total:289  pass:250  dwarn:0   dfail:0   fail:0   skip:39  time:556s
fi-snb-2600      total:289  pass:249  dwarn:0   dfail:0   fail:0   skip:40  time:418s
fi-skl-6770hq failed to connect after reboot

faa3689f622af5d0e2d6bf106c84ab1d5ec49959 drm-tip: 2017y-10m-26d-18h-35m-28s UTC integration manifest
1c72c34cb999 drm/i915: Cancel the modeset retry work during modeset cleanup

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_6218/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
  2017-10-26 22:18 ` ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2) Patchwork
@ 2017-10-26 22:21   ` Chris Wilson
  2017-10-26 22:26     ` Chris Wilson
  2017-10-26 22:32     ` Manasi Navare
  0 siblings, 2 replies; 8+ messages in thread
From: Chris Wilson @ 2017-10-26 22:21 UTC (permalink / raw)
  To: Patchwork, Manasi Navare; +Cc: intel-gfx

Quoting Patchwork (2017-10-26 23:18:32)
> == Series Details ==
> 
> Series: drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
> URL   : https://patchwork.freedesktop.org/series/32668/
> State : success
> 
> == Summary ==
> 
> Series 32668v2 drm/i915: Cancel the modeset retry work during modeset cleanup
> https://patchwork.freedesktop.org/api/1.0/series/32668/revisions/2/mbox/
> 
> Test kms_frontbuffer_tracking:
>         Subgroup basic:
>                 fail       -> PASS       (fi-glk-dsi) fdo#103167
> Test kms_pipe_crc_basic:
>         Subgroup read-crc-pipe-a-frame-sequence:
>                 none       -> INCOMPLETE (fi-cnl-y)

I was just thinking we'd been proven wrong, but that's just
<2>[  465.653791] watchdog: watchdog0: watchdog did not stop!
instead.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
  2017-10-26 22:21   ` Chris Wilson
@ 2017-10-26 22:26     ` Chris Wilson
  2017-10-26 22:32     ` Manasi Navare
  1 sibling, 0 replies; 8+ messages in thread
From: Chris Wilson @ 2017-10-26 22:26 UTC (permalink / raw)
  To: Patchwork, Manasi Navare; +Cc: intel-gfx

Quoting Chris Wilson (2017-10-26 23:21:40)
> Quoting Patchwork (2017-10-26 23:18:32)
> > == Series Details ==
> > 
> > Series: drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
> > URL   : https://patchwork.freedesktop.org/series/32668/
> > State : success
> > 
> > == Summary ==
> > 
> > Series 32668v2 drm/i915: Cancel the modeset retry work during modeset cleanup
> > https://patchwork.freedesktop.org/api/1.0/series/32668/revisions/2/mbox/
> > 
> > Test kms_frontbuffer_tracking:
> >         Subgroup basic:
> >                 fail       -> PASS       (fi-glk-dsi) fdo#103167
> > Test kms_pipe_crc_basic:
> >         Subgroup read-crc-pipe-a-frame-sequence:
> >                 none       -> INCOMPLETE (fi-cnl-y)
> 
> I was just thinking we'd been proven wrong, but that's just
> <2>[  465.653791] watchdog: watchdog0: watchdog did not stop!
> instead.

Full CI is not going to exercise that any more (since this is inside
module unload), so pushed.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
  2017-10-26 22:21   ` Chris Wilson
  2017-10-26 22:26     ` Chris Wilson
@ 2017-10-26 22:32     ` Manasi Navare
  1 sibling, 0 replies; 8+ messages in thread
From: Manasi Navare @ 2017-10-26 22:32 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

On Thu, Oct 26, 2017 at 11:21:40PM +0100, Chris Wilson wrote:
> Quoting Patchwork (2017-10-26 23:18:32)
> > == Series Details ==
> > 
> > Series: drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
> > URL   : https://patchwork.freedesktop.org/series/32668/
> > State : success
> > 
> > == Summary ==
> > 
> > Series 32668v2 drm/i915: Cancel the modeset retry work during modeset cleanup
> > https://patchwork.freedesktop.org/api/1.0/series/32668/revisions/2/mbox/
> > 
> > Test kms_frontbuffer_tracking:
> >         Subgroup basic:
> >                 fail       -> PASS       (fi-glk-dsi) fdo#103167
> > Test kms_pipe_crc_basic:
> >         Subgroup read-crc-pipe-a-frame-sequence:
> >                 none       -> INCOMPLETE (fi-cnl-y)
> 
> I was just thinking we'd been proven wrong, but that's just
> <2>[  465.653791] watchdog: watchdog0: watchdog did not stop!
> instead.
> -Chris

So we are good w.r.t this patch right?

Manasi
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* ✓ Fi.CI.IGT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
  2017-10-26 21:52 [PATCH v2] drm/i915: Cancel the modeset retry work during modeset cleanup Manasi Navare
  2017-10-26 22:18 ` Chris Wilson
  2017-10-26 22:18 ` ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2) Patchwork
@ 2017-10-26 23:23 ` Patchwork
  2 siblings, 0 replies; 8+ messages in thread
From: Patchwork @ 2017-10-26 23:23 UTC (permalink / raw)
  To: Manasi Navare; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Cancel the modeset retry work during modeset cleanup (rev2)
URL   : https://patchwork.freedesktop.org/series/32668/
State : success

== Summary ==

Test kms_cursor_legacy:
        Subgroup flip-vs-cursor-legacy:
                pass       -> FAIL       (shard-hsw) fdo#102670
Test kms_busy:
        Subgroup extended-modeset-hang-newfb-with-reset-render-C:
                pass       -> DMESG-WARN (shard-hsw) fdo#102249 +2
Test kms_setmode:
        Subgroup basic:
                fail       -> PASS       (shard-hsw) fdo#99912
Test kms_flip:
        Subgroup modeset-vs-vblank-race:
                dmesg-warn -> PASS       (shard-hsw) fdo#103060
Test perf:
        Subgroup blocking:
                pass       -> FAIL       (shard-hsw) fdo#102252

fdo#102670 https://bugs.freedesktop.org/show_bug.cgi?id=102670
fdo#102249 https://bugs.freedesktop.org/show_bug.cgi?id=102249
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252

shard-hsw        total:2539 pass:1430 dwarn:2   dfail:0   fail:10  skip:1097 time:9213s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_6218/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] drm/i915: Cancel the modeset retry work during modeset cleanup
  2017-10-26 22:18 ` Chris Wilson
@ 2017-10-27  6:10   ` Maarten Lankhorst
  0 siblings, 0 replies; 8+ messages in thread
From: Maarten Lankhorst @ 2017-10-27  6:10 UTC (permalink / raw)
  To: Chris Wilson, Manasi Navare, intel-gfx
  Cc: Harry Wentland, Tony Cheng, Daniel Vetter

Op 27-10-17 om 00:18 schreef Chris Wilson:
> Quoting Manasi Navare (2017-10-26 22:52:00)
>> During modeset cleanup on driver unload we may have a pending
>> hotplug work. This needs to be canceled early during the teardown
>> so that it does not fire after we have freed the connector.
>> We do this after drm_kms_helper_poll_fini(dev) since this might
>> trigger modeset retry work due to link retrain and before
>> intel_fbdev_fini() since this work requires the lock from fbdev.
>>
>> If this is not done we may see something like:
>> DEBUG_LOCKS_WARN_ON(mutex_is_locked(lock))
>>  ------------[ cut here ]------------
>>  WARNING: CPU: 4 PID: 5010 at kernel/locking/mutex-debug.c:103 mutex_destroy+0x4e/0x60
>>  Modules linked in: i915(-) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm vgem ax88179_178
>> +a usbnet mii x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid
>> +[last unloaded: snd_hda_intel]
>>  CPU: 4 PID: 5010 Comm: drv_module_relo Tainted: G     U          4.14.0-rc3-CI-CI_DRM_3186+ #1
>>  Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
>>  task: ffff8803c827aa40 task.stack: ffffc90000520000
>>  RIP: 0010:mutex_destroy+0x4e/0x60
>>  RSP: 0018:ffffc90000523d58 EFLAGS: 00010292
>>  RAX: 000000000000002a RBX: ffff88044fbef648 RCX: 0000000000000000
>>  RDX: 0000000080000001 RSI: 0000000000000001 RDI: ffffffff810f0cf0
>>  RBP: ffffc90000523d60 R08: 0000000000000001 R09: 0000000000000001
>>  R10: 000000000f21cb81 R11: 0000000000000000 R12: ffff88044f71efc8
>>  R13: ffffffffa02b3d20 R14: ffffffffa02b3d90 R15: ffff880459b29308
>>  FS:  00007f5df4d6e8c0(0000) GS:ffff88045d300000(0000) knlGS:0000000000000000
>>  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>>  CR2: 000055ec51f00a18 CR3: 0000000451782006 CR4: 00000000003606e0
>>  DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
>>  DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
>>  Call Trace:
>>   drm_fb_helper_fini+0xd9/0x130
>>   intel_fbdev_destroy+0x12/0x60 [i915]
>>   intel_fbdev_fini+0x28/0x30 [i915]
>>   intel_modeset_cleanup+0x45/0xa0 [i915]
>>   i915_driver_unload+0x92/0x180 [i915]
>>   i915_pci_remove+0x19/0x30 [i915]
>>   i915_driver_unload+0x92/0x180 [i915]
>>   i915_pci_remove+0x19/0x30 [i915]
>>   pci_device_remove+0x39/0xb0
>>   device_release_driver_internal+0x15d/0x220
>>   driver_detach+0x40/0x80
>>   bus_remove_driver+0x58/0xd0
>>   driver_unregister+0x2c/0x40
>>   pci_unregister_driver+0x36/0xb0
>>   i915_exit+0x1a/0x8b [i915]
>>   SyS_delete_module+0x18c/0x1e0
>>   entry_SYSCALL_64_fastpath+0x1c/0xb1
>>  RIP: 0033:0x7f5df3286287
>>  RSP: 002b:00007fff8e107cc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000b0
>>  RAX: ffffffffffffffda RBX: ffffffff81493a03 RCX: 00007f5df3286287
>>  RDX: 0000000000000001 RSI: 0000000000000800 RDI: 0000564c7be02e48
>>  RBP: ffffc90000523f88 R08: 0000000000000000 R09: 0000000000000080
>>  R10: 00007f5df4d6e8c0 R11: 0000000000000246 R12: 0000000000000000
>>  R13: 00007fff8e107eb0 R14: 0000000000000000 R15: 0000000000000000
>> Or a GPF like:
>>
>>  general protection fault: 0000 [#1] PREEMPT SMP
>>  Modules linked in: i915(-) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm vgem ax88179_178
>> +a usbnet mii x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid
>> +[last unloaded: snd_hda_intel]
>>  CPU: 0 PID: 82 Comm: kworker/0:1 Tainted: G     U  W       4.14.0-rc3-CI-CI_DRM_3186+ #1
>>  Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
>>  Workqueue: events intel_dp_modeset_retry_work_fn [i915]
>>  task: ffff88045a5caa40 task.stack: ffffc90000378000
>>  RIP: 0010:drm_setup_crtcs+0x143/0xbf0
>>  RSP: 0018:ffffc9000037bd20 EFLAGS: 00010202
>>  RAX: 6b6b6b6b6b6b6b6b RBX: 0000000000000002 RCX: 0000000000000001
>>  RDX: 0000000000000001 RSI: 0000000000000780 RDI: 00000000ffffffff
>>  RBP: ffffc9000037bdb8 R08: 0000000000000001 R09: 0000000000000001
>>  R10: 0000000000000780 R11: 0000000000000000 R12: 0000000000000002
>>  R13: ffff88044fbef4e8 R14: 0000000000000780 R15: 0000000000000438
>>  FS:  0000000000000000(0000) GS:ffff88045d200000(0000) knlGS:0000000000000000
>>  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>>  CR2: 000055ec51ee5168 CR3: 000000044c89d003 CR4: 00000000003606f0
>>  Call Trace:
>>   drm_fb_helper_hotplug_event.part.18+0x7e/0xc0
>>   drm_fb_helper_hotplug_event+0x1a/0x20
>>   intel_fbdev_output_poll_changed+0x1a/0x20 [i915]
>>   drm_kms_helper_hotplug_event+0x27/0x30
>>   intel_dp_modeset_retry_work_fn+0x77/0x80 [i915]
>>   process_one_work+0x233/0x660
>>   worker_thread+0x206/0x3b0
>>   kthread+0x152/0x190
>>   ? process_one_work+0x660/0x660
>>   ? kthread_create_on_node+0x40/0x40
>>   ret_from_fork+0x27/0x40
>>  Code: 06 00 00 45 8b 45 20 31 db 45 31 e4 45 85 c0 0f 8e 91 06 00 00 44 8b 75 94 44 8b 7d 90 49 8b 45 28 49 63 d4 44 89 f6 41 83 c4 01 <48> 8b 04 d0 44
>> +89 fa 48 8b 38 48 8b 87 a8 01 00 00 ff 50 20 01
>>  RIP: drm_setup_crtcs+0x143/0xbf0 RSP: ffffc9000037bd20
>>  ---[ end trace 08901ff1a77d30c7 ]---
>>
>> v2:
>> * Rename it to intel_hpd_poll_fini() and call drm_kms_helper_fini() inside it
>> as the first step before cancel work (Chris Wilson)
>> * Add GPF trace in commit message and make the function static (Maarten Lankhorst)
>>
>> Suggested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
>> Fixes: 9301397a63b3 ("drm/i915: Implement Link Rate fallback on Link training failure")
>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
>> Cc: Tony Cheng <tony.cheng@amd.com>
>> Cc: Harry Wentland <Harry.wentland@amd.com>
>> Cc: Jani Nikula <jani.nikula@linux.intel.com>
>> Cc: Daniel Vetter <daniel.vetter@intel.com>
>> Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
>> Cc: Manasi Navare <manasi.d.navare@intel.com>
>> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
>> ---
>>  drivers/gpu/drm/i915/intel_display.c | 21 ++++++++++++++++++++-
>>  1 file changed, 20 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
>> index 0e493a1..1ffe7a4 100644
>> --- a/drivers/gpu/drm/i915/intel_display.c
>> +++ b/drivers/gpu/drm/i915/intel_display.c
>> @@ -15200,6 +15200,23 @@ void intel_connector_unregister(struct drm_connector *connector)
>>         intel_panel_destroy_backlight(connector);
>>  }
>>  
>> +static void intel_hpd_poll_fini(struct drm_device *dev)
>> +{
>> +       struct intel_connector *connector;
>> +       struct drm_connector_list_iter conn_iter;
>> +
>> +       /* Disable Polling */
>> +       drm_kms_helper_poll_fini(dev);
>> +
>> +       /* kill the modeset retry work after killing the polling */
>> +       drm_connector_list_iter_begin(dev, &conn_iter);
>> +       for_each_intel_connector_iter(connector, &conn_iter) {
>> +               if (connector->modeset_retry_work.func)
>> +                       cancel_work_sync(&connector->modeset_retry_work);
>> +       }
>> +       drm_connector_list_iter_end(&conn_iter);
>> +}
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
> -Chris

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-27  6:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 21:52 [PATCH v2] drm/i915: Cancel the modeset retry work during modeset cleanup Manasi Navare
2017-10-26 22:18 ` Chris Wilson
2017-10-27  6:10   ` Maarten Lankhorst
2017-10-26 22:18 ` ✓ Fi.CI.BAT: success for drm/i915: Cancel the modeset retry work during modeset cleanup (rev2) Patchwork
2017-10-26 22:21   ` Chris Wilson
2017-10-26 22:26     ` Chris Wilson
2017-10-26 22:32     ` Manasi Navare
2017-10-26 23:23 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.