]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: Fix hardmins not being sent to SMU for RV
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 14 Aug 2020 15:49:13 +0000 (11:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Aug 2020 20:40:19 +0000 (16:40 -0400)
commita05acad2d55638099eafc1a6e84f9bca9c5631b2
tree768556c9ea5fda055e520328ac874e3e845447e0
parente42d84d11c718eec304af4dfda6312810adbf50a
drm/amd/powerplay: Fix hardmins not being sent to SMU for RV

[Why]
DC uses these to raise the voltage as needed for higher dispclk/dppclk
and to ensure that we have enough bandwidth to drive the displays.

There's a bug preventing these from actuially sending messages since
it's checking the actual clock (which is 0) instead of the incoming
clock (which shouldn't be 0) when deciding to send the hardmin.

[How]
Check the clocks != 0 instead of the actual clocks.

Fixes: d8fb3cd9ef15 ("drm/amd/powerplay: rv dal-pplib interface refactor powerplay part")
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c