Skip to contentSkip to conversation

drm/amd/powerplay: enable fw ctf,apcc dfll and gfx ss

PATCH In review Kenneth Feng 2 participants 2 messages Jul 16, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/powerplay: enable fw ctf,apcc dfll and gfx ss

enable fw ctf, apcc dfll and gfx ss on navi10.
fw ctf: when the fw ctf is triggered, the gfx and soc power domain are shut down. fan speed is boosted to the maximum.
gfx ss: hardware feature, sanity check has been done.
apcc dfll: can check the scoreboard in smu fw to confirm if it's enabled. no need to do furhter check since the gfx hardware control the frquency once a pcc signal comes.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +5 -6
index 895a4e5..fa636d2 100644
@@ -331,7 +331,10 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
 				| FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT)
 				| FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
 				| FEATURE_MASK(FEATURE_BACO_BIT)
-				| FEATURE_MASK(FEATURE_ACDC_BIT);
+				| FEATURE_MASK(FEATURE_ACDC_BIT)
+				| FEATURE_MASK(FEATURE_GFX_SS_BIT)
+				| FEATURE_MASK(FEATURE_APCC_DFLL_BIT)
+				| FEATURE_MASK(FEATURE_FW_CTF_BIT);
 
 	if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)
 		*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)
@@ -339,8 +342,7 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
 				| FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
 	if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
-		*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_SS_BIT)
-				| FEATURE_MASK(FEATURE_GFXOFF_BIT);
+		*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
 		/* TODO: remove it once fw fix the bug */
 		*(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
 	}
@@ -465,9 +467,6 @@ static int navi10_append_powerplay_table(struct smu_context *smu)
 	smc_pptable->MvddRatio = smc_dpm_table->MvddRatio;
 
 	if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
-		*(uint64_t *)smc_pptable->FeaturesToRun |= FEATURE_MASK(FEATURE_GFX_SS_BIT)
-					| FEATURE_MASK(FEATURE_GFXOFF_BIT);
-
 		/* TODO: remove it once SMU fw fix it */
 		smc_pptable->DebugOverrides |= DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN;
 	}
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1563266951-30106-1-git-send-email-kenneth.feng-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Typo: furhter
With that fixed, the patch is Reviewed-by: Evan Quan <[email protected]>

Quoted 75 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kenneth Feng
Sent: Tuesday, July 16, 2019 4:49 PM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/powerplay: enable fw ctf,apcc dfll and gfx ss

enable fw ctf, apcc dfll and gfx ss on navi10.
fw ctf: when the fw ctf is triggered, the gfx and soc power domain are shut down. fan speed is boosted to the maximum.
gfx ss: hardware feature, sanity check has been done.
apcc dfll: can check the scoreboard in smu fw to confirm if it's enabled. no need to do furhter check since the gfx hardware control the frquency once
a pcc signal comes.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +4 -1
index 895a4e5..fa636d2 100644
@@ -331,7 +331,10 @@ navi10_get_allowed_feature_mask(struct
 smu_context *smu,
 				|
 FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT)
 				|
 FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
 				| FEATURE_MASK(FEATURE_BACO_BIT)
-				| FEATURE_MASK(FEATURE_ACDC_BIT);
+				| FEATURE_MASK(FEATURE_ACDC_BIT)
+				| FEATURE_MASK(FEATURE_GFX_SS_BIT)
+				| FEATURE_MASK(FEATURE_APCC_DFLL_BIT)
+				| FEATURE_MASK(FEATURE_FW_CTF_BIT);
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +0 -0
 	if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)
 		*(uint64_t *)feature_mask |=

FEATURE_MASK(FEATURE_DPM_UCLK_BIT)

drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -2
@@ -339,8 +342,7 @@ navi10_get_allowed_feature_mask(struct
 smu_context *smu,
 				|
 FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
 	if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
-		*(uint64_t *)feature_mask |=
 FEATURE_MASK(FEATURE_GFX_SS_BIT)
-				| FEATURE_MASK(FEATURE_GFXOFF_BIT);
+		*(uint64_t *)feature_mask |=

FEATURE_MASK(FEATURE_GFXOFF_BIT);

drivers/gpu/drm/amd/powerplay/navi10_ppt.c +0 -0
 		/* TODO: remove it once fw fix the bug */
 		*(uint64_t *)feature_mask &=

~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);

drivers/gpu/drm/amd/powerplay/navi10_ppt.c +0 -3
 	}
@@ -465,9 +467,6 @@ static int navi10_append_powerplay_table(struct
 smu_context *smu)
 	smc_pptable->MvddRatio = smc_dpm_table->MvddRatio;
 
 	if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
-		*(uint64_t *)smc_pptable->FeaturesToRun |=
 FEATURE_MASK(FEATURE_GFX_SS_BIT)
-					|
 FEATURE_MASK(FEATURE_GFXOFF_BIT);
-
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +0 -0
 		/* TODO: remove it once SMU fw fix it */
 		smc_pptable->DebugOverrides |=

DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN;
}
--
2.7.4

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx