]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: implement power1_cap and power1_cap_max interface for SMU11 (v2)
authorChengming Gui <Jack.Gui@amd.com>
Tue, 22 Jan 2019 09:56:16 +0000 (17:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:01 +0000 (15:04 -0500)
commita8ed2e2c82f0c9e103d4b94f5c48a4ed9e3e90b1
treeb489cc7006fecb83941a5415ab65b68e840642a7
parent3d0fea0cdbe66028765287a8201492076870207d
drm/amd/powerplay: implement power1_cap and power1_cap_max interface for SMU11 (v2)

add get_power_limit and set_power_limit functions
to support hwmon for SMU11.

v2: fix the code style issue.

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c