projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
605ed21
)
amd/powerplay: don't enable ucode fan control if vbios has no fan table
author
Alex Deucher
<
[email protected]
>
Sat, 19 Dec 2015 23:26:55 +0000
(18:26 -0500)
committer
Alex Deucher
<
[email protected]
>
Mon, 21 Dec 2015 21:42:58 +0000
(16:42 -0500)
Some systems have a single fan controlled by ACPI or some other
method.
Reviewed-by: Tom St Denis <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c
index 5da758674a48bbfe377dc73e2801804a17f11725..2e159b003e71cd8b65068e554db74db4f1c3b2c2 100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c
+++ b/
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c
@@
-371,6
+371,9
@@
int tf_tonga_thermal_setup_fan_table(struct pp_hwmgr *hwmgr, void *input, void *
int res;
uint64_t tmp64;
+ if (!phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_MicrocodeFanControl))
+ return 0;
+
if (0 == data->fan_table_start) {
phm_cap_unset(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_MicrocodeFanControl);
return 0;