]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/pm: bug fix for the runtime pm BACO
authorKenneth Feng <kenneth.feng@amd.com>
Fri, 6 Aug 2021 02:28:04 +0000 (10:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Aug 2021 20:12:07 +0000 (16:12 -0400)
In some systems only MACO is supported. This is to fix the problem
that runtime pm is enabled but BACO is not supported. MACO will be
handled seperately.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

index 90e40aacb8f690c14402dcb86d91312f8b6940c3..261ef8ca862e1b14101d2dacf803ddc071e7c35c 100644 (file)
@@ -353,8 +353,7 @@ static void sienna_cichlid_check_bxco_support(struct smu_context *smu)
        struct amdgpu_device *adev = smu->adev;
        uint32_t val;
 
-       if (powerplay_table->platform_caps & SMU_11_0_7_PP_PLATFORM_CAP_BACO ||
-           powerplay_table->platform_caps & SMU_11_0_7_PP_PLATFORM_CAP_MACO) {
+       if (powerplay_table->platform_caps & SMU_11_0_7_PP_PLATFORM_CAP_BACO) {
                val = RREG32_SOC15(NBIO, 0, mmRCC_BIF_STRAP0);
                smu_baco->platform_support =
                        (val & RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK) ? true :