drm/amd/pm: add Renoir watermark WmType setting
authorEvan Quan <evan.quan@amd.com>
Thu, 3 Sep 2020 07:13:09 +0000 (15:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Sep 2020 21:48:11 +0000 (17:48 -0400)
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>
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c

index 53d8bef..63c72e3 100644 (file)
@@ -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;