* [PATCH 1/4] drm/amdgpu: enable GFX IP v11.0.4 CG support
@ 2022-12-05 9:41 Tim Huang
2022-12-05 9:41 ` [PATCH 2/4] drm/amdgpu: enable GFX Power Gating for GC IP v11.0.4 Tim Huang
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Tim Huang @ 2022-12-05 9:41 UTC (permalink / raw)
To: amd-gfx; +Cc: Alexander.Deucher, Yifan1.zhang, li.ma, Xiaojian.Du, Tim Huang
Add CG support for GFX/MC/HDP/ATHUB/IH/BIF.
Signed-off-by: Tim Huang <tim.huang@amd.com>
---
drivers/gpu/drm/amd/amdgpu/soc21.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 41b94c824717..7d5fdf450d0c 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -647,7 +647,23 @@ static int soc21_common_early_init(void *handle)
adev->external_rev_id = adev->rev_id + 0x20;
break;
case IP_VERSION(11, 0, 4):
- adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
+ 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_MC_MGCG |
+ AMD_CG_SUPPORT_MC_LS |
+ AMD_CG_SUPPORT_HDP_MGCG |
+ AMD_CG_SUPPORT_HDP_LS |
+ 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 |
+ AMD_CG_SUPPORT_VCN_MGCG |
AMD_CG_SUPPORT_JPEG_MGCG;
adev->pg_flags = AMD_PG_SUPPORT_VCN |
AMD_PG_SUPPORT_GFX_PG |
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] drm/amdgpu: enable GFX Power Gating for GC IP v11.0.4
2022-12-05 9:41 [PATCH 1/4] drm/amdgpu: enable GFX IP v11.0.4 CG support Tim Huang
@ 2022-12-05 9:41 ` Tim Huang
2022-12-05 9:41 ` [PATCH 3/4] drm/amdgpu: enable GFX Clock Gating control " Tim Huang
2022-12-05 9:41 ` [PATCH 4/4] drm/amdgpu: add tmz support " Tim Huang
2 siblings, 0 replies; 5+ messages in thread
From: Tim Huang @ 2022-12-05 9:41 UTC (permalink / raw)
To: amd-gfx; +Cc: Alexander.Deucher, Yifan1.zhang, li.ma, Xiaojian.Du, Tim Huang
Enable GFX Power Gating control for GC IP v11.0.4.
Signed-off-by: Tim Huang <tim.huang@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index bf78440e1e70..506c285d5f49 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -5058,6 +5058,7 @@ static void gfx_v11_cntl_power_gating(struct amdgpu_device *adev, bool enable)
if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG)) {
switch (adev->ip_versions[GC_HWIP][0]) {
case IP_VERSION(11, 0, 1):
+ case IP_VERSION(11, 0, 4):
WREG32_SOC15(GC, 0, regRLC_PG_DELAY_3, RLC_PG_DELAY_3_DEFAULT_GC_11_0_1);
break;
default:
@@ -5091,6 +5092,7 @@ static int gfx_v11_0_set_powergating_state(void *handle,
amdgpu_gfx_off_ctrl(adev, enable);
break;
case IP_VERSION(11, 0, 1):
+ case IP_VERSION(11, 0, 4):
gfx_v11_cntl_pg(adev, enable);
amdgpu_gfx_off_ctrl(adev, enable);
break;
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] drm/amdgpu: enable GFX Clock Gating control for GC IP v11.0.4
2022-12-05 9:41 [PATCH 1/4] drm/amdgpu: enable GFX IP v11.0.4 CG support Tim Huang
2022-12-05 9:41 ` [PATCH 2/4] drm/amdgpu: enable GFX Power Gating for GC IP v11.0.4 Tim Huang
@ 2022-12-05 9:41 ` Tim Huang
2022-12-05 9:41 ` [PATCH 4/4] drm/amdgpu: add tmz support " Tim Huang
2 siblings, 0 replies; 5+ messages in thread
From: Tim Huang @ 2022-12-05 9:41 UTC (permalink / raw)
To: amd-gfx; +Cc: Alexander.Deucher, Yifan1.zhang, li.ma, Xiaojian.Du, Tim Huang
Enable GFX IP v11.0.4 CG gate/ungate control.
Signed-off-by: Tim Huang <tim.huang@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index 506c285d5f49..a56c6e106d00 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -5116,6 +5116,7 @@ static int gfx_v11_0_set_clockgating_state(void *handle,
case IP_VERSION(11, 0, 1):
case IP_VERSION(11, 0, 2):
case IP_VERSION(11, 0, 3):
+ case IP_VERSION(11, 0, 4):
gfx_v11_0_update_gfx_clock_gating(adev,
state == AMD_CG_STATE_GATE);
break;
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] drm/amdgpu: add tmz support for GC IP v11.0.4
2022-12-05 9:41 [PATCH 1/4] drm/amdgpu: enable GFX IP v11.0.4 CG support Tim Huang
2022-12-05 9:41 ` [PATCH 2/4] drm/amdgpu: enable GFX Power Gating for GC IP v11.0.4 Tim Huang
2022-12-05 9:41 ` [PATCH 3/4] drm/amdgpu: enable GFX Clock Gating control " Tim Huang
@ 2022-12-05 9:41 ` Tim Huang
2022-12-05 15:41 ` Alex Deucher
2 siblings, 1 reply; 5+ messages in thread
From: Tim Huang @ 2022-12-05 9:41 UTC (permalink / raw)
To: amd-gfx; +Cc: Alexander.Deucher, Yifan1.zhang, li.ma, Xiaojian.Du, Tim Huang
Add tmz support for GC 11.0.4.
Signed-off-by: Tim Huang <tim.huang@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
index e970e3760cec..02a4c93673ce 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
@@ -549,6 +549,7 @@ void amdgpu_gmc_tmz_set(struct amdgpu_device *adev)
/* YELLOW_CARP*/
case IP_VERSION(10, 3, 3):
case IP_VERSION(11, 0, 1):
+ case IP_VERSION(11, 0, 4):
/* Don't enable it by default yet.
*/
if (amdgpu_tmz < 1) {
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 4/4] drm/amdgpu: add tmz support for GC IP v11.0.4
2022-12-05 9:41 ` [PATCH 4/4] drm/amdgpu: add tmz support " Tim Huang
@ 2022-12-05 15:41 ` Alex Deucher
0 siblings, 0 replies; 5+ messages in thread
From: Alex Deucher @ 2022-12-05 15:41 UTC (permalink / raw)
To: Tim Huang; +Cc: Alexander.Deucher, Yifan1.zhang, Xiaojian.Du, li.ma, amd-gfx
Series is:
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
On Mon, Dec 5, 2022 at 4:43 AM Tim Huang <tim.huang@amd.com> wrote:
>
> Add tmz support for GC 11.0.4.
>
> Signed-off-by: Tim Huang <tim.huang@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> index e970e3760cec..02a4c93673ce 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> @@ -549,6 +549,7 @@ void amdgpu_gmc_tmz_set(struct amdgpu_device *adev)
> /* YELLOW_CARP*/
> case IP_VERSION(10, 3, 3):
> case IP_VERSION(11, 0, 1):
> + case IP_VERSION(11, 0, 4):
> /* Don't enable it by default yet.
> */
> if (amdgpu_tmz < 1) {
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-05 15:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-05 9:41 [PATCH 1/4] drm/amdgpu: enable GFX IP v11.0.4 CG support Tim Huang
2022-12-05 9:41 ` [PATCH 2/4] drm/amdgpu: enable GFX Power Gating for GC IP v11.0.4 Tim Huang
2022-12-05 9:41 ` [PATCH 3/4] drm/amdgpu: enable GFX Clock Gating control " Tim Huang
2022-12-05 9:41 ` [PATCH 4/4] drm/amdgpu: add tmz support " Tim Huang
2022-12-05 15:41 ` Alex Deucher
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.