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

Change-Id: I8619115486021537b52c067c4d0b9bfc1417fc35
Signed-off-by: Evan Quan <evan.q...@amd.com>
Tested-by: Changfeng Zhu <changfeng....@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

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

Reply via email to