diff options
author | Evan Quan <evan.quan@amd.com> | 2020-09-03 15:13:09 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-09-17 17:48:11 -0400 |
commit | ce2c00061b2810ff0523e34ab392893556e17bbf (patch) | |
tree | b5a5f1f0668aab4eecf23a53cca5e835eb3dce61 /drivers/gpu/drm/amd/pm | |
parent | 7b9c7e30ab50c1b2f6814509b14fb0d04a697529 (diff) | |
download | linux-ce2c00061b2810ff0523e34ab392893556e17bbf.tar.bz2 |
drm/amd/pm: add Renoir watermark WmType setting
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>
Diffstat (limited to 'drivers/gpu/drm/amd/pm')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |