mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
drm/amd/powerplay: map mclk to fclk for COMBINATIONAL_BYPASS case
When hit COMBINATIONAL_BYPASS the mclk will be bypass and can export fclk frequency to user usage. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
80381d40c9
commit
ab65a371dd
1 changed files with 3 additions and 3 deletions
|
@ -111,8 +111,8 @@ static struct smu_12_0_cmn2aisc_mapping renoir_clk_map[SMU_CLK_COUNT] = {
|
|||
CLK_MAP(GFXCLK, CLOCK_GFXCLK),
|
||||
CLK_MAP(SCLK, CLOCK_GFXCLK),
|
||||
CLK_MAP(SOCCLK, CLOCK_SOCCLK),
|
||||
CLK_MAP(UCLK, CLOCK_UMCCLK),
|
||||
CLK_MAP(MCLK, CLOCK_UMCCLK),
|
||||
CLK_MAP(UCLK, CLOCK_FCLK),
|
||||
CLK_MAP(MCLK, CLOCK_FCLK),
|
||||
};
|
||||
|
||||
static struct smu_12_0_cmn2aisc_mapping renoir_table_map[SMU_TABLE_COUNT] = {
|
||||
|
@ -280,7 +280,7 @@ static int renoir_print_clk_levels(struct smu_context *smu,
|
|||
break;
|
||||
case SMU_MCLK:
|
||||
count = NUM_MEMCLK_DPM_LEVELS;
|
||||
cur_value = metrics.ClockFrequency[CLOCK_UMCCLK];
|
||||
cur_value = metrics.ClockFrequency[CLOCK_FCLK];
|
||||
break;
|
||||
case SMU_DCEFCLK:
|
||||
count = NUM_DCFCLK_DPM_LEVELS;
|
||||
|
|
Loading…
Reference in a new issue