drm/i915: print connector mode list in display_info
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 20 Feb 2014 20:39:57 +0000 (12:39 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Mar 2014 20:30:13 +0000 (21:30 +0100)
Useful for bug reports.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index f3015034fd2d388ee23a69920d3f075bda60c2f6..6e668fa13b9820331549c8e78fb3549918a10994 100644 (file)
@@ -2182,6 +2182,7 @@ static void intel_connector_info(struct seq_file *m,
 {
        struct intel_connector *intel_connector = to_intel_connector(connector);
        struct intel_encoder *intel_encoder = intel_connector->encoder;
+       struct drm_display_mode *mode;
 
        seq_printf(m, "connector %d: type %s, status: %s\n",
                   connector->base.id, drm_get_connector_name(connector),
@@ -2204,6 +2205,9 @@ static void intel_connector_info(struct seq_file *m,
        else if (intel_encoder->type == INTEL_OUTPUT_LVDS)
                intel_lvds_info(m, intel_connector);
 
+       seq_printf(m, "\tmodes:\n");
+       list_for_each_entry(mode, &connector->modes, head)
+               intel_seq_print_mode(m, 2, mode);
 }
 
 static int i915_display_info(struct seq_file *m, void *unused)