aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0996-drm-amd-display-write-dpcd-0x600-to-2-for-DP-eDP-whe.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0996-drm-amd-display-write-dpcd-0x600-to-2-for-DP-eDP-whe.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0996-drm-amd-display-write-dpcd-0x600-to-2-for-DP-eDP-whe.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0996-drm-amd-display-write-dpcd-0x600-to-2-for-DP-eDP-whe.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0996-drm-amd-display-write-dpcd-0x600-to-2-for-DP-eDP-whe.patch
new file mode 100644
index 00000000..a5b5bdec
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0996-drm-amd-display-write-dpcd-0x600-to-2-for-DP-eDP-whe.patch
@@ -0,0 +1,65 @@
+From 19cb301259c49772bc23aed9f6b8da9da16ffdd7 Mon Sep 17 00:00:00 2001
+From: Charlene Liu <charlene.liu@amd.com>
+Date: Mon, 21 Aug 2017 12:59:41 -0400
+Subject: [PATCH 0996/4131] drm/amd/display: write dpcd 0x600 to 2 for DP/eDP
+ when powerdown
+
+Change-Id: Id83238a2f1b7cc66bdf7a9a02fc630f8805fdd17
+Signed-off-by: Charlene Liu <charlene.liu@amd.com>
+Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +-
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 10 +++++++++-
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h | 1 +
+ 3 files changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+index ee9b984..0bdd41c 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+@@ -1977,7 +1977,7 @@ bool dc_link_setup_psr(struct dc_link *link,
+ #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
+ /*skip power down the single pipe since it blocks the cstate*/
+ 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
+
+ /* SMU will perform additional powerdown sequence.
+diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+index 6b2b491..40cae7a 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+@@ -1142,8 +1142,16 @@ static enum dc_status apply_single_controller_ctx_to_hw(
+ static void power_down_encoders(struct dc *dc)
+ {
+ int i;
+-
++ enum connector_id connector_id;
+ 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, SIGNAL_TYPE_NONE);
+ }
+diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h
+index d710f6e6..ac418fd 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h
++++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h
+@@ -67,5 +67,6 @@ void dce110_fill_display_configs(
+
+ 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__ */
+
+--
+2.7.4
+