]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit014c4440161b96ad237b1795f9dfdff24c419342
treeb489cc7006fecb83941a5415ab65b68e840642a7
parent3ac4ffdd13fe74d1164ca61cdc6c7e8d8bfd6a70
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