diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-06-11 21:34:02 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-06-15 22:31:07 +0200 |
commit | 6ab0edf4e79c42e3dc9c47e060a68d337af51be0 (patch) | |
tree | 9b7d20d9499a18456281cf1fb5f7628ab74f717e /drivers/gpu/drm/drm_crtc.c | |
parent | drm/atomic: Improve debug messages (diff) | |
download | linux-6ab0edf4e79c42e3dc9c47e060a68d337af51be0.tar.xz linux-6ab0edf4e79c42e3dc9c47e060a68d337af51be0.zip |
drm: Print bad user modes
Print out the modeline when we reject a bad user mode. Avoids having to
guess why it was rejected.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180611193403.16118-2-ville.syrjala@linux.intel.com
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 53828fc8d911..163d82ac7d76 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -649,7 +649,9 @@ retry: ret = drm_mode_convert_umode(dev, mode, &crtc_req->mode); if (ret) { - DRM_DEBUG_KMS("Invalid mode\n"); + DRM_DEBUG_KMS("Invalid mode (ret=%d, status=%s)\n", + ret, drm_get_mode_status_name(mode->status)); + drm_mode_debug_printmodeline(mode); goto out; } |