]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8963d54ab34b562e9ce7c3ae61323e43c8b90b02
tree3c5444fab1865bf558070d305b17561d7b928192
parent6e677d4655f309f28683dab68e9f114500c66e10
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