drm/amd/powerplay: enable BACO for sienna_cichlid
authorLikun Gao <Likun.Gao@amd.com>
Mon, 23 Mar 2020 03:29:20 +0000 (11:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:11 +0000 (01:59 -0400)
Enable BACO for sienna_cichlid.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c

index 80a099877a681bd3240d8fc26bd12d097b8b3280..e0067921a3e9e28fe578129f6124bbc1914548fc 100644 (file)
@@ -103,6 +103,7 @@ static struct smu_11_0_cmn2aisc_mapping sienna_cichlid_message_map[SMU_MSG_MAX_C
        MSG_MAP(PowerUpJpeg,                    PPSMC_MSG_PowerUpJpeg),
        MSG_MAP(PowerDownJpeg,                  PPSMC_MSG_PowerDownJpeg),
        MSG_MAP(BacoAudioD3PME,                 PPSMC_MSG_BacoAudioD3PME),
+       MSG_MAP(ArmD3,                          PPSMC_MSG_ArmD3),
 };
 
 static struct smu_11_0_cmn2aisc_mapping sienna_cichlid_clk_map[SMU_CLK_COUNT] = {
@@ -304,6 +305,7 @@ sienna_cichlid_get_allowed_feature_mask(struct smu_context *smu,
                                | FEATURE_MASK(FEATURE_VR0HOT_BIT)
                                | FEATURE_MASK(FEATURE_PPT_BIT)
                                | FEATURE_MASK(FEATURE_TDC_BIT)
+                               | FEATURE_MASK(FEATURE_BACO_BIT)
                                | FEATURE_MASK(FEATURE_FAN_CONTROL_BIT)
                                | FEATURE_MASK(FEATURE_THERMAL_BIT);