diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-07-17 14:10:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-07-18 15:11:47 -0400 |
commit | 8a5b5d425e5454fdef0e5457826f4aa7f96cf463 (patch) | |
tree | 47249aef8147ad27f61df09f5c1952094df9af80 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | 02316e963a5a2217aa13f64bb5fc37a3a6d0f5ef (diff) |
drm/amdgpu/pm: remove check for pp funcs in freq sysfs handlers
The dpm sensor function already does this for us. This fixes
the freq*_input files with the new SMU implementation.
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 10 |
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 397af9094a39..8b7efd0a7028 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -2077,11 +2077,6 @@ static ssize_t amdgpu_hwmon_show_sclk(struct device *dev, | |||
2077 | (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) | 2077 | (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) |
2078 | return -EINVAL; | 2078 | return -EINVAL; |
2079 | 2079 | ||
2080 | /* sanity check PP is enabled */ | ||
2081 | if (!(adev->powerplay.pp_funcs && | ||
2082 | adev->powerplay.pp_funcs->read_sensor)) | ||
2083 | return -EINVAL; | ||
2084 | |||
2085 | /* get the sclk */ | 2080 | /* get the sclk */ |
2086 | r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GFX_SCLK, | 2081 | r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GFX_SCLK, |
2087 | (void *)&sclk, &size); | 2082 | (void *)&sclk, &size); |
@@ -2112,11 +2107,6 @@ static ssize_t amdgpu_hwmon_show_mclk(struct device *dev, | |||
2112 | (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) | 2107 | (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) |
2113 | return -EINVAL; | 2108 | return -EINVAL; |
2114 | 2109 | ||
2115 | /* sanity check PP is enabled */ | ||
2116 | if (!(adev->powerplay.pp_funcs && | ||
2117 | adev->powerplay.pp_funcs->read_sensor)) | ||
2118 | return -EINVAL; | ||
2119 | |||
2120 | /* get the sclk */ | 2110 | /* get the sclk */ |
2121 | r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GFX_MCLK, | 2111 | r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GFX_MCLK, |
2122 | (void *)&mclk, &size); | 2112 | (void *)&mclk, &size); |