drm/amdgpu/powerplay: using the FCLK DPM table to set the MCLK
authorYuxian Dai <Yuxian.Dai@amd.com>
Wed, 1 Apr 2020 11:26:26 +0000 (19:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:20 +0000 (10:50 +0200)
commit45bc323b8102895e8350e5729bc94fec983f1270
treee14095b308c3e15e4ae4f2420e032e08ea37ed14
parentfe0ec6f90e4dcc52890afed29fa8b099c78db591
drm/amdgpu/powerplay: using the FCLK DPM table to set the MCLK

commit 022ac4c9c55be35a2d1f71019a931324c51b0dab upstream.

1.Using the FCLK DPM table to set the MCLK for DPM states consist of
three entities:
 FCLK
 UCLK
 MEMCLK
All these three clk change together, MEMCLK from FCLK, so use the fclk
frequency.
2.we should show the current working clock freqency from clock table metric

Signed-off-by: Yuxian Dai <Yuxian.Dai@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/renoir_ppt.c
drivers/gpu/drm/amd/powerplay/renoir_ppt.h