On Tue, Jul 19, 2022 at 9:17 AM Kenneth Feng <kenneth.feng@xxxxxxx> wrote: > > enable gfx ulv and gpo on smu_v13_0_7 > > Signed-off-by: Kenneth Feng <kenneth.feng@xxxxxxx> Acked-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c > index 6f0548714566..16eea2de8a2d 100644 > --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c > +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c > @@ -251,6 +251,7 @@ smu_v13_0_7_get_allowed_feature_mask(struct smu_context *smu, > if (adev->pm.pp_feature & PP_SCLK_DPM_MASK) { > *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_GFXCLK_BIT); > *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_IMU_BIT); > + *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_GFX_POWER_OPTIMIZER_BIT); > } > > if (adev->pm.pp_feature & PP_GFXOFF_MASK) > @@ -271,6 +272,9 @@ smu_v13_0_7_get_allowed_feature_mask(struct smu_context *smu, > if (adev->pm.pp_feature & PP_SCLK_DEEP_SLEEP_MASK) > *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DS_GFXCLK_BIT); > > + if (adev->pm.pp_feature & PP_ULV_MASK) > + *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_ULV_BIT); > + > *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DS_LCLK_BIT); > *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_MP0CLK_BIT); > *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MM_DPM_BIT); > -- > 2.25.1 >