diff options
author | Libin Yang <libin.yang@intel.com> | 2016-11-28 07:07:05 -0500 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-11-29 10:33:35 -0500 |
commit | 9a148a96fc3a654ddcf142a7ab7db37b972ba5d8 (patch) | |
tree | ea6a244094258fa5413c12c193cae2878b332ebe /drivers/gpu/drm | |
parent | c6385c947f4d1526d823a16ea25daa93d2897997 (diff) |
drm/i915/debugfs: add dp mst info
Add the DP MST info dump in debugfs.
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Reviewed-by: Lyude <cpaul@redhat.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1480334827-112273-1-git-send-email-libin.yang@intel.com
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 4a431d9c700c..db53fd09f8df 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -2877,6 +2877,20 @@ static void intel_dp_info(struct seq_file *m, | |||
2877 | &intel_dp->aux); | 2877 | &intel_dp->aux); |
2878 | } | 2878 | } |
2879 | 2879 | ||
2880 | static void intel_dp_mst_info(struct seq_file *m, | ||
2881 | struct intel_connector *intel_connector) | ||
2882 | { | ||
2883 | struct intel_encoder *intel_encoder = intel_connector->encoder; | ||
2884 | struct intel_dp_mst_encoder *intel_mst = | ||
2885 | enc_to_mst(&intel_encoder->base); | ||
2886 | struct intel_digital_port *intel_dig_port = intel_mst->primary; | ||
2887 | struct intel_dp *intel_dp = &intel_dig_port->dp; | ||
2888 | bool has_audio = drm_dp_mst_port_has_audio(&intel_dp->mst_mgr, | ||
2889 | intel_connector->port); | ||
2890 | |||
2891 | seq_printf(m, "\taudio support: %s\n", yesno(has_audio)); | ||
2892 | } | ||
2893 | |||
2880 | static void intel_hdmi_info(struct seq_file *m, | 2894 | static void intel_hdmi_info(struct seq_file *m, |
2881 | struct intel_connector *intel_connector) | 2895 | struct intel_connector *intel_connector) |
2882 | { | 2896 | { |
@@ -2919,7 +2933,10 @@ static void intel_connector_info(struct seq_file *m, | |||
2919 | switch (connector->connector_type) { | 2933 | switch (connector->connector_type) { |
2920 | case DRM_MODE_CONNECTOR_DisplayPort: | 2934 | case DRM_MODE_CONNECTOR_DisplayPort: |
2921 | case DRM_MODE_CONNECTOR_eDP: | 2935 | case DRM_MODE_CONNECTOR_eDP: |
2922 | intel_dp_info(m, intel_connector); | 2936 | if (intel_encoder->type == INTEL_OUTPUT_DP_MST) |
2937 | intel_dp_mst_info(m, intel_connector); | ||
2938 | else | ||
2939 | intel_dp_info(m, intel_connector); | ||
2923 | break; | 2940 | break; |
2924 | case DRM_MODE_CONNECTOR_LVDS: | 2941 | case DRM_MODE_CONNECTOR_LVDS: |
2925 | if (intel_encoder->type == INTEL_OUTPUT_LVDS) | 2942 | if (intel_encoder->type == INTEL_OUTPUT_LVDS) |