diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-04-19 15:22:24 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:43:45 -0400 |
commit | 271dc908732b72bb9b1ad22b7cd14e75df3612c5 (patch) | |
tree | 6a27b2c463cce4e87bd2886fa3f50011aaae329b /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | d54bb40f607d40fca60da0613c65005086653300 (diff) |
drm/amdgpu/pm: document pp_dpm_sclk pp_dpm_mclk pp_dpm_pcie (v2)
Used for manually masking dpm states.
v2: drop comment about current state (Rex)
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 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 9982f1b1f8c4..07f2e9606337 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -539,6 +539,23 @@ static ssize_t amdgpu_get_pp_od_clk_voltage(struct device *dev, | |||
539 | 539 | ||
540 | } | 540 | } |
541 | 541 | ||
542 | /** | ||
543 | * DOC: pp_dpm_sclk pp_dpm_mclk pp_dpm_pcie | ||
544 | * | ||
545 | * The amdgpu driver provides a sysfs API for adjusting what power levels | ||
546 | * are enabled for a given power state. The files pp_dpm_sclk, pp_dpm_mclk, | ||
547 | * and pp_dpm_pcie are used for this. | ||
548 | * | ||
549 | * Reading back the files will show you the available power levels within | ||
550 | * the power state and the clock information for those levels. | ||
551 | * | ||
552 | * To manually adjust these states, first select manual using | ||
553 | * power_dpm_force_performance_level. Writing a string of the level | ||
554 | * numbers to the file will select which levels you want to enable. | ||
555 | * E.g., writing 456 to the file will enable levels 4, 5, and 6. | ||
556 | * | ||
557 | */ | ||
558 | |||
542 | static ssize_t amdgpu_get_pp_dpm_sclk(struct device *dev, | 559 | static ssize_t amdgpu_get_pp_dpm_sclk(struct device *dev, |
543 | struct device_attribute *attr, | 560 | struct device_attribute *attr, |
544 | char *buf) | 561 | char *buf) |