Skip to content

Commit fbc2429

Browse files
Jie1zhangalexdeucher
authored andcommitted
drm/amdgpu: change the reference clock for raven/raven2
Due to switch to golden tsc register to get clock counter for raven/ raven2. Chang the reference clock from 25MHZ to 100MHZ. Suggested-by: shanshengwang <shansheng.wang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Jesse Zhang <jesse.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent f220674 commit fbc2429

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

drivers/gpu/drm/amd/amdgpu/soc15.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,10 @@ static u32 soc15_get_xclk(struct amdgpu_device *adev)
301301
u32 reference_clock = adev->clock.spll.reference_freq;
302302

303303
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 0) ||
304-
adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 1))
305-
return 10000;
306-
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 0) ||
304+
adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 1) ||
305+
adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 0) ||
307306
adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 1))
308-
return reference_clock / 4;
307+
return 10000;
309308

310309
return reference_clock;
311310
}

0 commit comments

Comments
 (0)