From: Alex Deucher Date: Tue, 16 Feb 2021 15:57:00 +0000 (-0500) Subject: drm/amdgpu: Set reference clock to 100Mhz on Renoir (v2) X-Git-Tag: accepted/tizen/unified/20230118.172025~7243^2~19^2~441 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e80fb8ab04f6c4f377e2fd422bdd1855beb7371;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: 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. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1480 Acked-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index e865495..1221aa6 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -233,6 +233,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;