<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">The following patch has been<br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt"><br>
<span data-markjs="true" class="mark9e0x2s9vd" data-ogac="" data-ogab="" data-ogsc="" data-ogsb="">Reviewed-by</span>: Nicholas Choi <Nicholas.Choi@amd.com><br>
<br>
Thanks,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt"><br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">Nicholas</span></font><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> Alex Deucher <alexdeucher@gmail.com><br>
<b>Sent:</b> Saturday, December 11, 2021 9:08 AM<br>
<b>To:</b> Zuo, Jerry <Jerry.Zuo@amd.com><br>
<b>Cc:</b> amd-gfx list <amd-gfx@lists.freedesktop.org>; Choi, Nicholas <Nicholas.Choi@amd.com><br>
<b>Subject:</b> Re: [PATCH] drm/amd/display: Fix Compile Error for DCE</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
<br>
On Fri, Dec 10, 2021 at 9:42 PM Fangzhi Zuo <Jerry.Zuo@amd.com> wrote:<br>
><br>
> Follow-up fix for:<br>
> drm/amd/display: Add Debugfs Entry to Force in SST Sequence<br>
><br>
> Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com><br>
> ---<br>
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 6 +++++-<br>
>  1 file changed, 5 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c<br>
> index 1779c7daaf72..dc55a736e198 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c<br>
> @@ -3237,8 +3237,9 @@ static int disable_hpd_get(void *data, u64 *val)<br>
>  DEFINE_DEBUGFS_ATTRIBUTE(disable_hpd_ops, disable_hpd_get,<br>
>                          disable_hpd_set, "%llu\n");<br>
><br>
> +#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
>  /*<br>
> - * Force sst sequence in mst capable receiver.<br>
> + * Temporary w/a to force sst sequence in M42D DP2 mst receiver<br>
>   * Example usage: echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_dp_set_mst_en_for_sst<br>
>   */<br>
>  static int dp_force_sst_set(void *data, u64 val)<br>
> @@ -3260,6 +3261,7 @@ static int dp_force_sst_get(void *data, u64 *val)<br>
>  }<br>
>  DEFINE_DEBUGFS_ATTRIBUTE(dp_set_mst_en_for_sst_ops, dp_force_sst_get,<br>
>                          dp_force_sst_set, "%llu\n");<br>
> +#endif<br>
><br>
>  /*<br>
>   * Sets the DC visual confirm debug option from the given string.<br>
> @@ -3370,8 +3372,10 @@ void dtn_debugfs_init(struct amdgpu_device *adev)<br>
>                             adev, &mst_topo_fops);<br>
>         debugfs_create_file("amdgpu_dm_dtn_log", 0644, root, adev,<br>
>                             &dtn_log_fops);<br>
> +#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
>         debugfs_create_file("amdgpu_dm_dp_set_mst_en_for_sst", 0644, root, adev,<br>
>                                 &dp_set_mst_en_for_sst_ops);<br>
> +#endif<br>
><br>
>         debugfs_create_file_unsafe("amdgpu_dm_visual_confirm", 0644, root, adev,<br>
>                                    &visual_confirm_fops);<br>
> --<br>
> 2.25.1<br>
><br>
</div>
</span></font></div>
</div>
</body>
</html>