Skip to contentSkip to conversation

drm/amdgpu: correct reference clock value on vega10

PATCH In review [email protected] 2 participants 2 messages Sep 29, 2017 1 message not in the archive

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -1
index 7839677..631b1e3 100644
@@ -280,7 +280,7 @@ 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;
+		return 27000;
 	else
 		return adev->clock.spll.reference_freq;
 }
Signature · 6 lines
2.7.4

_______________________________________________
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): 1506670965-19065-1-git-send-email-ken.wang-5C7GfCeVMHo@public.gmane.org

#2 lore raw
Quoted 13 lines · On Fri, Sep 29, 2017 at 3:42 AM, <[email protected]> wrote:

From: Ken Wang <[email protected]>

Change-Id I377029075af1e2e002f7cfd793ddd58d8610e474
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -0
index 7839677..631b1e3 100644

drivers/gpu/drm/amd/amdgpu/soc15.c static void soc15_init_golden_registers(struct amdgpu_device *adev) · line 283

Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -1
@@ -280,7 +280,7 @@ 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;
+               return 27000;

Why do we need to change this? Is the vbios table wrong? See amdgpu_atomfirmware_get_clock_info().

Alex

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -1
        else
                return adev->clock.spll.reference_freq;
 }
--

2.7.4

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

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