powerplay: Respect units on max dcfclk watermark
Subsystems (2)
PATCH 1/1 powerplay: Respect units on max dcfclk watermark
In a refactor, the watermark clock inputs to powerplay from DC were changed from units of 10kHz to kHz clocks.
One division by 100 was not converted into a division by 1000.
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c +1 -1
@@ -718,7 +718,7 @@ int smu_set_watermarks_for_clocks_ranges(void *wt_table, table->WatermarkRow[1 ][i].MaxClock =cpu_to_le16 ((uint16_t ) (wm_with_clock_ranges->wm_dmif_clocks_ranges[i].wm_max_dcfclk_clk_in_khz) / -100 ); +1000 ); table->WatermarkRow[1 ][i].MinUclk = cpu_to_le16((uint16_t) (wm_with_clock_ranges->wm_dmif_clocks_ranges[i].wm_min_mem_clk_in_khz) /
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20181018153040.18484-1-David.Francis-5C7GfCeVMHo@public.gmane.org
Wentland, Harry
Reviewed-by Harry WentlandQuoted 8 lines · David Francis
In a refactor, the watermark clock inputs to powerplay from DC were changed from units of 10kHz to kHz clocks.
One division by 100 was not converted into a division by 1000.
Signed-off-by David Francis <[email protected]>
Harry
Quoted 10 lines
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c +0
-0
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c int smu_set_watermarks_for_clocks_ranges(void *wt_table, · line 724
Quoted 8 lines
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c +1
-1@@ -718,7 +718,7 @@ int smu_set_watermarks_for_clocks_ranges(void *wt_table, table->WatermarkRow[1 ][i].MaxClock =cpu_to_le16 ((uint16_t ) (wm_with_clock_ranges->wm_dmif_clocks_ranges[i].wm_max_dcfclk_clk_in_khz) / -100 ); +1000 ); table->WatermarkRow[1 ][i].MinUclk = cpu_to_le16((uint16_t) (wm_with_clock_ranges->wm_dmif_clocks_ranges[i].wm_min_mem_clk_in_khz) /
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx