Skip to contentSkip to conversation

drm/amdgpu: correct reference clock value on vega10

PATCH New [email protected] 1 participant 1 message Oct 11, 2017

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

PATCH 1/1 drm/amdgpu: correct reference clock value on vega10

From: Ken Wang <[email protected]>

Change-Id I377029075af1e2e002f7cfd793ddd58d8610e474
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +2 -4
index 7839677..a510c8c 100644
@@ -279,10 +279,8 @@ static void soc15_init_golden_registers(struct amdgpu_device *adev)
 }
 static u32 soc15_get_xclk(struct amdgpu_device *adev)
 {
-	if (adev->asic_type == CHIP_VEGA10)
-		return adev->clock.spll.reference_freq/4;
-	else
-		return adev->clock.spll.reference_freq;
+	/* return the value in Khz instead of 10Khz*/
+	return adev->clock.spll.reference_freq * 10;
 }
 
 
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx