Detect DP displays based on sink count change
Subsystems (2)
cover Detect DP displays based on sink count change
From: "Thulasimani,Sivakumar" <[email protected]>
These two patches together help detect DP displays on short pulse HPD and pass the respective compliance test case (4.2.2.8)
Thulasimani,Sivakumar (2):
drm/i915: Read sink_count dpcd always for short hpd drm/i915: Perform full detect on sink_count change
drivers/gpu/drm/i915/intel_dp.c | 131 +++++++++++++++++++++----------------- drivers/gpu/drm/i915/intel_drv.h | 1 + 2 files changed, 73 insertions(+), 59 deletions(-)
Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/2 drm/i915: Read sink_count dpcd always for short hpd
From: "Thulasimani,Sivakumar" <[email protected]>
Compliance test 4.2.2.8 requires driver to read the sink_count for short pulse interrupt even when the panel is not enabled. This patch performs the following
a) reading sink_count by reusing intel_dp_detect_dpcd instead of using intel_dp_get_dpcd
b) moving crtc enabled checks post sink_count read call
--- drivers/gpu/drm/i915/intel_dp.c | 117 ++++++++++++++++++++------------------- 1 file changed, 59 insertions(+), 58 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +59 -58
@@ -4342,6 +4342,56 @@ go_again:return -EINVAL ; } +/* XXX this is probably wrong for multiple downstream ports */ +static enum drm_connector_status +intel_dp_detect_dpcd (struct intel_dp *intel_dp) +{ +uint8_t *dpcd = intel_dp->dpcd; +uint8_t type; + +if (!intel_dp_get_dpcd (intel_dp)) +return connector_status_disconnected; + +/* if there's no downstream port, we're done */ +if (!(dpcd[DP_DOWNSTREAMPORT_PRESENT ] &DP_DWN_STRM_PORT_PRESENT )) +return connector_status_connected; + +/* If we're HPD-aware, SINK_COUNT changes dynamically */ +if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 && + intel_dp->downstream_ports[0 ] &DP_DS_PORT_HPD ) { +uint8_t reg; + +if (intel_dp_dpcd_read_wake (&intel_dp->aux,DP_SINK_COUNT , + ®,1 ) <0 ) +return connector_status_unknown; + +return DP_GET_SINK_COUNT (reg) ? connector_status_connected + : connector_status_disconnected; + } + +/* If no HPD, poke DDC gently */ +if (drm_probe_ddc (&intel_dp->aux.ddc)) +return connector_status_connected; + +/* Well we tried, say unknown for unreliable port types */ +if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 ) { + type = intel_dp->downstream_ports[0 ] &DP_DS_PORT_TYPE_MASK ; +if (type ==DP_DS_PORT_TYPE_VGA || + type ==DP_DS_PORT_TYPE_NON_EDID ) +return connector_status_unknown; + }else { + type = intel_dp->dpcd[DP_DOWNSTREAMPORT_PRESENT ] & +DP_DWN_STRM_PORT_TYPE_MASK ; +if (type ==DP_DWN_STRM_PORT_TYPE_ANALOG || + type ==DP_DWN_STRM_PORT_TYPE_OTHER ) +return connector_status_unknown; + } + +/* Anything else is out of spec, warn and ignore */ +DRM_DEBUG_KMS ("Broken DP branch device, ignoring\n" ); +return connector_status_disconnected; +} +/* * According to DP spec * 5.1.2:
@@ -4362,21 +4412,22 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)WARN_ON (!drm_modeset_is_locked (&dev->mode_config.connection_mutex)); -if (!intel_encoder->base.crtc) +/* 4.2.2.8 requires source to read link_status, 0 - 12 DPCD & +* sink_count even for short pulse irrespective of the sink is +* in use or not +*/ +if (!intel_dp_get_link_status (intel_dp, link_status))return ; -if (!to_intel_crtc (intel_encoder->base.crtc)->active) +/* reuse to read both 0 - 12 DPCD & sink_count */ +if (intel_dp_detect_dpcd (intel_dp) != connector_status_connected)return ; -/* Try to read receiver status if the link appears to be up */ -if (!intel_dp_get_link_status (intel_dp, link_status)) { +if (!intel_encoder->base.crtc)return ; - } -/* Now read the DPCD to see if it's actually running */ -if (!intel_dp_get_dpcd (intel_dp)) { +if (!to_intel_crtc (intel_encoder->base.crtc)->active)return ; - }/* Try to read the source of the interrupt */ if (intel_dp->dpcd[DP_DPCD_REV] >= 0x11 &&
@@ -4401,56 +4452,6 @@ intel_dp_check_link_status(struct intel_dp *intel_dp) } } -/* XXX this is probably wrong for multiple downstream ports */ -static enum drm_connector_status -intel_dp_detect_dpcd (struct intel_dp *intel_dp) -{ -uint8_t *dpcd = intel_dp->dpcd; -uint8_t type; - -if (!intel_dp_get_dpcd (intel_dp)) -return connector_status_disconnected; - -/* if there's no downstream port, we're done */ -if (!(dpcd[DP_DOWNSTREAMPORT_PRESENT ] &DP_DWN_STRM_PORT_PRESENT )) -return connector_status_connected; - -/* If we're HPD-aware, SINK_COUNT changes dynamically */ -if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 && - intel_dp->downstream_ports[0 ] &DP_DS_PORT_HPD ) { -uint8_t reg; - -if (intel_dp_dpcd_read_wake (&intel_dp->aux,DP_SINK_COUNT , - ®,1 ) <0 ) -return connector_status_unknown; - -return DP_GET_SINK_COUNT (reg) ? connector_status_connected - : connector_status_disconnected; - } - -/* If no HPD, poke DDC gently */ -if (drm_probe_ddc (&intel_dp->aux.ddc)) -return connector_status_connected; - -/* Well we tried, say unknown for unreliable port types */ -if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 ) { - type = intel_dp->downstream_ports[0 ] &DP_DS_PORT_TYPE_MASK ; -if (type ==DP_DS_PORT_TYPE_VGA || - type ==DP_DS_PORT_TYPE_NON_EDID ) -return connector_status_unknown; - }else { - type = intel_dp->dpcd[DP_DOWNSTREAMPORT_PRESENT ] & -DP_DWN_STRM_PORT_TYPE_MASK ; -if (type ==DP_DWN_STRM_PORT_TYPE_ANALOG || - type ==DP_DWN_STRM_PORT_TYPE_OTHER ) -return connector_status_unknown; - } - -/* Anything else is out of spec, warn and ignore */ -DRM_DEBUG_KMS ("Broken DP branch device, ignoring\n" ); -return connector_status_disconnected; -} -static enum drm_connector_status edp_detect (struct intel_dp *intel_dp) {
Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [PATCH 1/2] drm/i915: Read sink_count dpcd always for short hpd
Quoted 61 lines · Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" <[email protected]>
Compliance test 4.2.2.8 requires driver to read the
sink_countfor short pulse interrupt even when the panel is not enabled. This patch performs the following
a) readingsink_countby reusingintel_dp_detect_dpcdinstead of usingintel_dp_get_dpcd
b) moving crtc enabled checks postsink_countread callSigned-off-by Sivakumar Thulasimani <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 117 ++++++++++++++++++++------------------- 1 file changed, 59 insertions(+), 58 deletions(-)drivers/gpu/drm/i915/intel_dp.c +39
-0@@ -4342,6 +4342,56 @@ go_again:return -EINVAL ; } +/* XXX this is probably wrong for multiple downstream ports */ +static enum drm_connector_status +intel_dp_detect_dpcd (struct intel_dp *intel_dp) +{ +uint8_t *dpcd = intel_dp->dpcd; +uint8_t type; + +if (!intel_dp_get_dpcd (intel_dp)) +return connector_status_disconnected; + +/* if there's no downstream port, we're done */ +if (!(dpcd[DP_DOWNSTREAMPORT_PRESENT ] &DP_DWN_STRM_PORT_PRESENT )) +return connector_status_connected; + +/* If we're HPD-aware, SINK_COUNT changes dynamically */ +if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 && + intel_dp->downstream_ports[0 ] &DP_DS_PORT_HPD ) { +uint8_t reg; + +if (intel_dp_dpcd_read_wake (&intel_dp->aux,DP_SINK_COUNT , + ®,1 ) <0 ) +return connector_status_unknown; + +return DP_GET_SINK_COUNT (reg) ? connector_status_connected + : connector_status_disconnected; + } + +/* If no HPD, poke DDC gently */ +if (drm_probe_ddc (&intel_dp->aux.ddc)) +return connector_status_connected; + +/* Well we tried, say unknown for unreliable port types */ +if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 ) { + type = intel_dp->downstream_ports[0 ] &DP_DS_PORT_TYPE_MASK ; +if (type ==DP_DS_PORT_TYPE_VGA || + type ==DP_DS_PORT_TYPE_NON_EDID ) +return connector_status_unknown; + }else { + type = intel_dp->dpcd[DP_DOWNSTREAMPORT_PRESENT] &
drivers/gpu/drm/i915/intel_dp.c go_again: · line 4393
Quoted 10 lines
drivers/gpu/drm/i915/intel_dp.c +10
-0+DP_DWN_STRM_PORT_TYPE_MASK ; +if (type ==DP_DWN_STRM_PORT_TYPE_ANALOG || + type ==DP_DWN_STRM_PORT_TYPE_OTHER ) +return connector_status_unknown; + } + +/* Anything else is out of spec, warn and ignore */ +DRM_DEBUG_KMS ("Broken DP branch device, ignoring\n" ); +return connector_status_disconnected; +}
Please either a) just add a forward declaration for intel_dp_detect_dpcd, or b) add a separate non-functional prep patch that moves the function around. Please don't combine code movement with functional changes.
BR,
Jani.
Quoted 99 lines
drivers/gpu/drm/i915/intel_dp.c +10
-58+/* * According to DP spec * 5.1.2: @@ -4362,21 +4412,22 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)WARN_ON (!drm_modeset_is_locked (&dev->mode_config.connection_mutex)); -if (!intel_encoder->base.crtc) +/* 4.2.2.8 requires source to read link_status, 0 - 12 DPCD & +* sink_count even for short pulse irrespective of the sink is +* in use or not +*/ +if (!intel_dp_get_link_status (intel_dp, link_status))return ; -if (!to_intel_crtc (intel_encoder->base.crtc)->active) +/* reuse to read both 0 - 12 DPCD & sink_count */ +if (intel_dp_detect_dpcd (intel_dp) != connector_status_connected)return ; -/* Try to read receiver status if the link appears to be up */ -if (!intel_dp_get_link_status (intel_dp, link_status)) { +if (!intel_encoder->base.crtc)return ; - } -/* Now read the DPCD to see if it's actually running */ -if (!intel_dp_get_dpcd (intel_dp)) { +if (!to_intel_crtc (intel_encoder->base.crtc)->active)return ; - }/* Try to read the source of the interrupt */ if (intel_dp->dpcd[DP_DPCD_REV] >= 0x11 &&@@ -4401,56 +4452,6 @@ intel_dp_check_link_status(struct intel_dp *intel_dp) } } -/* XXX this is probably wrong for multiple downstream ports */ -static enum drm_connector_status -intel_dp_detect_dpcd (struct intel_dp *intel_dp) -{ -uint8_t *dpcd = intel_dp->dpcd; -uint8_t type; - -if (!intel_dp_get_dpcd (intel_dp)) -return connector_status_disconnected; - -/* if there's no downstream port, we're done */ -if (!(dpcd[DP_DOWNSTREAMPORT_PRESENT ] &DP_DWN_STRM_PORT_PRESENT )) -return connector_status_connected; - -/* If we're HPD-aware, SINK_COUNT changes dynamically */ -if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 && - intel_dp->downstream_ports[0 ] &DP_DS_PORT_HPD ) { -uint8_t reg; - -if (intel_dp_dpcd_read_wake (&intel_dp->aux,DP_SINK_COUNT , - ®,1 ) <0 ) -return connector_status_unknown; - -return DP_GET_SINK_COUNT (reg) ? connector_status_connected - : connector_status_disconnected; - } - -/* If no HPD, poke DDC gently */ -if (drm_probe_ddc (&intel_dp->aux.ddc)) -return connector_status_connected; - -/* Well we tried, say unknown for unreliable port types */ -if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 ) { - type = intel_dp->downstream_ports[0 ] &DP_DS_PORT_TYPE_MASK ; -if (type ==DP_DS_PORT_TYPE_VGA || - type ==DP_DS_PORT_TYPE_NON_EDID ) -return connector_status_unknown; - }else { - type = intel_dp->dpcd[DP_DOWNSTREAMPORT_PRESENT ] & -DP_DWN_STRM_PORT_TYPE_MASK ; -if (type ==DP_DWN_STRM_PORT_TYPE_ANALOG || - type ==DP_DWN_STRM_PORT_TYPE_OTHER ) -return connector_status_unknown; - } - -/* Anything else is out of spec, warn and ignore */ -DRM_DEBUG_KMS ("Broken DP branch device, ignoring\n" ); -return connector_status_disconnected; -} -static enum drm_connector_status edp_detect (struct intel_dp *intel_dp) {Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/2] drm/i915: Read sink_count dpcd always for short hpd
Quoted 77 lines · Jani Nikula
Quoted 61 lines · Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" <[email protected]>
Compliance test 4.2.2.8 requires driver to read the
sink_countfor short pulse interrupt even when the panel is not enabled. This patch performs the following
a) readingsink_countby reusingintel_dp_detect_dpcdinstead of usingintel_dp_get_dpcd
b) moving crtc enabled checks postsink_countread callSigned-off-by Sivakumar Thulasimani <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 117 ++++++++++++++++++++------------------- 1 file changed, 59 insertions(+), 58 deletions(-)drivers/gpu/drm/i915/intel_dp.c +39
-0@@ -4342,6 +4342,56 @@ go_again:return -EINVAL ; } +/* XXX this is probably wrong for multiple downstream ports */ +static enum drm_connector_status +intel_dp_detect_dpcd (struct intel_dp *intel_dp) +{ +uint8_t *dpcd = intel_dp->dpcd; +uint8_t type; + +if (!intel_dp_get_dpcd (intel_dp)) +return connector_status_disconnected; + +/* if there's no downstream port, we're done */ +if (!(dpcd[DP_DOWNSTREAMPORT_PRESENT ] &DP_DWN_STRM_PORT_PRESENT )) +return connector_status_connected; + +/* If we're HPD-aware, SINK_COUNT changes dynamically */ +if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 && + intel_dp->downstream_ports[0 ] &DP_DS_PORT_HPD ) { +uint8_t reg; + +if (intel_dp_dpcd_read_wake (&intel_dp->aux,DP_SINK_COUNT , + ®,1 ) <0 ) +return connector_status_unknown; + +return DP_GET_SINK_COUNT (reg) ? connector_status_connected + : connector_status_disconnected; + } + +/* If no HPD, poke DDC gently */ +if (drm_probe_ddc (&intel_dp->aux.ddc)) +return connector_status_connected; + +/* Well we tried, say unknown for unreliable port types */ +if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 ) { + type = intel_dp->downstream_ports[0 ] &DP_DS_PORT_TYPE_MASK ; +if (type ==DP_DS_PORT_TYPE_VGA || + type ==DP_DS_PORT_TYPE_NON_EDID ) +return connector_status_unknown; + }else { + type = intel_dp->dpcd[DP_DOWNSTREAMPORT_PRESENT] &drivers/gpu/drm/i915/intel_dp.c go_again: · line 4393
Quoted 10 lines
drivers/gpu/drm/i915/intel_dp.c +10
-0+DP_DWN_STRM_PORT_TYPE_MASK ; +if (type ==DP_DWN_STRM_PORT_TYPE_ANALOG || + type ==DP_DWN_STRM_PORT_TYPE_OTHER ) +return connector_status_unknown; + } + +/* Anything else is out of spec, warn and ignore */ +DRM_DEBUG_KMS ("Broken DP branch device, ignoring\n" ); +return connector_status_disconnected; +}Please either a) just add a forward declaration for
intel_dp_detect_dpcd, or b) add a separate non-functional prep patch that moves the function around. Please don't combine code movement with functional changes.
Quoted 2 lines
BR,
Jani.
uploaded V2 of the patch with forward declaration.
Quoted 100 lines
Quoted 100 lines
drivers/gpu/drm/i915/intel_dp.c +10
-58+/* * According to DP spec * 5.1.2: @@ -4362,21 +4412,22 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)WARN_ON (!drm_modeset_is_locked (&dev->mode_config.connection_mutex)); -if (!intel_encoder->base.crtc) +/* 4.2.2.8 requires source to read link_status, 0 - 12 DPCD & +* sink_count even for short pulse irrespective of the sink is +* in use or not +*/ +if (!intel_dp_get_link_status (intel_dp, link_status))return ; -if (!to_intel_crtc (intel_encoder->base.crtc)->active) +/* reuse to read both 0 - 12 DPCD & sink_count */ +if (intel_dp_detect_dpcd (intel_dp) != connector_status_connected)return ; -/* Try to read receiver status if the link appears to be up */ -if (!intel_dp_get_link_status (intel_dp, link_status)) { +if (!intel_encoder->base.crtc)return ; - } -/* Now read the DPCD to see if it's actually running */ -if (!intel_dp_get_dpcd (intel_dp)) { +if (!to_intel_crtc (intel_encoder->base.crtc)->active)return ; - }/* Try to read the source of the interrupt */ if (intel_dp->dpcd[DP_DPCD_REV] >= 0x11 &&@@ -4401,56 +4452,6 @@ intel_dp_check_link_status(struct intel_dp *intel_dp) } } -/* XXX this is probably wrong for multiple downstream ports */ -static enum drm_connector_status -intel_dp_detect_dpcd (struct intel_dp *intel_dp) -{ -uint8_t *dpcd = intel_dp->dpcd; -uint8_t type; - -if (!intel_dp_get_dpcd (intel_dp)) -return connector_status_disconnected; - -/* if there's no downstream port, we're done */ -if (!(dpcd[DP_DOWNSTREAMPORT_PRESENT ] &DP_DWN_STRM_PORT_PRESENT )) -return connector_status_connected; - -/* If we're HPD-aware, SINK_COUNT changes dynamically */ -if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 && - intel_dp->downstream_ports[0 ] &DP_DS_PORT_HPD ) { -uint8_t reg; - -if (intel_dp_dpcd_read_wake (&intel_dp->aux,DP_SINK_COUNT , - ®,1 ) <0 ) -return connector_status_unknown; - -return DP_GET_SINK_COUNT (reg) ? connector_status_connected - : connector_status_disconnected; - } - -/* If no HPD, poke DDC gently */ -if (drm_probe_ddc (&intel_dp->aux.ddc)) -return connector_status_connected; - -/* Well we tried, say unknown for unreliable port types */ -if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 ) { - type = intel_dp->downstream_ports[0 ] &DP_DS_PORT_TYPE_MASK ; -if (type ==DP_DS_PORT_TYPE_VGA || - type ==DP_DS_PORT_TYPE_NON_EDID ) -return connector_status_unknown; - }else { - type = intel_dp->dpcd[DP_DOWNSTREAMPORT_PRESENT ] & -DP_DWN_STRM_PORT_TYPE_MASK ; -if (type ==DP_DWN_STRM_PORT_TYPE_ANALOG || - type ==DP_DWN_STRM_PORT_TYPE_OTHER ) -return connector_status_unknown; - } - -/* Anything else is out of spec, warn and ignore */ -DRM_DEBUG_KMS ("Broken DP branch device, ignoring\n" ); -return connector_status_disconnected; -} -static enum drm_connector_status edp_detect (struct intel_dp *intel_dp) {Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
regards, Sivakumar _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Perform full detect on sink_count change
In reply to Sivakumar ThulasimaniFrom: "Thulasimani,Sivakumar" <[email protected]>
This patch checks for changes in sink_count during short pulse hpd in check_link_status and forces full detect when sink_count changes. Compliance test 4.2.2.8 expects this behavior in compliant driver.
--- drivers/gpu/drm/i915/intel_dp.c | 24 ++++++++++++++++++------ drivers/gpu/drm/i915/intel_drv.h | 1 + 2 files changed, 19 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +18 -6
@@ -4359,14 +4359,13 @@ intel_dp_detect_dpcd(struct intel_dp *intel_dp)/* If we're HPD-aware, SINK_COUNT changes dynamically */ if (intel_dp->dpcd[DP_DPCD_REV ] >=0x11 && intel_dp->downstream_ports[0 ] &DP_DS_PORT_HPD ) { -uint8_t reg;if (intel_dp_dpcd_read_wake (&intel_dp->aux,DP_SINK_COUNT , - ®,1 ) <0 ) + &intel_dp->sink_count,1 ) <0 )return connector_status_unknown; -return DP_GET_SINK_COUNT (reg) ? connector_status_connected - : connector_status_disconnected; +return DP_GET_SINK_COUNT (intel_dp->sink_count) ? + connector_status_connected : connector_status_disconnected; }/* If no HPD, poke DDC gently */
@@ -4401,17 +4400,20 @@ intel_dp_detect_dpcd(struct intel_dp *intel_dp)* 4. Check link status on receipt of hot-plug interrupt */ static void -intel_dp_check_link_status (struct intel_dp *intel_dp) +intel_dp_check_link_status (struct intel_dp *intel_dp,bool *need_full_detect) {struct drm_device *dev =intel_dp_to_dev (intel_dp);struct intel_encoder *intel_encoder = &dp_to_dig_port (intel_dp)->base;struct intel_crtc *crtc =to_intel_crtc (dp_to_dig_port (intel_dp)->base.base.crtc);u8 sink_irq_vector; +u8 old_sink_count = intel_dp->sink_count;u8 link_status[DP_LINK_STATUS_SIZE ];WARN_ON (!drm_modeset_is_locked (&dev->mode_config.connection_mutex)); + *need_full_detect = false; +/* 4.2.2.8 requires source to read link_status, 0 - 12 DPCD & * sink_count even for short pulse irrespective of the sink is * in use or not
@@ -4423,6 +4425,12 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)if (intel_dp_detect_dpcd (intel_dp) != connector_status_connected)return ; +if (old_sink_count != intel_dp->sink_count) { +DRM_ERROR ("forcing full detect\n" ); + *need_full_detect = true; +return ; + } +if (!intel_encoder->base.crtc)return ;
@@ -5026,13 +5034,17 @@ intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, bool long_hpd) }if (!intel_dp->is_mst) { +bool full_detect = false;/* * we'll check the link status via the normal hot plug path later - * but for short hpds we should check it now */ drm_modeset_lock (&dev->mode_config.connection_mutex,NULL ); -intel_dp_check_link_status (intel_dp); +intel_dp_check_link_status (intel_dp, &full_detect);drm_modeset_unlock (&dev->mode_config.connection_mutex); + +if (full_detect) + goto put_power; } }
drivers/gpu/drm/i915/intel_drv.h +1 -0
@@ -712,6 +712,7 @@ struct intel_dp {enum hdmi_force_audio force_audio;bool limited_color_range;bool color_range_auto; +uint8_t sink_count;uint8_t dpcd[DP_RECEIVER_CAP_SIZE ];uint8_t psr_dpcd[EDP_PSR_RECEIVER_CAP_SIZE ];uint8_t downstream_ports[DP_MAX_DOWNSTREAM_PORTS ];
Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx