diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-04-19 14:56:41 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:43:44 -0400 |
commit | ca8d40ca194dfb573e59a5e42b88da83e63a6630 (patch) | |
tree | b6ca5f0bd38246d42c5c38f560cd614941671712 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | 8567f68147de1f09cc868b52b02a0c11dc048206 (diff) |
drm/amdgpu/pm: document power_dpm_state
This is a legacy file and is only provided for
backwards compatibility.
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Huang Rui <ray.huang@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 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index ee11e92cc4d2..e33e0f4c4a28 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -77,6 +77,37 @@ void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev) | |||
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||
80 | /** | ||
81 | * DOC: power_dpm_state | ||
82 | * | ||
83 | * This is a legacy interface and is only provided for backwards compatibility. | ||
84 | * The amdgpu driver provides a sysfs API for adjusting certain power | ||
85 | * related parameters. The file power_dpm_state is used for this. | ||
86 | * It accepts the following arguments: | ||
87 | * - battery | ||
88 | * - balanced | ||
89 | * - performance | ||
90 | * | ||
91 | * battery | ||
92 | * | ||
93 | * On older GPUs, the vbios provided a special power state for battery | ||
94 | * operation. Selecting battery switched to this state. This is no | ||
95 | * longer provided on newer GPUs so the option does nothing in that case. | ||
96 | * | ||
97 | * balanced | ||
98 | * | ||
99 | * On older GPUs, the vbios provided a special power state for balanced | ||
100 | * operation. Selecting balanced switched to this state. This is no | ||
101 | * longer provided on newer GPUs so the option does nothing in that case. | ||
102 | * | ||
103 | * performance | ||
104 | * | ||
105 | * On older GPUs, the vbios provided a special power state for performance | ||
106 | * operation. Selecting performance switched to this state. This is no | ||
107 | * longer provided on newer GPUs so the option does nothing in that case. | ||
108 | * | ||
109 | */ | ||
110 | |||
80 | static ssize_t amdgpu_get_dpm_state(struct device *dev, | 111 | static ssize_t amdgpu_get_dpm_state(struct device *dev, |
81 | struct device_attribute *attr, | 112 | struct device_attribute *attr, |
82 | char *buf) | 113 | char *buf) |