drm/amd/powerplay: added vega20 overdrive support V3
authorEvan Quan <evan.quan@amd.com>
Wed, 29 Aug 2018 06:38:50 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:39:30 +0000 (22:39 -0500)
commitd5bf26539494d16dfabbbea0854a47d202ea15c0
treea0a4af89da4fdbbdc1e585d07d6241e20bf4970e
parent6abc0c8f8cf3e0c47707b01f027f9f9b9aa75646
drm/amd/powerplay: added vega20 overdrive support V3

Added vega20 overdrive support based on existing OD sysfs
APIs. However, the OD logics are simplified on vega20. So,
the behavior will be a little different and works only on
some limited levels.

V2: fix typo
    fix commit description
    revise error logs
    add support for clock OD

V3: separate clock from voltage OD settings

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c