drm/amdgpu: Get/set dgpu power cap via hwmon API
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 29 Jan 2018 10:07:01 +0000 (18:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:45 +0000 (14:19 -0500)
commit8d81bce71deed6354f2035b613abf6e3033f34fb
tree42983837a1fd554ef6519c098afe32eb741003e3
parent6ab8555e04ecd2278fdca54c33a7ddac7d4ba5d2
drm/amdgpu: Get/set dgpu power cap via hwmon API

v2: change power unit to microWatt

Adust power limit through power1_cap
Get min/max power limit through power1_cap_min/power1_cap_max

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c