]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb9425d15e3ae24e885a7b29711cc8979f8ba18c
tree42983837a1fd554ef6519c098afe32eb741003e3
parent10701c59d595cbcef431ed916f01877cd1d81741
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