drm/amdgpu/swSMU: set AC/DC mode based on the current system state (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Mar 2020 16:45:09 +0000 (12:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Mar 2020 21:00:11 +0000 (17:00 -0400)
commit75610fdd38d9d158385049c9f80547a2253c65ea
tree3c5444fab1865bf558070d305b17561d7b928192
parent66c2f5db1fbdc987d23149082720bcbe46f41aa2
drm/amdgpu/swSMU: set AC/DC mode based on the current system state (v2)

Check of the pointer exists and we are actually on AC power.

v2: fix error message to reflect AC/DC mode.

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