drm/amd/pm: bug fix for the runtime pm BACO
Subsystems (3)
Kenneth Feng
maintainerPATCH 1/1 drm/amd/pm: bug fix for the runtime pm BACO
In some systems only MACO is supported. This is to fix the prolbem that runtime pm is enabled but BACO is not supported. MACO will be handled seperately.
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +1 -2
@@ -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 :
Signature · 1 line
2.17.1
[AMD Official Use Only]
Tested and Reviewed-by: Jack Gui <[email protected]>
-----Original Message-----
From: Kenneth Feng <[email protected]>
Sent: Friday, August 6, 2021 10:35 AM
To: [email protected]
Cc: Gui, Jack <[email protected]>; Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/pm: bug fix for the runtime pm BACO
In some systems only MACO is supported. This is to fix the prolbem that runtime pm is enabled but BACO is not supported. MACO will be handled seperately.
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +2 -2
@@ -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 :
--
2.17.1