Skip to content

Commit

Permalink
drm/amd/pm: add Renoir watermark WmType setting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Evan Quan authored and Alex Deucher committed Sep 17, 2020
1 parent 7b9c7e3 commit ce2c000
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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;
Expand Down

0 comments on commit ce2c000

Please sign in to comment.