* [PATCH] drm/admgpu: Set reference clock to 100Mhz on Renoir (v2)
@ 2021-02-17 22:20 Alex Deucher
2021-02-18 8:08 ` Christian König
0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2021-02-17 22:20 UTC (permalink / raw)
To: amd-gfx; +Cc: Alex Deucher
Fixes the rlc reference clock used for GPU timestamps.
Value is 100Mhz. Confirmed with hardware team.
v2: reword commit message.
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1480
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/soc15.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index c7d0e0e98391..230caaa3513f 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -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;
--
2.29.2
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/admgpu: Set reference clock to 100Mhz on Renoir (v2)
2021-02-17 22:20 [PATCH] drm/admgpu: Set reference clock to 100Mhz on Renoir (v2) Alex Deucher
@ 2021-02-18 8:08 ` Christian König
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2021-02-18 8:08 UTC (permalink / raw)
To: Alex Deucher, amd-gfx; +Cc: Alex Deucher
Am 17.02.21 um 23:20 schrieb Alex Deucher:
> Fixes the rlc reference clock used for GPU timestamps.
> Value is 100Mhz. Confirmed with hardware team.
>
> v2: reword commit message.
>
> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1480
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/soc15.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index c7d0e0e98391..230caaa3513f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -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
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-18 8:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 22:20 [PATCH] drm/admgpu: Set reference clock to 100Mhz on Renoir (v2) Alex Deucher
2021-02-18 8:08 ` Christian König
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.