diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-04-19 15:02:52 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:43:45 -0400 |
commit | d54bb40f607d40fca60da0613c65005086653300 (patch) | |
tree | 7bc96946387d72f068999e2ca71842abb6bf391c /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | ca8d40ca194dfb573e59a5e42b88da83e63a6630 (diff) |
drm/amdgpu/pm: document pp_table
This file is for uploading new powerplay tables.
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index e33e0f4c4a28..9982f1b1f8c4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -408,6 +408,17 @@ fail: | |||
408 | return count; | 408 | return count; |
409 | } | 409 | } |
410 | 410 | ||
411 | /** | ||
412 | * DOC: pp_table | ||
413 | * | ||
414 | * The amdgpu driver provides a sysfs API for uploading new powerplay | ||
415 | * tables. The file pp_table is used for this. Reading the file | ||
416 | * will dump the current power play table. Writing to the file | ||
417 | * will attempt to upload a new powerplay table and re-initialize | ||
418 | * powerplay using that new table. | ||
419 | * | ||
420 | */ | ||
421 | |||
411 | static ssize_t amdgpu_get_pp_table(struct device *dev, | 422 | static ssize_t amdgpu_get_pp_table(struct device *dev, |
412 | struct device_attribute *attr, | 423 | struct device_attribute *attr, |
413 | char *buf) | 424 | char *buf) |