artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b26ab6c
)
drm/amd/pm/smu13: BACO is supported when it's in BACO state
author
jsg
<jsg@openbsd.org>
Wed, 18 Jan 2023 23:51:35 +0000
(23:51 +0000)
committer
jsg
<jsg@openbsd.org>
Wed, 18 Jan 2023 23:51:35 +0000
(23:51 +0000)
From Guchun Chen
b8e6fc445990dce368950bd9553b31f46b50285e
in linux-6.1.y/6.1.7
972fb53d3605eb6cdf0d6ae9a52e910626a91ff7
in mainline linux
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
index
53c69a3
..
2559119
100644
(file)
--- a/
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
+++ b/
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
@@
-2249,6
+2249,10
@@
bool smu_v13_0_baco_is_support(struct smu_context *smu)
!smu_baco->platform_support)
return false;
+ /* return true if ASIC is in BACO state already */
+ if (smu_v13_0_baco_get_state(smu) == SMU_BACO_STATE_ENTER)
+ return true;
+
if (smu_cmn_feature_is_supported(smu, SMU_FEATURE_BACO_BIT) &&
!smu_cmn_feature_is_enabled(smu, SMU_FEATURE_BACO_BIT))
return false;