All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/display: Inject a failure into the initial modeset
@ 2020-12-04 17:14 Chris Wilson
  2020-12-04 17:15 ` Chris Wilson
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Chris Wilson @ 2020-12-04 17:14 UTC (permalink / raw)
  To: intel-gfx; +Cc: Chris Wilson

Experiment with how fault tolerant we are if the initial modeset fails
and we need to abort the driver load.

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 6e5b93f6a25e..c76c34e2c77a 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -18456,7 +18456,9 @@ static int intel_initial_commit(struct drm_device *dev)
 		}
 	}
 
-	ret = drm_atomic_commit(state);
+	ret = -ENODEV;
+	if (i915_inject_probe_failure(to_i915(dev)))
+		ret = drm_atomic_commit(state);
 
 out:
 	if (ret == -EDEADLK) {
-- 
2.20.1

_______________________________________________
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

end of thread, other threads:[~2020-12-06 19:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-04 17:14 [Intel-gfx] [PATCH] drm/i915/display: Inject a failure into the initial modeset Chris Wilson
2020-12-04 17:15 ` Chris Wilson
2020-12-06 10:43   ` Jani Nikula
2020-12-06 13:20     ` Chris Wilson
2020-12-04 20:25 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Inject a failure into the initial modeset (rev2) Patchwork
2020-12-04 23:25 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2020-12-06 14:39 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Inject a failure into the initial modeset (rev3) Patchwork
2020-12-06 19:13 ` [Intel-gfx] ✓ 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.