[PATCH v2 1/28] drm/amdgpu: fix that issue that the number of the crtc of the 3250c is not correct
Deucher, Alexander
Alexander.Deucher at amd.com
Fri Jan 28 14:40:12 UTC 2022
[Public]
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
________________________________
From: RyanLin <Tsung-Hua.Lin at amd.com>
Sent: Thursday, January 27, 2022 10:47 PM
To: Wentland, Harry <Harry.Wentland at amd.com>; Li, Sun peng (Leo) <Sunpeng.Li at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; Koenig, Christian <Christian.Koenig at amd.com>; David1.Zhou at amd.com <David1.Zhou at amd.com>; airlied at linux.ie <airlied at linux.ie>; daniel at ffwll.ch <daniel at ffwll.ch>; seanpaul at chromium.org <seanpaul at chromium.org>; bas at basnieuwenhuizen.nl <bas at basnieuwenhuizen.nl>; Kazlauskas, Nicholas <Nicholas.Kazlauskas at amd.com>; sashal at kernel.org <sashal at kernel.org>; markyacoub at google.com <markyacoub at google.com>; victorchengchi.lu at amd.com <victorchengchi.lu at amd.com>; ching-shih.li at amd.corp-partner.google.com <ching-shih.li at amd.corp-partner.google.com>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>; ddavenport at chromium.org <ddavenport at chromium.org>; amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>; dri-devel at lists.freedesktop.org <dri-devel at lists.freedesktop.org>; linux-kernel at vger.kernel.org <linux-kernel at vger.kernel.org>; Li, Leon <Leon.Li at amd.com>
Cc: Lin, Tsung-hua (Ryan) <Tsung-hua.Lin at amd.com>
Subject: [PATCH v2 1/28] drm/amdgpu: fix that issue that the number of the crtc of the 3250c is not correct
v2:
- remove unnecessary comments and Id
[Why]
External displays take priority over internal display when there are fewer
display controllers than displays.
[How]
The root cause is because of that number of the crtc is not correct.
The number of the crtc on the 3250c is 3, but on the 3500c is 4.
>From the source code, we can see that number of the crtc has been fixed at 4.
Needs to set the num_crtc to 3 for 3250c platform.
Signed-off-by: RyanLin <Tsung-Hua.Lin at amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 40c91b448f7d..455a2c45e8cd 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -2738,9 +2738,15 @@ static int dm_early_init(void *handle)
break;
#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
case CHIP_RAVEN:
- adev->mode_info.num_crtc = 4;
- adev->mode_info.num_hpd = 4;
- adev->mode_info.num_dig = 4;
+ if (adev->rev_id >= 8) {
+ adev->mode_info.num_crtc = 3;
+ adev->mode_info.num_hpd = 3;
+ adev->mode_info.num_dig = 3;
+ } else {
+ adev->mode_info.num_crtc = 4;
+ adev->mode_info.num_hpd = 4;
+ adev->mode_info.num_dig = 4;
+ }
break;
#endif
#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
--
2.25.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220128/a57b08d3/attachment-0001.htm>
More information about the dri-devel
mailing list