diff options
author | Horace Chen <horace.chen@amd.com> | 2023-08-17 17:38:29 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-08-31 17:58:29 -0400 |
commit | 8c97e87c13d9d181c14545864dbf6bbbd83f639b (patch) | |
tree | 2d6b0441a58882318fae09c35774ca04ae0cbe7e /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |
parent | 8f1778939b2f22664737a44aa5acf0308bb6518d (diff) | |
download | linux-8c97e87c13d9d181c14545864dbf6bbbd83f639b.tar.gz linux-8c97e87c13d9d181c14545864dbf6bbbd83f639b.tar.bz2 linux-8c97e87c13d9d181c14545864dbf6bbbd83f639b.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h')
0 files changed, 0 insertions, 0 deletions