Skip to contentSkip to conversation

drm/i915/display: Go softly softly on initial modeset failure

PATCH In review Chris Wilson 4 participants 4 messages Dec 10, 2020 – Dec 11, 2020

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

PATCH 1/1 drm/i915/display: Go softly softly on initial modeset failure

Reduce the module/device probe error into a mere debug to hide issues where the initial modeset is failing (after lies told by hw probe) and the system hangs with a livelock in cleaning up the failed commit.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=210619

Fixes b3bf99daaee9 ("drm/i915/display: Defer initial modeset until after GGTT is initialised")
Fixes ccc9e67ab26f ("drm/i915/display: Defer initial modeset until after GGTT is initialised")
Cc "Ville Syrjälä" <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc H.J. Lu <[email protected]>
Cc Dave Airlie <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index c567c0cada7e..761be8deaa9b 100644
@@ -18755,7 +18755,7 @@ int intel_modeset_init(struct drm_i915_private *i915)
 	 */
 	ret = intel_initial_commit(&i915->drm);
 	if (ret)
-		return ret;
+		drm_dbg_kms(&i915->drm, "Initial modeset failed, %d\n", ret);
 
 	intel_overlay_setup(i915);
 
Signature · 6 lines
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Chris Wilson

Reduce the module/device probe error into a mere debug to hide issues where the initial modeset is failing (after lies told by hw probe) and the system hangs with a livelock in cleaning up the failed commit.

Quoted 8 lines

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=210619

Fixes b3bf99daaee9 ("drm/i915/display: Defer initial modeset until after GGTT is initialised")
Fixes ccc9e67ab26f ("drm/i915/display: Defer initial modeset until after GGTT is initialised")
Cc "Ville Syrjälä" <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc H.J. Lu <[email protected]>
Cc Dave Airlie <[email protected]>
Quoted 20 lines
---
 drivers/gpu/drm/i915/display/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index c567c0cada7e..761be8deaa9b 100644
@@ -18755,7 +18755,7 @@ int intel_modeset_init(struct drm_i915_private *i915)
 	 */
 	ret = intel_initial_commit(&i915->drm);
 	if (ret)
-		return ret;
+		drm_dbg_kms(&i915->drm, "Initial modeset failed, %d\n", ret);
 
 	intel_overlay_setup(i915);
 
Signature · 1 line
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
Quoted 21 lines · Rodrigo Vivi
Quoted 5 lines · Chris Wilson

Reduce the module/device probe error into a mere debug to hide issues where the initial modeset is failing (after lies told by hw probe) and the system hangs with a livelock in cleaning up the failed commit.

Quoted 8 lines

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=210619

Fixes b3bf99daaee9 ("drm/i915/display: Defer initial modeset until after GGTT is initialised")
Fixes ccc9e67ab26f ("drm/i915/display: Defer initial modeset until after GGTT is initialised")
Cc "Ville Syrjälä" <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc H.J. Lu <[email protected]>
Cc Dave Airlie <[email protected]>
Quoted 4 lines
---
 drivers/gpu/drm/i915/display/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 10 lines

drivers/gpu/drm/i915/display/intel_display.c int intel_modeset_init(struct drm_i915_private *i915) · line 18758

Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index c567c0cada7e..761be8deaa9b 100644
@@ -18755,7 +18755,7 @@ int intel_modeset_init(struct drm_i915_private *i915)
       */
      ret = intel_initial_commit(&i915->drm);
      if (ret)
-             return ret;
+             drm_dbg_kms(&i915->drm, "Initial modeset failed, %d\n", ret);

Yes, it fixed the problem.

Thanks.

Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c +0 -1
      intel_overlay_setup(i915);
 
--

2.20.1

Signature · 5 lines
H.J.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/display: Go softly softly on initial modeset failure

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: drm/i915/display: Go softly softly on initial modeset failure
URL : https://patchwork.freedesktop.org/series/84808/
State : failure

== Summary ==

Applying: drm/i915/display: Go softly softly on initial modeset failure Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/display/intel_display.c
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx