Skip to contentSkip to conversation

powerplay: Respect units on max dcfclk watermark

PATCH In review David Francis 2 participants 2 messages Oct 18, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 4714b5b59825..99a33c33a32c 100644
@@ -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

Reviewed-by Harry Wentland
#2 lore raw
Quoted 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.

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
index 4714b5b59825..99a33c33a32c 100644

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