All of lore.kernel.org
 help / color / mirror / Atom feed
From: "José Roberto de Souza" <jose.souza@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH] drm/i915/display: Suspend MST topology manager before destroy fbdev
Date: Tue, 26 Nov 2019 18:16:09 -0800	[thread overview]
Message-ID: <20191127021609.162700-1-jose.souza@intel.com> (raw)

MST do topology probe in threads, so this running threads needs to be
flushed before fbdev is destroyed as when a new MST node is found it
calls drm_kms_helper_hotplug_event() that calls fbdev functions

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109964
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 8f2770951459..372dd48691cf 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -17989,6 +17989,13 @@ void intel_modeset_driver_remove(struct drm_i915_private *i915)
 	 */
 	intel_hpd_poll_fini(i915);
 
+	/*
+	 * MST do topology probe in threads, so this running threads needs to
+	 * be flushed before fbdev is destroyed as when a new MST node is found
+	 * it call drm_kms_helper_hotplug_event() that calls fbdev functions
+	 */
+	intel_dp_mst_suspend(i915);
+
 	/* poll work can call into fbdev, hence clean that up afterwards */
 	intel_fbdev_fini(i915);
 
-- 
2.24.0

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

WARNING: multiple messages have this Message-ID (diff)
From: "José Roberto de Souza" <jose.souza@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] [PATCH] drm/i915/display: Suspend MST topology manager before destroy fbdev
Date: Tue, 26 Nov 2019 18:16:09 -0800	[thread overview]
Message-ID: <20191127021609.162700-1-jose.souza@intel.com> (raw)
Message-ID: <20191127021609.Y0nv8gkXagQDJy7Ofmq0qXYoH7R6p5XmYj78EVzENlw@z> (raw)

MST do topology probe in threads, so this running threads needs to be
flushed before fbdev is destroyed as when a new MST node is found it
calls drm_kms_helper_hotplug_event() that calls fbdev functions

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109964
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 8f2770951459..372dd48691cf 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -17989,6 +17989,13 @@ void intel_modeset_driver_remove(struct drm_i915_private *i915)
 	 */
 	intel_hpd_poll_fini(i915);
 
+	/*
+	 * MST do topology probe in threads, so this running threads needs to
+	 * be flushed before fbdev is destroyed as when a new MST node is found
+	 * it call drm_kms_helper_hotplug_event() that calls fbdev functions
+	 */
+	intel_dp_mst_suspend(i915);
+
 	/* poll work can call into fbdev, hence clean that up afterwards */
 	intel_fbdev_fini(i915);
 
-- 
2.24.0

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

             reply	other threads:[~2019-11-27  2:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-27  2:16 José Roberto de Souza [this message]
2019-11-27  2:16 ` [Intel-gfx] [PATCH] drm/i915/display: Suspend MST topology manager before destroy fbdev José Roberto de Souza
2019-11-27  3:46 ` ✗ Fi.CI.BAT: failure for " Patchwork
2019-11-27  3:46   ` [Intel-gfx] " Patchwork
2019-11-27  8:15 ` ✗ Fi.CI.BAT: failure for drm/i915/display: Suspend MST topology manager before destroy fbdev (rev2) Patchwork
2019-11-27  8:15   ` [Intel-gfx] " Patchwork
2019-11-27 18:43 ` [PATCH] drm/i915/display: Suspend MST topology manager before destroy fbdev Lucas De Marchi
2019-11-27 18:43   ` [Intel-gfx] " Lucas De Marchi
2019-11-28  1:01   ` Souza, Jose
2019-11-28  1:01     ` [Intel-gfx] " Souza, Jose
2019-11-28  0:38 ` ✓ Fi.CI.BAT: success for drm/i915/display: Suspend MST topology manager before destroy fbdev (rev3) Patchwork
2019-11-28  0:38   ` [Intel-gfx] " Patchwork
2019-11-29  5:21 ` ✗ Fi.CI.IGT: failure " Patchwork
2019-11-29  5:21   ` [Intel-gfx] " Patchwork
2019-12-02 20:56   ` Souza, Jose
2019-12-02 20:56     ` [Intel-gfx] " Souza, Jose

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191127021609.162700-1-jose.souza@intel.com \
    --to=jose.souza@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.