artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7db262e
)
swsmu/amdgpu_smu: Fix the wrong if-condition
author
jsg
<jsg@openbsd.org>
Fri, 12 May 2023 11:01:48 +0000
(11:01 +0000)
committer
jsg
<jsg@openbsd.org>
Fri, 12 May 2023 11:01:48 +0000
(11:01 +0000)
From Yu Songping
d78777c1d4de809d8bc9efc697cb636cbe8e32c2
in linux-6.1.y/6.1.28
484d7dcc709da46a5976c9530eeff931e9ecba82
in mainline linux
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
b/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
index
1e071db
..
2e0eb7d
100644
(file)
--- a/
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
@@
-161,7
+161,7
@@
int smu_get_dpm_freq_range(struct smu_context *smu,
int smu_set_gfx_power_up_by_imu(struct smu_context *smu)
{
- if (!smu->ppt_funcs
&&
!smu->ppt_funcs->set_gfx_power_up_by_imu)
+ if (!smu->ppt_funcs
||
!smu->ppt_funcs->set_gfx_power_up_by_imu)
return -EOPNOTSUPP;
return smu->ppt_funcs->set_gfx_power_up_by_imu(smu);