<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:#0078D7;margin:15pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@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> Ma, Hanghong <Hanghong.Ma@amd.com><br>
<b>Sent:</b> May 11, 2020 3:48 PM<br>
<b>To:</b> Wentland, Harry <Harry.Wentland@amd.com><br>
<b>Cc:</b> Lakha, Bhawanpreet <Bhawanpreet.Lakha@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> RE: [PATCH] drm/amd/amdgpu: Update update_config() logic</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[AMD Official Use Only - Internal Distribution Only]<br>
<br>
Thanks Harry.<br>
I will drop the Change-Id before merging.<br>
<br>
-Leo<br>
<br>
-----Original Message-----<br>
From: Wentland, Harry <Harry.Wentland@amd.com> <br>
Sent: Monday, May 11, 2020 3:46 PM<br>
To: Ma, Hanghong <Hanghong.Ma@amd.com>; Lakha, Bhawanpreet <Bhawanpreet.Lakha@amd.com>; amd-gfx@lists.freedesktop.org<br>
Cc: Wentland, Harry <Harry.Wentland@amd.com><br>
Subject: Re: [PATCH] drm/amd/amdgpu: Update update_config() logic<br>
<br>
On 2020-05-11 3:28 p.m., Leo (Hanghong) Ma wrote:<br>
> [Why]<br>
> For MST case: when update_config is called to disable a stream, this <br>
> clears the settings for all the streams on that link.<br>
> We should only clear the settings for the stream that was disabled.<br>
> <br>
> [How]<br>
> Clear the settings after the call to remove display is called.<br>
> <br>
> Change-Id: I8235998b8fac3d58d24edf86bb5d7cc030f1e375<br>
<br>
Please drop the Change-Id before merging.<br>
<br>
> Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com><br>
<br>
Reviewed-by: Harry Wentland <harry.wentland@amd.com><br>
<br>
Harry<br>
<br>
> ---<br>
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c | 10 <br>
> +++++-----<br>
> 1 file changed, 5 insertions(+), 5 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c <br>
> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c<br>
> index 78e1c11d4ae5..dcf84a61de37 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c<br>
> @@ -398,15 +398,15 @@ static void update_config(void *handle, struct cp_psp_stream_config *config)<br>
> struct mod_hdcp_display *display = &hdcp_work[link_index].display;<br>
> struct mod_hdcp_link *link = &hdcp_work[link_index].link;<br>
> <br>
> - memset(display, 0, sizeof(*display));<br>
> - memset(link, 0, sizeof(*link));<br>
> -<br>
> - display->index = aconnector->base.index;<br>
> -<br>
> if (config->dpms_off) {<br>
> hdcp_remove_display(hdcp_work, link_index, aconnector);<br>
> return;<br>
> }<br>
> +<br>
> + memset(display, 0, sizeof(*display));<br>
> + memset(link, 0, sizeof(*link));<br>
> +<br>
> + display->index = aconnector->base.index;<br>
> display->state = MOD_HDCP_DISPLAY_ACTIVE;<br>
> <br>
> if (aconnector->dc_sink != NULL)<br>
> <br>
</div>
</span></font></div>
</div>
</body>
</html>