drm/amd/powerplay: check for invalid profile mode before switching
authorEvan Quan <evan.quan@amd.com>
Thu, 28 Mar 2019 01:46:36 +0000 (09:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Apr 2019 15:48:05 +0000 (10:48 -0500)
commit7cdd4dc58d282904629c9131bf4a2ff1af34f442
tree78f140493e6d143e8ebb4ad4e78b88ed5f85c3ad
parent6752bea8b03e77c98be7d8d25b0a9d86a00b3cf7
drm/amd/powerplay: check for invalid profile mode before switching

Need to check for invalid profile mode settings before determining
to switch to that.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c