diff options
| author | Alex Deucher <[email protected]> | 2023-06-02 18:32:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 16:40:01 +0000 |
| commit | a15a77c8e61d2db075cc6e2104bfdebf5c9b966c (patch) | |
| tree | 5fa78d5271b44427ac3eeb1254de18c6b159690d /drivers/gpu/drm/amd/amdgpu/soc15.c | |
| parent | drm/amdgpu: convert vcn/jpeg logical mask to physical mask (diff) | |
| download | kernel-a15a77c8e61d2db075cc6e2104bfdebf5c9b966c.tar.gz kernel-a15a77c8e61d2db075cc6e2104bfdebf5c9b966c.zip | |
Revert "drm/amdgpu: change the reference clock for raven/raven2"
This reverts commit fbc24293ca16b3b9ef891fe32ccd04735a6f8dc1.
This results in inconsistent timing reported via asynchronous
GPU queries.
Link: https://lists.freedesktop.org/archives/amd-gfx/2023-May/093731.html
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 135440b5afe9..afcaeadda4c7 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -325,10 +325,11 @@ static u32 soc15_get_xclk(struct amdgpu_device *adev) u32 reference_clock = adev->clock.spll.reference_freq; if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 0) || - adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 1) || - adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 0) || - adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 1)) + adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 1)) return 10000; + if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 0) || + adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 1)) + return reference_clock / 4; return reference_clock; } |
