projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
228a10d
)
drm/amdgpu/soc15: fix xclk for raven
author
Alex Deucher
<alexander.deucher@amd.com>
Wed, 12 Feb 2020 06:46:16 +0000
(
01:46
-0500)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 12 Feb 2020 21:04:40 +0000
(16:04 -0500)
It's 25 Mhz (refclk / 4). This fixes the interpretation
of the rlc clock counter.
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/soc15.c
b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 15f3424a1ff792b299f83c71c335461f08177d10..2b488dfb2f21cfe192b733ab70da9b41d8d05d03 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/
drivers/gpu/drm/amd/amdgpu/soc15.c
@@
-272,7
+272,12
@@
static u32 soc15_get_config_memsize(struct amdgpu_device *adev)
static u32 soc15_get_xclk(struct amdgpu_device *adev)
{
- return adev->clock.spll.reference_freq;
+ u32 reference_clock = adev->clock.spll.reference_freq;
+
+ if (adev->asic_type == CHIP_RAVEN)
+ return reference_clock / 4;
+
+ return reference_clock;
}