aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2018-09-13 04:14:33 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-09-19 13:37:55 -0400
commitb1f82cb21231ccfec3c15b628f8deed778cce22b (patch)
tree35186e49e0ef6f21a65895b196d9ca370716c083 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parent8a1304a5b4310b941d08c988326d15673ed0f689 (diff)
drm/amd/powerplay: update OD to take voltage value instead of offset
With the latest SMC fw, we are able to get the voltage value for specific frequency point. So, we update the OD relates to take absolute voltage instead of offset. Signed-off-by: Evan Quan <evan.quan@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/amdgpu/amdgpu_pm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
index 396c826100e6..8c334fc808c2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
@@ -502,7 +502,7 @@ static ssize_t amdgpu_set_pp_table(struct device *dev,
502 * 502 *
503 * - maximum memory clock labeled OD_MCLK 503 * - maximum memory clock labeled OD_MCLK
504 * 504 *
505 * - three <frequency, voltage offset> points labeled OD_VDDC_CURVE. 505 * - three <frequency, voltage> points labeled OD_VDDC_CURVE.
506 * They can be used to calibrate the sclk voltage curve. 506 * They can be used to calibrate the sclk voltage curve.
507 * 507 *
508 * - a list of valid ranges for sclk, mclk, and voltage curve points 508 * - a list of valid ranges for sclk, mclk, and voltage curve points
@@ -519,11 +519,11 @@ static ssize_t amdgpu_set_pp_table(struct device *dev,
519 * "m 1 800" will update maximum mclk to be 800Mhz. 519 * "m 1 800" will update maximum mclk to be 800Mhz.
520 * 520 *
521 * For sclk voltage curve, enter the new values by writing a 521 * For sclk voltage curve, enter the new values by writing a
522 * string that contains "vc point clock voff" to the file. The 522 * string that contains "vc point clock voltage" to the file. The
523 * points are indexed by 0, 1 and 2. E.g., "vc 0 300 10" will 523 * points are indexed by 0, 1 and 2. E.g., "vc 0 300 600" will
524 * update point1 with clock set as 300Mhz and voltage increased 524 * update point1 with clock set as 300Mhz and voltage as
525 * by 10mV. "vc 2 1000 -10" will update point3 with clock set 525 * 600mV. "vc 2 1000 1000" will update point3 with clock set
526 * as 1000Mhz and voltage drop by 10mV. 526 * as 1000Mhz and voltage 1000mV.
527 * 527 *
528 * - When you have edited all of the states as needed, write "c" (commit) 528 * - When you have edited all of the states as needed, write "c" (commit)
529 * to the file to commit your changes 529 * to the file to commit your changes