diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-12-20 00:26:55 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 22:42:58 +0100 |
commit | 45b0cf54bc5da284afc86fad97e1c8b1bbe26d73 (patch) | |
tree | 8870af3dce5887ea738255805234c470c246135f /drivers/gpu/drm/amd/powerplay/hwmgr | |
parent | drm/amd/powerplay: show gpu load when print gpu performance for Cz. (v2) (diff) | |
download | linux-45b0cf54bc5da284afc86fad97e1c8b1bbe26d73.tar.xz linux-45b0cf54bc5da284afc86fad97e1c8b1bbe26d73.zip |
amd/powerplay: don't enable ucode fan control if vbios has no fan table
Some systems have a single fan controlled by ACPI or some other
method.
Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c index 5da758674a48..2e159b003e71 100644 --- 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; |