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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Change-Id: I8619115486021537b52c067c4d0b9bfc1417fc35
Signed-off-by: Evan Quan <evan.quan@xxxxxxx>
Tested-by: Changfeng Zhu <Changfeng.Zhu@xxxxxxx>
---
 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

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux