drm/amdgpu: add powerplay sclk OD support through sysfs (v2)
authorEric Huang <JinHuiEric.Huang@amd.com>
Thu, 12 May 2016 18:51:21 +0000 (14:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:50:40 +0000 (14:50 -0400)
commit428bafa86c99f1888254aec63bbcb1a2001e8770
tree0f661e0245d686d184a8d38c5b750e7ef0734187
parentb2ea0dcd2790949802230bada9416d2362280138
drm/amdgpu: add powerplay sclk OD support through sysfs (v2)

Add a new sysfs entry pp_sclk_od to support sclk overdrive(OD) overclocking,
the entry is read/write, the value of input/output is an integer which is the
over percentage of the highest sclk.

v2: drop extra semicolon

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h