Skip to content

Commit 3ba8607

Browse files
committed
drm/i915: Handle -EDEADLK in drm_atomic_commit from load-detect.
CI runs with DEBUG_WW_MUTEX_SLOWPATH, so -EDEADLK occurs a lot more. Handle the case where drm_atomic_commit fails with -EDEADLK correctly. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/56D3FEF1.6070306@linux.intel.com Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
1 parent d9f8e52 commit 3ba8607

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10577,7 +10577,8 @@ bool intel_get_load_detect_pipe(struct drm_connector *connector,
1057710577
goto fail;
1057810578
}
1057910579

10580-
if (drm_atomic_commit(state)) {
10580+
ret = drm_atomic_commit(state);
10581+
if (ret) {
1058110582
DRM_DEBUG_KMS("failed to set mode on load-detect pipe\n");
1058210583
goto fail;
1058310584
}

0 commit comments

Comments
 (0)