<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);">
Reviewed-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> RyanLin <Tsung-Hua.Lin@amd.com><br>
<b>Sent:</b> Thursday, January 27, 2022 10:47 PM<br>
<b>To:</b> Wentland, Harry <Harry.Wentland@amd.com>; Li, Sun peng (Leo) <Sunpeng.Li@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>; David1.Zhou@amd.com <David1.Zhou@amd.com>; airlied@linux.ie <airlied@linux.ie>;
 daniel@ffwll.ch <daniel@ffwll.ch>; seanpaul@chromium.org <seanpaul@chromium.org>; bas@basnieuwenhuizen.nl <bas@basnieuwenhuizen.nl>; Kazlauskas, Nicholas <Nicholas.Kazlauskas@amd.com>; sashal@kernel.org <sashal@kernel.org>; markyacoub@google.com <markyacoub@google.com>;
 victorchengchi.lu@amd.com <victorchengchi.lu@amd.com>; ching-shih.li@amd.corp-partner.google.com <ching-shih.li@amd.corp-partner.google.com>; Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>; ddavenport@chromium.org <ddavenport@chromium.org>; amd-gfx@lists.freedesktop.org
 <amd-gfx@lists.freedesktop.org>; dri-devel@lists.freedesktop.org <dri-devel@lists.freedesktop.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; Li, Leon <Leon.Li@amd.com><br>
<b>Cc:</b> Lin, Tsung-hua (Ryan) <Tsung-hua.Lin@amd.com><br>
<b>Subject:</b> [PATCH v2 1/28] drm/amdgpu: fix that issue that the number of the crtc of the 3250c is not correct</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">v2:<br>
  - remove unnecessary comments and Id<br>
<br>
[Why]<br>
External displays take priority over internal display when there are fewer <br>
display controllers than displays.<br>
<br>
[How]<br>
The root cause is because of that number of the crtc is not correct.<br>
The number of the crtc on the 3250c is 3, but on the 3500c is 4.<br>
>From the source code, we can see that number of the crtc has been fixed at 4.<br>
Needs to set the num_crtc to 3 for 3250c platform.<br>
<br>
Signed-off-by: RyanLin <Tsung-Hua.Lin@amd.com><br>
<br>
---<br>
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 +++++++++---<br>
 1 file changed, 9 insertions(+), 3 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 40c91b448f7d..455a2c45e8cd 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>
@@ -2738,9 +2738,15 @@ static int dm_early_init(void *handle)<br>
                 break;<br>
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
         case CHIP_RAVEN:<br>
-               adev->mode_info.num_crtc = 4;<br>
-               adev->mode_info.num_hpd = 4;<br>
-               adev->mode_info.num_dig = 4;<br>
+               if (adev->rev_id >= 8) {<br>
+                       adev->mode_info.num_crtc = 3;<br>
+                       adev->mode_info.num_hpd = 3;<br>
+                       adev->mode_info.num_dig = 3;<br>
+               } else {<br>
+                       adev->mode_info.num_crtc = 4;<br>
+                       adev->mode_info.num_hpd = 4;<br>
+                       adev->mode_info.num_dig = 4;<br>
+               }<br>
                 break;<br>
 #endif<br>
 #if defined(CONFIG_DRM_AMD_DC_DCN2_0)<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>