drm/amd/powerplay: add feature check in unforce_dpm_levels function (v2)
authorKevin Wang <kevin1.wang@amd.com>
Mon, 17 Jun 2019 05:05:00 +0000 (13:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:54:32 +0000 (13:54 -0500)
commitcb2a782eb8087d1bed61f58aa38fe06a693031d7
treeb268ffce50a894207dbc236bacc371ab34179679
parentac1092b341148c6fce8d0fe2ce8fa6764027bd02
drm/amd/powerplay: add feature check in unforce_dpm_levels function (v2)

if not check dpm feature is enabled, it will cause show smc send message
failed log in dmesg log.
eg:
echo "auto" > power_dpm_force_performance_level

v2: whitespace fix (Alex)

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Rui Teng <rui.teng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c