drm/amd/powerplay: Enable "disable dpm" feature to support swSMU debug (v2)
authorChengming Gui <Jack.Gui@amd.com>
Wed, 8 May 2019 06:38:55 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:01 +0000 (12:21 -0500)
commita254bfa2c5fbd46165010cd6c29a4ad7638b8772
tree7bb4496f0793f651df58fa0827bf9c1a9f4e9356
parent1b9557fcaa42a45920821b0c6455088bb341f477
drm/amd/powerplay: Enable "disable dpm" feature to support swSMU debug (v2)

add pm_enabled to control the dpm off/on.
v2: Directly return 0 to replace return ret and merge some check code.

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Hawking Zhang <hawking.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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