diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2021-02-16 10:57:00 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-02-18 16:43:09 -0500 |
commit | 6e80fb8ab04f6c4f377e2fd422bdd1855beb7371 (patch) | |
tree | df1779ec073eeb7123cf56027e218a03da1a8d97 /drivers/gpu/drm/amd | |
parent | 7e6435c14a426ccb7bedea179fe0e8666c4ea1b8 (diff) | |
download | linux-stable-6e80fb8ab04f6c4f377e2fd422bdd1855beb7371.tar.gz linux-stable-6e80fb8ab04f6c4f377e2fd422bdd1855beb7371.tar.bz2 linux-stable-6e80fb8ab04f6c4f377e2fd422bdd1855beb7371.zip |
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 <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index e865495d3ead..1221aa6b40a9 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; |