[PATCH 3/4] drm/amd/pm: add Renoir watermak WmType setting

Evan Quan evan.quan at amd.com
Mon Sep 7 09:01:25 UTC 2020


Which tells it's a nomral pstate change or memory retraining.

Change-Id: I8619115486021537b52c067c4d0b9bfc1417fc35
Signed-off-by: Evan Quan <evan.quan at amd.com>
Tested-by: Changfeng Zhu <Changfeng.Zhu at amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
index 53d8beffc74e..63c72e33222e 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
@@ -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;
-- 
2.28.0



More information about the amd-gfx mailing list