Commit a0c38eba authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: write dpcd 0x600 to 2 for DP/eDP when powerdown

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7fb77c51
...@@ -1977,7 +1977,7 @@ bool dc_link_setup_psr(struct dc_link *link, ...@@ -1977,7 +1977,7 @@ bool dc_link_setup_psr(struct dc_link *link,
#if defined(CONFIG_DRM_AMD_DC_DCN1_0) #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
/*skip power down the single pipe since it blocks the cstate*/ /*skip power down the single pipe since it blocks the cstate*/
if (ASIC_REV_IS_RAVEN(link->ctx->asic_id.hw_internal_rev)) if (ASIC_REV_IS_RAVEN(link->ctx->asic_id.hw_internal_rev))
psr_context->psr_level.bits.SKIP_SINGLE_OTG_DISABLE = false; psr_context->psr_level.bits.SKIP_CRTC_DISABLE = true;
#endif #endif
/* SMU will perform additional powerdown sequence. /* SMU will perform additional powerdown sequence.
......
...@@ -1147,8 +1147,16 @@ static enum dc_status apply_single_controller_ctx_to_hw( ...@@ -1147,8 +1147,16 @@ static enum dc_status apply_single_controller_ctx_to_hw(
static void power_down_encoders(struct dc *dc) static void power_down_encoders(struct dc *dc)
{ {
int i; int i;
enum connector_id connector_id;
for (i = 0; i < dc->link_count; i++) { for (i = 0; i < dc->link_count; i++) {
connector_id = dal_graphics_object_id_get_connector_id(dc->links[i]->link_id);
if ((connector_id == CONNECTOR_ID_DISPLAY_PORT) ||
(connector_id == CONNECTOR_ID_EDP)) {
if (!dc->links[i]->wa_flags.dp_keep_receiver_powered)
dp_receiver_power_ctrl(dc->links[i], false);
}
dc->links[i]->link_enc->funcs->disable_output( dc->links[i]->link_enc->funcs->disable_output(
dc->links[i]->link_enc, SIGNAL_TYPE_NONE); dc->links[i]->link_enc, SIGNAL_TYPE_NONE);
} }
......
...@@ -67,5 +67,6 @@ void dce110_fill_display_configs( ...@@ -67,5 +67,6 @@ void dce110_fill_display_configs(
uint32_t dce110_get_min_vblank_time_us(const struct validate_context *context); uint32_t dce110_get_min_vblank_time_us(const struct validate_context *context);
void dp_receiver_power_ctrl(struct dc_link *link, bool on);
#endif /* __DC_HWSS_DCE110_H__ */ #endif /* __DC_HWSS_DCE110_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment