1
0
Fork 0

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>
(cherry picked from commit 3ba86073ed)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
hifive-unleashed-5.1
Maarten Lankhorst 2016-02-29 09:18:57 +01:00 committed by Jani Nikula
parent f2c488212b
commit 94669e6ba1
1 changed files with 2 additions and 1 deletions

View File

@ -10542,7 +10542,8 @@ found:
goto fail;
}
if (drm_atomic_commit(state)) {
ret = drm_atomic_commit(state);
if (ret) {
DRM_DEBUG_KMS("failed to set mode on load-detect pipe\n");
goto fail;
}