AMD-GFX Archive mirror
 help / color / mirror / Atom feed
From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Kenneth Feng <kenneth.feng@amd.com>,
	Likun Gao <Likun.Gao@amd.com>,
	"Alex Deucher" <alexander.deucher@amd.com>
Subject: [PATCH 1/7] drm/amd/amdgpu: enable cgcg and cgls
Date: Tue, 30 Apr 2024 16:33:59 -0400	[thread overview]
Message-ID: <20240430203405.798798-1-alexander.deucher@amd.com> (raw)

From: Kenneth Feng <kenneth.feng@amd.com>

enable cgcg and cgls on gc 12.0.1

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/soc24.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c
index 0979dffe37424..143329ed2c9a1 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc24.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc24.c
@@ -401,7 +401,8 @@ static int soc24_common_early_init(void *handle)
 		adev->external_rev_id = adev->rev_id + 0x40;
 		break;
 	case IP_VERSION(12, 0, 1):
-		adev->cg_flags = 0;
+		adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
+			AMD_CG_SUPPORT_GFX_CGLS;
 		adev->pg_flags = AMD_PG_SUPPORT_VCN |
 			AMD_PG_SUPPORT_JPEG |
 			AMD_PG_SUPPORT_VCN_DPG;
-- 
2.44.0


             reply	other threads:[~2024-04-30 20:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 20:33 Alex Deucher [this message]
2024-04-30 20:34 ` [PATCH 2/7] drm/amd/amdgpu: enable mgcg on gfx 12.0.1 Alex Deucher
2024-04-30 20:34 ` [PATCH 3/7] drm/amd/amdgpu: enable 3D cgcg and 3D cgls Alex Deucher
2024-04-30 20:34 ` [PATCH 4/7] drm/amd/amdgpu: enable perfcounter mgcg and repeater fgcg Alex Deucher
2024-04-30 20:34 ` [PATCH 5/7] drm/amd/amdgpu: enable sram fgcg on gc 12.0.1 Alex Deucher
2024-04-30 20:34 ` [PATCH 6/7] drm/amdgpu: support cg state get for gfx v12 Alex Deucher
2024-04-30 20:34 ` [PATCH 7/7] drm/amd/amdgpu: enable gfxoff on gc 12.0.1 Alex Deucher

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=20240430203405.798798-1-alexander.deucher@amd.com \
    --to=alexander.deucher@amd.com \
    --cc=Likun.Gao@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=kenneth.feng@amd.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).