summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRex Zhu2018-10-05 18:11:25 +0200
committerAlex Deucher2018-10-10 00:05:12 +0200
commita57ba84b149cfeca133ea11f253049eac5f9c1a9 (patch)
tree3f98a34b48515c115bb4b63178c9309d4441499e /drivers/gpu
parentdrm/amdgpu: Disable sysfs pwm1 if not in manual fan control (diff)
downloadkernel-qcow2-linux-a57ba84b149cfeca133ea11f253049eac5f9c1a9.tar.gz
kernel-qcow2-linux-a57ba84b149cfeca133ea11f253049eac5f9c1a9.tar.xz
kernel-qcow2-linux-a57ba84b149cfeca133ea11f253049eac5f9c1a9.zip
drm/amdgpu: Always enable fan sensors for read
don't need to set fan1_enable to read fan sensors. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
index 68548fbdee09..94055a485e01 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
@@ -1179,11 +1179,6 @@ static ssize_t amdgpu_hwmon_get_fan1_input(struct device *dev,
struct amdgpu_device *adev = dev_get_drvdata(dev);
int err;
u32 speed = 0;
- u32 pwm_mode;
-
- pwm_mode = amdgpu_dpm_get_fan_control_mode(adev);
- if (pwm_mode != AMD_FAN_CTRL_MANUAL)
- return -ENODATA;
/* Can't adjust fan when the card is off */
if ((adev->flags & AMD_IS_PX) &&
@@ -1246,11 +1241,6 @@ static ssize_t amdgpu_hwmon_get_fan1_target(struct device *dev,
struct amdgpu_device *adev = dev_get_drvdata(dev);
int err;
u32 rpm = 0;
- u32 pwm_mode;
-
- pwm_mode = amdgpu_dpm_get_fan_control_mode(adev);
- if (pwm_mode != AMD_FAN_CTRL_MANUAL)
- return -ENODATA;
/* Can't adjust fan when the card is off */
if ((adev->flags & AMD_IS_PX) &&