diff options
| author | Horace Chen <[email protected]> | 2022-07-21 06:42:30 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-09-01 19:11:12 +0000 |
| commit | d9d86d085fbc104ea73a7f6da0b1a6c4086b709a (patch) | |
| tree | 77f68bd16723ef83a28630b334b5aa4a0ce9b8e4 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
| parent | drm/amdgpu: enable WPTR_POLL_ENABLE for sriov on sdma_v6_0 (diff) | |
| download | kernel-d9d86d085fbc104ea73a7f6da0b1a6c4086b709a.tar.gz kernel-d9d86d085fbc104ea73a7f6da0b1a6c4086b709a.zip | |
drm/amdgpu: refine virtualization psp fw skip check
SR-IOV may need to load different firmwares for different ASIC inside
VF.
So create a new function in amdgpu_virt to check whether FW load needs
to be skipped.
Acked-by: Christian König <[email protected]>
Signed-off-by: Horace Chen <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h index 239f232f9c02..cd6fce05978f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h @@ -343,4 +343,6 @@ void amdgpu_sriov_wreg(struct amdgpu_device *adev, u32 acc_flags, u32 hwip); u32 amdgpu_sriov_rreg(struct amdgpu_device *adev, u32 offset, u32 acc_flags, u32 hwip); +bool amdgpu_virt_fw_load_skip_check(struct amdgpu_device *adev, + uint32_t ucode_id); #endif |
