AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Huang <tim.huang@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Alexander.Deucher@amd.com, Yifan1.zhang@amd.com,
	Xiaojian.Du@amd.com, Tim Huang <tim.huang@amd.com>
Subject: [PATCH 6/7] drm/amdgpu: enable HDP IP v5.2.1 Clock Gating
Date: Thu, 11 Aug 2022 12:58:03 +0800	[thread overview]
Message-ID: <20220811045804.3750344-6-tim.huang@amd.com> (raw)
In-Reply-To: <20220811045804.3750344-1-tim.huang@amd.com>

Enable AMD_CG_SUPPORT_HDP_MGCG and AMD_CG_SUPPORT_HDP_LS support.

Signed-off-by: Tim Huang <tim.huang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 543cf40adf8e..d9e5bae82e83 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -598,6 +598,8 @@ static int soc21_common_early_init(void *handle)
 			AMD_CG_SUPPORT_GFX_PERF_CLK |
 			AMD_CG_SUPPORT_MC_MGCG |
 			AMD_CG_SUPPORT_MC_LS |
+			AMD_CG_SUPPORT_HDP_MGCG |
+			AMD_CG_SUPPORT_HDP_LS |
 			AMD_CG_SUPPORT_VCN_MGCG |
 			AMD_CG_SUPPORT_JPEG_MGCG;
 		adev->pg_flags =
@@ -704,6 +706,10 @@ static int soc21_common_set_clockgating_state(void *handle,
 		adev->hdp.funcs->update_clock_gating(adev,
 				state == AMD_CG_STATE_GATE);
 		break;
+	case IP_VERSION(7, 7, 0):
+		adev->hdp.funcs->update_clock_gating(adev,
+				state == AMD_CG_STATE_GATE);
+		break;
 	default:
 		break;
 	}
-- 
2.25.1


  parent reply	other threads:[~2022-08-11  4:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-11  4:57 [PATCH 1/7] drm/amd/pm: update the smu driver interface version for SMU IP v13.0.4 Tim Huang
2022-08-11  4:57 ` [PATCH 2/7] drm/amdgpu: add MMHUB IP v3.0.1 Clock Gating support Tim Huang
2022-08-11  4:58 ` [PATCH 3/7] drm/amdgpu: add HDP IP v5.2.1 " Tim Huang
2022-08-11  4:58 ` [PATCH 4/7] drm/amdgpu: add ATHUB IP v3.0.1 " Tim Huang
2022-08-11  4:58 ` [PATCH 5/7] drm/amdgpu: enable MMHUB IP v3.0.1 Clock Gating Tim Huang
2022-08-11  4:58 ` Tim Huang [this message]
2022-08-11  4:58 ` [PATCH 7/7] drm/amdgpu: enable ATHUB " Tim Huang
2022-08-11 13:14   ` Deucher, Alexander

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=20220811045804.3750344-6-tim.huang@amd.com \
    --to=tim.huang@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Xiaojian.Du@amd.com \
    --cc=Yifan1.zhang@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