drm/amd/pm: enable ACDC feature
Subsystems (3)
Kenneth Feng
maintainerPATCH 1/1 drm/amd/pm: enable ACDC feature
The power limit and clock ragne are different in AC mode and DC mode. Firmware does the setting after this feature is enabled. Applied on mobile skus.
Signed-off-by Kenneth Feng <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +3 -0
@@ -261,6 +261,9 @@ sienna_cichlid_get_allowed_feature_mask(struct smu_context *smu, *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_DPM_GFX_GPO_BIT ); } +if (smu->dc_controlled_by_gpio) + *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_ACDC_BIT ); +if ((adev->pm.pp_feature &PP_GFX_DCS_MASK ) && adev->asic_type >CHIP_SIENNA_CICHLID ) *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_GFX_DCS_BIT );
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 6 lines · Kenneth Feng
The power limit and clock ragne are different in AC mode and DC mode. Firmware does the setting after this feature is enabled. Applied on mobile skus.
Signed-off-by Kenneth Feng <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 21 lines
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +3
-1@@ -261,6 +261,9 @@ sienna_cichlid_get_allowed_feature_mask(struct smu_context *smu, *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_DPM_GFX_GPO_BIT ); } +if (smu->dc_controlled_by_gpio) + *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_ACDC_BIT ); +if ((adev->pm.pp_feature &PP_GFX_DCS_MASK ) && adev->asic_type >CHIP_SIENNA_CICHLID ) *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_GFX_DCS_BIT ); --2.17.1
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