]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/smu_v11: Unify and fix power limits
authorMatt Coffin <mcoffin13@gmail.com>
Mon, 11 Nov 2019 18:36:31 +0000 (11:36 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Nov 2019 22:38:14 +0000 (17:38 -0500)
commitc1446a7e44352f1016f606f5373b797326f2896e
tree4ec088aa6e8abd495d9a35111c456dc2b5b0727d
parentb6e4247150227f32443d24a00464e1a1339d6be0
drm/amdgpu/smu_v11: Unify and fix power limits

[Why]
On Navi10, and presumably arcterus, updating pp_table via sysfs would
not re-scale the maximum possible power limit one can set. On navi10,
the SMU code ignored the power percentage overdrive setting entirely,
and would not allow you to exceed the default power limit at all.

[How]
Adding a function to the SMU interface to get the pptable version of the
default power limit allows ASIC-specific code to provide the correct
maximum-settable power limit for the current pptable.

v3: fix spelling (Alex)

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Matt Coffin <mcoffin13@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.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