summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/amdgpu_pm.c
diff options
context:
space:
mode:
authorMa Jun <Jun.Ma2@amd.com>2023-09-13 08:25:38 +0200
committerAlex Deucher <alexander.deucher@amd.com>2023-10-13 17:27:04 +0200
commit1007bc36ecb15e1745533bd0c4c1050c65337bf7 (patch)
treef6a152d6f63299a838edae553b3cc05676a918ea /drivers/gpu/drm/amd/pm/amdgpu_pm.c
parentRevert "drm/amd/display: Create amdgpu_dm_wb_connector" (diff)
downloadlinux-1007bc36ecb15e1745533bd0c4c1050c65337bf7.tar.xz
linux-1007bc36ecb15e1745533bd0c4c1050c65337bf7.zip
drm/amd/pm: Add reset option for fan_ctrl interfaces
Add reset option for fan_ctrl interfaces. For example: User can use the "echo r > acoustic_limit_rpm_threshold" command to reset acoustic_limit_rpm_threshold to boot value Signed-off-by: Ma Jun <Jun.Ma2@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
-rw-r--r--drivers/gpu/drm/amd/pm/amdgpu_pm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 4c65a2fac028..c7c29aa24c36 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
@@ -3680,6 +3680,9 @@ static umode_t fan_curve_visible(struct amdgpu_device *adev)
* When you have finished the editing, write "c" (commit) to the file to commit
* your changes.
*
+ * If you want to reset to the default value, write "r" (reset) to the file to
+ * reset them
+ *
* This setting works under auto fan control mode only. It adjusts the PMFW's
* behavior about the maximum speed in RPM the fan can spin. Setting via this
* interface will switch the fan control to auto mode implicitly.
@@ -3735,6 +3738,9 @@ static umode_t acoustic_limit_threshold_visible(struct amdgpu_device *adev)
* When you have finished the editing, write "c" (commit) to the file to commit
* your changes.
*
+ * If you want to reset to the default value, write "r" (reset) to the file to
+ * reset them
+ *
* This setting works under auto fan control mode only. It can co-exist with
* other settings which can work also under auto mode. It adjusts the PMFW's
* behavior about the maximum speed in RPM the fan can spin when ASIC
@@ -3792,6 +3798,9 @@ static umode_t acoustic_target_threshold_visible(struct amdgpu_device *adev)
* When you have finished the editing, write "c" (commit) to the file to commit
* your changes.
*
+ * If you want to reset to the default value, write "r" (reset) to the file to
+ * reset them
+ *
* This setting works under auto fan control mode only. It can co-exist with
* other settings which can work also under auto mode. Paring with the
* acoustic_target_rpm_threshold setting, they define the maximum speed in
@@ -3850,6 +3859,9 @@ static umode_t fan_target_temperature_visible(struct amdgpu_device *adev)
* When you have finished the editing, write "c" (commit) to the file to commit
* your changes.
*
+ * If you want to reset to the default value, write "r" (reset) to the file to
+ * reset them
+ *
* This setting works under auto fan control mode only. It can co-exist with
* other settings which can work also under auto mode. It adjusts the PMFW's
* behavior about the minimum fan speed in PWM the fan should spin. Setting