Commit 14d4e522 authored by Lyude Paul's avatar Lyude Paul

drm/atomic: Print debug message on atomic check failure

Does what it says on the label, it's a little confusing debugging atomic
check failures otherwise.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Reviewed-by: default avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180411234302.2896-2-lyude@redhat.com
parent 36a501a1
...@@ -1702,11 +1702,15 @@ int drm_atomic_check_only(struct drm_atomic_state *state) ...@@ -1702,11 +1702,15 @@ int drm_atomic_check_only(struct drm_atomic_state *state)
} }
} }
if (config->funcs->atomic_check) if (config->funcs->atomic_check) {
ret = config->funcs->atomic_check(state->dev, state); ret = config->funcs->atomic_check(state->dev, state);
if (ret) if (ret) {
DRM_DEBUG_ATOMIC("atomic driver check for %p failed: %d\n",
state, ret);
return ret; return ret;
}
}
if (!state->allow_modeset) { if (!state->allow_modeset) {
for_each_new_crtc_in_state(state, crtc, crtc_state, i) { for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment