<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div>Fixed</div>
<div><br>
</div>
<div>Regards,</div>
<div>Jasdeel</div>
<br>
<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> Alex Deucher <alexdeucher@gmail.com><br>
<b>Sent:</b> December 9, 2022 4:37 PM<br>
<b>To:</b> Dhillon, Jasdeep <Jasdeep.Dhillon@amd.com><br>
<b>Cc:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Wang, Chao-kai (Stylon) <Stylon.Wang@amd.com>; Li, Sun peng (Leo) <Sunpeng.Li@amd.com>; Wentland, Harry <Harry.Wentland@amd.com>; Zhuo, Qingqing (Lillian) <Qingqing.Zhuo@amd.com>; Siqueira,
Rodrigo <Rodrigo.Siqueira@amd.com>; Li, Roman <Roman.Li@amd.com>; Tam, Samson <Samson.Tam@amd.com>; Chiu, Solomon <Solomon.Chiu@amd.com>; Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; Lee, Alvin <Alvin.Lee2@amd.com>; Lin, Wayne <Wayne.Lin@amd.com>; Lakha,
Bhawanpreet <Bhawanpreet.Lakha@amd.com>; Gutierrez, Agustin <Agustin.Gutierrez@amd.com>; Kotarac, Pavle <Pavle.Kotarac@amd.com><br>
<b>Subject:</b> Re: [PATCH 11/23] drm/amd/display: Check for PSR in no memory request case</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Fri, Dec 9, 2022 at 11:38 AM jdhillon <jdhillon@amd.com> wrote:<br>
><br>
> From: Samson Tam <Samson.Tam@amd.com><br>
><br>
> [Why]<br>
> When we have a PSR display, we will not be requesting data from memory anymore.<br>
> So we report back true for no memory request case.<br>
><br>
> [How]<br>
> Check for PSR by checking PSR version in link settings<br>
><br>
> Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com><br>
> Acked-by: Jasdeep Dhillon <jdhillon@amd.com><br>
> Signed-off-by: Samson Tam <Samson.Tam@amd.com><br>
> ---<br>
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 +--------<br>
> drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 3 ++-<br>
> 2 files changed, 3 insertions(+), 9 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> index dc23801de071..6a6e4c844316 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> @@ -8359,10 +8359,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)<br>
> new_crtc_state = drm_atomic_get_new_crtc_state(state, &acrtc->base);<br>
> old_crtc_state = drm_atomic_get_old_crtc_state(state, &acrtc->base);<br>
> }<br>
> -<<<<<<< HEAD<br>
> -=======<br>
> -<br>
> ->>>>>>> 667f52144b9a (drm/amd/display: phase3 mst hdcp for multiple displays)<br>
> +<br>
<br>
Please squash these in with the patch that added them.<br>
<br>
> if (old_crtc_state)<br>
> pr_debug("old crtc en: %x a: %x m: %x a-chg: %x c-chg: %x\n",<br>
> old_crtc_state->enable,<br>
> @@ -8425,10 +8422,6 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)<br>
> DRM_MODE_CONTENT_PROTECTION_DESIRED)<br>
> enable_encryption = true;<br>
><br>
> -<<<<<<< HEAD<br>
> -<br>
> -=======<br>
> ->>>>>>> 667f52144b9a (drm/amd/display: phase3 mst hdcp for multiple displays)<br>
<br>
same here.<br>
<br>
Alex<br>
<br>
> if (aconnector->dc_link && aconnector->dc_sink &&<br>
> aconnector->dc_link->type == dc_connection_mst_branch) {<br>
> struct hdcp_workqueue *hdcp_work = adev->dm.hdcp_workqueue;<br>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c<br>
> index b8767be1e4c5..2f0ebe1f6c45 100644<br>
> --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c<br>
> +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c<br>
> @@ -188,7 +188,8 @@ static bool dcn32_check_no_memory_request_for_cab(struct dc *dc)<br>
><br>
> /* First, check no-memory-request case */<br>
> for (i = 0; i < dc->current_state->stream_count; i++) {<br>
> - if (dc->current_state->stream_status[i].plane_count)<br>
> + if ((dc->current_state->stream_status[i].plane_count) &&<br>
> + (dc->current_state->streams[i]->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED))<br>
> /* Fail eligibility on a visible stream */<br>
> break;<br>
> }<br>
> --<br>
> 2.34.1<br>
><br>
</div>
</span></font></div>
</body>
</html>