drm/amd/powerplay: check for invalid profile_exit setting
authorEvan Quan <evan.quan@amd.com>
Sun, 5 May 2019 03:00:50 +0000 (11:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 May 2019 18:24:57 +0000 (13:24 -0500)
commitdb8a974f7e6966d73b4e6afa673c5b8bc31a111e
tree9517abe8a48e270ed39fa24bb12731cac5cb0f81
parent992fbe8ce035d8c3fb2615ac6e8faeaa7c2fa2c3
drm/amd/powerplay: check for invalid profile_exit setting

profile_exit performance level setting is valid only
when current mode is in profile mode.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c