drm/i915/display: Suspend MST topology manager before destroy fbdev
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 27 Nov 2019 02:16:09 +0000 (18:16 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 2 Dec 2019 20:54:05 +0000 (12:54 -0800)
MST topology needs to be suspended so we don't have any calls to
fbdev after it's finalized. MST will be destroyed later as part of
drm_mode_config_cleanup().

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109964
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191127021609.162700-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_display.c

index 5adc48aacbda1bb6ddf5b3739a65b0fad0787314..947739f18b0a61162249f2af7f143d3b390a0b66 100644 (file)
@@ -17947,6 +17947,13 @@ void intel_modeset_driver_remove(struct drm_i915_private *i915)
         */
        intel_hpd_poll_fini(i915);
 
+       /*
+        * MST topology needs to be suspended so we don't have any calls to
+        * fbdev after it's finalized. MST will be destroyed later as part of
+        * drm_mode_config_cleanup()
+        */
+       intel_dp_mst_suspend(i915);
+
        /* poll work can call into fbdev, hence clean that up afterwards */
        intel_fbdev_fini(i915);