OSDN Git Service

drm/amd/swSMU: add callback to set AC/DC power source (v2)
authorEvan Quan <evan.quan@amd.com>
Fri, 20 Mar 2020 18:03:25 +0000 (14:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Mar 2020 21:00:11 +0000 (17:00 -0400)
commit2c02b38a10fc0717fadd94aab2b7eee656a3c44a
tree8df9c12006d7441e8f5f5ef671afccc15d609d7e
parent77bb2f204f1f0a53a602a8fd15816d6826212077
drm/amd/swSMU: add callback to set AC/DC power source (v2)

This is needed to tell the SMU firmware what state is in
in certain cases.  DC mode does not allow overclocking
for example.

v2: split Evan's original patch (Alex)

Bug: https://gitlab.freedesktop.org/drm/amd/issues/1043
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_internal.h