diff options
| author | Ma Jun <[email protected]> | 2023-09-07 15:33:12 +0800 | 
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-09-26 17:00:21 -0400 | 
| commit | f7f9e48fa8d53159b6d27d2a809031c7718a305d (patch) | |
| tree | e31bf5ff15af99926fea5987d8b5b032b15166b8 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
| parent | 072ae240cd113978657037f3fb701e9efaf6da9b (diff) | |
drm/amd/pm: Add reset option for fan_curve on smu13_0_0
Add reset option for fan_curve.
User can use command "echo r > fan_cure" to reset the fan_curve
to boot value
Signed-off-by: Ma Jun <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/amdgpu_pm.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 5f9e3737243e..2d19282e4fbe 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -3446,6 +3446,11 @@ static int parse_input_od_command_lines(const char *buf,  	case 'c':  		*type = PP_OD_COMMIT_DPM_TABLE;  		return 0; +	case 'r': +		params[parameter_size] = *type; +		*num_of_params = 1; +		*type = PP_OD_RESTORE_DEFAULT_TABLE; +		return 0;  	default:  		break;  	} @@ -3540,6 +3545,9 @@ err_out0:   * 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 + *   * There are two fan control modes supported: auto and manual. With auto mode,   * PMFW handles the fan speed control(how fan speed reacts to ASIC temperature).   * While with manual mode, users can set their own fan curve line as what  |