Skip to content

Commit 972fb53

Browse files
Guchun Chenalexdeucher
authored andcommitted
drm/amd/pm/smu13: BACO is supported when it's in BACO state
This leverages the logic in smu11. No need to talk to SMU to check BACO enablement as it's in BACO state already. Signed-off-by: Guchun Chen <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.0, 6.1
1 parent ba029e9 commit 972fb53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,10 @@ bool smu_v13_0_baco_is_support(struct smu_context *smu)
22982298
!smu_baco->platform_support)
22992299
return false;
23002300

2301+
/* return true if ASIC is in BACO state already */
2302+
if (smu_v13_0_baco_get_state(smu) == SMU_BACO_STATE_ENTER)
2303+
return true;
2304+
23012305
if (smu_cmn_feature_is_supported(smu, SMU_FEATURE_BACO_BIT) &&
23022306
!smu_cmn_feature_is_enabled(smu, SMU_FEATURE_BACO_BIT))
23032307
return false;

0 commit comments

Comments
 (0)