AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Tim Huang <Tim.Huang@amd.com>, Alex Deucher <alexander.deucher@amd.com>
Subject: [PATCH 6/9] drm/amdgpu: enable CGPG for GFX ip v11.5.1
Date: Thu, 15 Feb 2024 15:39:52 -0500	[thread overview]
Message-ID: <20240215203955.415314-6-alexander.deucher@amd.com> (raw)
In-Reply-To: <20240215203955.415314-1-alexander.deucher@amd.com>

From: Tim Huang <Tim.Huang@amd.com>

Enable CGPG support for GFX ip v11.5.1

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 71b3a0688555..2c812701592b 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -718,8 +718,27 @@ static int soc21_common_early_init(void *handle)
 		adev->external_rev_id = adev->rev_id + 0x1;
 		break;
 	case IP_VERSION(11, 5, 1):
-		adev->cg_flags = 0;
-		adev->pg_flags = 0;
+		adev->cg_flags =
+			AMD_CG_SUPPORT_GFX_CGCG |
+			AMD_CG_SUPPORT_GFX_CGLS |
+			AMD_CG_SUPPORT_GFX_MGCG |
+			AMD_CG_SUPPORT_GFX_FGCG |
+			AMD_CG_SUPPORT_REPEATER_FGCG |
+			AMD_CG_SUPPORT_GFX_PERF_CLK	|
+			AMD_CG_SUPPORT_GFX_3D_CGCG |
+			AMD_CG_SUPPORT_GFX_3D_CGLS	|
+			AMD_CG_SUPPORT_MC_MGCG |
+			AMD_CG_SUPPORT_MC_LS |
+			AMD_CG_SUPPORT_HDP_LS |
+			AMD_CG_SUPPORT_HDP_DS |
+			AMD_CG_SUPPORT_HDP_SD |
+			AMD_CG_SUPPORT_ATHUB_MGCG |
+			AMD_CG_SUPPORT_ATHUB_LS |
+			AMD_CG_SUPPORT_IH_CG |
+			AMD_CG_SUPPORT_BIF_MGCG |
+			AMD_CG_SUPPORT_BIF_LS;
+		adev->pg_flags =
+			AMD_PG_SUPPORT_GFX_PG;
 		adev->external_rev_id = adev->rev_id + 0xc1;
 		break;
 	default:
-- 
2.42.0


  parent reply	other threads:[~2024-02-15 20:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-15 20:39 [PATCH 1/9] drm/amdgpu: add GC 11.5.1 to GC 11.5.0 family Alex Deucher
2024-02-15 20:39 ` [PATCH 2/9] drm/amdgpu: add firmware for GC 11.5.1 Alex Deucher
2024-02-15 20:39 ` [PATCH 3/9] drm/amdgpu: add imu firmware support " Alex Deucher
2024-02-15 20:39 ` [PATCH 4/9] drm/amdgpu: add mes " Alex Deucher
2024-02-15 20:39 ` [PATCH 5/9] drm/amdgpu: initialize gfx11.5.1 Alex Deucher
2024-02-15 20:39 ` Alex Deucher [this message]
2024-02-15 20:39 ` [PATCH 7/9] drm/amdkfd: add KFD support for GC 11.5.1 Alex Deucher
2024-02-15 20:39 ` [PATCH 8/9] drm/amdgpu: add GC 11.5.1 discovery support Alex Deucher
2024-02-15 20:39 ` [PATCH 9/9] drm/amdgpu: enable MES discovery for GC 11.5.1 Alex Deucher
2024-02-16 15:30   ` Liu, Shaoyun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240215203955.415314-6-alexander.deucher@amd.com \
    --to=alexander.deucher@amd.com \
    --cc=Tim.Huang@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox