Commit ce2c0006 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/pm: add Renoir watermark WmType setting

Which tells it's a normal pstate change or memory retraining.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Tested-by: default avatarChangfeng Zhu <Changfeng.Zhu@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7b9c7e30
...@@ -887,6 +887,8 @@ static int renoir_set_watermarks_table( ...@@ -887,6 +887,8 @@ static int renoir_set_watermarks_table(
table->WatermarkRow[WM_DCFCLK][i].WmSetting = table->WatermarkRow[WM_DCFCLK][i].WmSetting =
clock_ranges->reader_wm_sets[i].wm_inst; 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++) { for (i = 0; i < clock_ranges->num_writer_wm_sets; i++) {
...@@ -901,6 +903,8 @@ static int renoir_set_watermarks_table( ...@@ -901,6 +903,8 @@ static int renoir_set_watermarks_table(
table->WatermarkRow[WM_SOCCLK][i].WmSetting = table->WatermarkRow[WM_SOCCLK][i].WmSetting =
clock_ranges->writer_wm_sets[i].wm_inst; 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; smu->watermarks_bitmap |= WATERMARKS_EXIST;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment