Skip to contentSkip to conversation

drm/admgpu: Set reference clock to 100Mhz on Renoir (v2)

PATCH In review Alex Deucher 2 participants 2 messages Feb 17, 2021 – Feb 18, 2021

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

PATCH 1/1 drm/admgpu: Set reference clock to 100Mhz on Renoir (v2)

Fixes the rlc reference clock used for GPU timestamps. Value is 100Mhz. Confirmed with hardware team.

v2: reword commit message.

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +2 -0
index c7d0e0e98391..230caaa3513f 100644
@@ -463,6 +463,8 @@ static u32 soc15_get_xclk(struct amdgpu_device *adev)
 {
 	u32 reference_clock = adev->clock.spll.reference_freq;
 
+	if (adev->asic_type == CHIP_RENOIR)
+		return 10000;
 	if (adev->asic_type == CHIP_RAVEN)
 		return reference_clock / 4;
 
Signature · 6 lines
2.29.2

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Acked-by on v1 1/1
#1 lore raw

Am 17.02.21 um 23:20 schrieb Alex Deucher:

Quoted 7 lines

Fixes the rlc reference clock used for GPU timestamps. Value is 100Mhz. Confirmed with hardware team.

v2: reword commit message.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/soc15.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -0
index c7d0e0e98391..230caaa3513f 100644

drivers/gpu/drm/amd/amdgpu/soc15.c static u32 soc15_get_xclk(struct amdgpu_device *adev) · line 470

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/soc15.c +2 -0
@@ -463,6 +463,8 @@ static u32 soc15_get_xclk(struct amdgpu_device *adev)
  {
  	u32 reference_clock = adev->clock.spll.reference_freq;
 
+	if (adev->asic_type == CHIP_RENOIR)
+		return 10000;
  	if (adev->asic_type == CHIP_RAVEN)
  		return reference_clock / 4;
 

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