drm/amd/powerplay: enable BACO feature as WAR
authorJack Xiao <Jack.Xiao@amd.com>
Sat, 1 Jun 2019 02:35:12 +0000 (10:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:33 +0000 (18:59 -0500)
It would hit SMU fw bug without BACO enablement when audio
driver put audio device to D3 state. Before the bug in SMU fw
get fixed, enable BACO feature as WAR.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c

index 425523381f625b193cb44110d26b4c2506fefc49..b58ee09a589893aaee2e3261ae29adb891fbb6ac 100644 (file)
@@ -331,6 +331,7 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                | FEATURE_MASK(FEATURE_DS_GFXCLK_BIT)
                                | FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT)
                                | FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
+                               | FEATURE_MASK(FEATURE_BACO_BIT)
                                | FEATURE_MASK(FEATURE_ACDC_BIT);
 
        if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)