Files
linux/drivers/gpu/drm/amd/amdgpu
Horace Chen 0bc119fa2e drm/amdkfd: use correct method to get clock under SRIOV
[What]
Current SRIOV still using adev->clock.default_XX which gets from
atomfirmware. But these fields are abandoned in atomfirmware long ago.
Which may cause function to return a 0 value.

[How]
We don't need to check whether SR-IOV. For SR-IOV one-vf-mode,
pm is enabled and VF is able to read dpm clock
from pmfw, so we can use dpm clock interface directly. For
multi-VF mode, VF pm is disabled, so driver can just react as pm
disabled. One-vf-mode is introduced from GFX9 so it shall not have
any backward compatibility issue.

Signed-off-by: Horace Chen <horace.chen@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-08-30 14:59:21 -04:00
..
2022-04-25 11:17:45 +02:00
2023-02-03 15:37:31 -05:00
2023-06-09 12:32:21 -04:00
2023-06-09 12:32:21 -04:00
2022-05-04 09:53:12 -04:00
2023-08-07 16:35:38 -04:00
2023-08-07 16:35:38 -04:00
2022-05-04 10:43:54 -04:00
2022-05-10 17:53:11 -04:00
2023-08-07 16:35:38 -04:00
2023-03-15 18:45:26 -04:00
2023-03-15 18:45:26 -04:00
2023-08-09 09:43:49 -04:00
2023-08-09 09:46:05 -04:00
2023-08-09 09:43:38 -04:00
2023-06-09 12:41:11 -04:00