<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Seems reasonable.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mahapatra, Rajib <Rajib.Mahapatra@amd.com><br>
<b>Sent:</b> Monday, January 10, 2022 4:06 AM<br>
<b>To:</b> Wu, Hersen <hersenxs.wu@amd.com>; Wentland, Harry <Harry.Wentland@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Cc:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; S, Shirish <Shirish.S@amd.com>; Mahapatra, Rajib <Rajib.Mahapatra@amd.com><br>
<b>Subject:</b> [PATCH] drm/amd/display: Not to call dpcd_set_source_specific_data during resume.</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[Why]<br>
During resume path, dpcd_set_source_specific_data is taking<br>
extra time when core_link_write_dpcd fails on DP_SOURCE_OUI+0x03<br>
and DP_SOURCE_MINIMUM_HBLANK_SUPPORTED. Here,aux->transfer fails<br>
with multiple retries and consume sigficantamount time during<br>
S0i3 resume.<br>
<br>
[How]<br>
Not to call dpcd_set_source_specific_data during resume path<br>
when there is no oled panel connected and achieve faster resume<br>
during S0i3.<br>
<br>
Signed-off-by: Rajib Mahapatra <rajib.mahapatra@amd.com><br>
---<br>
 drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c<br>
index c0bdc23702c8..04086c199dbb 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c<br>
@@ -892,7 +892,8 @@ static bool dc_link_detect_helper(struct dc_link *link,<br>
                 (!link->dc->config.allow_edp_hotplug_detection)) &&<br>
                 link->local_sink) {<br>
                 // need to re-write OUI and brightness in resume case<br>
-               if (link->connector_signal == SIGNAL_TYPE_EDP) {<br>
+               if (link->connector_signal == SIGNAL_TYPE_EDP &&<br>
+                       (link->dpcd_sink_ext_caps.bits.oled == 1)) {<br>
                         dpcd_set_source_specific_data(link);<br>
                         msleep(post_oui_delay);<br>
                         dc_link_set_default_brightness_aux(link);<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>