Revert "drm/amd/display: Handle HPD_IRQ for internal link"
commita2919b2577upstream. [How&Why] This reverts commit239b31bd5c. Due to the it effects Replay resync. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Signed-off-by: Sung-huai Wang <danny.wang@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3118c43a56
commit
d8d16fc1ef
@@ -373,7 +373,6 @@ bool dp_handle_hpd_rx_irq(struct dc_link *link,
|
|||||||
union device_service_irq device_service_clear = {0};
|
union device_service_irq device_service_clear = {0};
|
||||||
enum dc_status result;
|
enum dc_status result;
|
||||||
bool status = false;
|
bool status = false;
|
||||||
bool allow_active = false;
|
|
||||||
|
|
||||||
if (out_link_loss)
|
if (out_link_loss)
|
||||||
*out_link_loss = false;
|
*out_link_loss = false;
|
||||||
@@ -428,6 +427,12 @@ bool dp_handle_hpd_rx_irq(struct dc_link *link,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (handle_hpd_irq_psr_sink(link))
|
||||||
|
/* PSR-related error was detected and handled */
|
||||||
|
return true;
|
||||||
|
|
||||||
|
handle_hpd_irq_replay_sink(link);
|
||||||
|
|
||||||
/* If PSR-related error handled, Main link may be off,
|
/* If PSR-related error handled, Main link may be off,
|
||||||
* so do not handle as a normal sink status change interrupt.
|
* so do not handle as a normal sink status change interrupt.
|
||||||
*/
|
*/
|
||||||
@@ -449,8 +454,10 @@ bool dp_handle_hpd_rx_irq(struct dc_link *link,
|
|||||||
* If we got sink count changed it means
|
* If we got sink count changed it means
|
||||||
* Downstream port status changed,
|
* Downstream port status changed,
|
||||||
* then DM should call DC to do the detection.
|
* then DM should call DC to do the detection.
|
||||||
|
* NOTE: Do not handle link loss on eDP since it is internal link
|
||||||
*/
|
*/
|
||||||
if (dp_parse_link_loss_status(
|
if ((link->connector_signal != SIGNAL_TYPE_EDP) &&
|
||||||
|
dp_parse_link_loss_status(
|
||||||
link,
|
link,
|
||||||
&hpd_irq_dpcd_data)) {
|
&hpd_irq_dpcd_data)) {
|
||||||
/* Connectivity log: link loss */
|
/* Connectivity log: link loss */
|
||||||
@@ -459,11 +466,6 @@ bool dp_handle_hpd_rx_irq(struct dc_link *link,
|
|||||||
sizeof(hpd_irq_dpcd_data),
|
sizeof(hpd_irq_dpcd_data),
|
||||||
"Status: ");
|
"Status: ");
|
||||||
|
|
||||||
if (link->psr_settings.psr_feature_enabled)
|
|
||||||
edp_set_psr_allow_active(link, &allow_active, true, false, NULL);
|
|
||||||
else if (link->replay_settings.replay_allow_active)
|
|
||||||
edp_set_replay_allow_active(link, &allow_active, true, false, NULL);
|
|
||||||
|
|
||||||
if (defer_handling && has_left_work)
|
if (defer_handling && has_left_work)
|
||||||
*has_left_work = true;
|
*has_left_work = true;
|
||||||
else
|
else
|
||||||
@@ -476,14 +478,6 @@ bool dp_handle_hpd_rx_irq(struct dc_link *link,
|
|||||||
dp_trace_link_loss_increment(link);
|
dp_trace_link_loss_increment(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*out_link_loss == false) {
|
|
||||||
if (handle_hpd_irq_psr_sink(link))
|
|
||||||
/* PSR-related error was detected and handled */
|
|
||||||
return true;
|
|
||||||
|
|
||||||
handle_hpd_irq_replay_sink(link);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (link->type == dc_connection_sst_branch &&
|
if (link->type == dc_connection_sst_branch &&
|
||||||
hpd_irq_dpcd_data.bytes.sink_cnt.bits.SINK_COUNT
|
hpd_irq_dpcd_data.bytes.sink_cnt.bits.SINK_COUNT
|
||||||
!= link->dpcd_sink_count)
|
!= link->dpcd_sink_count)
|
||||||
|
|||||||
Reference in New Issue
Block a user