drm/amd/powerplay: correct smu_update_table usage
authorEvan Quan <evan.quan@amd.com>
Thu, 11 Jul 2019 07:13:17 +0000 (15:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jul 2019 18:34:30 +0000 (13:34 -0500)
commit0d9d78b57bf32fdc4baf6eb8853e65059dcd5e06
tree06bcd2b6918aaf6d11d5813ff4eb937d5af5a0c3
parentf68ccf43acbc31751cff48d0ac1e5ff50d91a451
drm/amd/powerplay: correct smu_update_table usage

The interface was used in a confusing way. In profile mode scenario,
the 2nd parameter of the interface was used in a different way from
other scenarios.

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/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c