mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
drm/amd/pm: add Renoir watermark WmType setting
Which tells it's a normal pstate change or memory retraining. Signed-off-by: Evan Quan <evan.quan@amd.com> Tested-by: Changfeng Zhu <Changfeng.Zhu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7b9c7e30ab
commit
ce2c00061b
1 changed files with 4 additions and 0 deletions
|
@ -887,6 +887,8 @@ static int renoir_set_watermarks_table(
|
|||
|
||||
table->WatermarkRow[WM_DCFCLK][i].WmSetting =
|
||||
clock_ranges->reader_wm_sets[i].wm_inst;
|
||||
table->WatermarkRow[WM_DCFCLK][i].WmType =
|
||||
clock_ranges->reader_wm_sets[i].wm_type;
|
||||
}
|
||||
|
||||
for (i = 0; i < clock_ranges->num_writer_wm_sets; i++) {
|
||||
|
@ -901,6 +903,8 @@ static int renoir_set_watermarks_table(
|
|||
|
||||
table->WatermarkRow[WM_SOCCLK][i].WmSetting =
|
||||
clock_ranges->writer_wm_sets[i].wm_inst;
|
||||
table->WatermarkRow[WM_SOCCLK][i].WmType =
|
||||
clock_ranges->writer_wm_sets[i].wm_type;
|
||||
}
|
||||
|
||||
smu->watermarks_bitmap |= WATERMARKS_EXIST;
|
||||
|
|
Loading…
Reference in a new issue