[PATCH] drm/modes: Dump the rejected user mode

From: Ville SyrjÃlÃ
Date: Wed May 23 2018 - 09:12:08 EST


Print put the modeline When we reject a user mode.

Cc: Vito Caputo <vcaputo@xxxxxxxxxxx>
Signed-off-by: Ville Syrjä <ville.syrjala@xxxxxxxxxxxxxxx>
---
drivers/gpu/drm/drm_modes.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index c78ca0e84ffd..ca50b12d9701 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -1739,8 +1739,11 @@ int drm_mode_convert_umode(struct drm_device *dev,
}

out->status = drm_mode_validate_driver(dev, out);
- if (out->status != MODE_OK)
+ if (out->status != MODE_OK) {
+ DRM_DEBUG_KMS("Bad user mode:\n");
+ drm_mode_debug_printmodeline(out);
return -EINVAL;
+ }

drm_mode_set_crtcinfo(out, CRTC_INTERLACE_HALVE_V);

--
2.16.1

--
Ville Syrjä
Intel