drm/amdgpu: refine virtualization psp fw skip check
authorHorace Chen <horace.chen@amd.com>
Thu, 21 Jul 2022 06:42:30 +0000 (14:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2022 19:11:12 +0000 (15:11 -0400)
commitd9d86d085fbc104ea73a7f6da0b1a6c4086b709a
tree77f68bd16723ef83a28630b334b5aa4a0ce9b8e4
parentafb50906cf029a40b713c60d8800d3ee25ebe03d
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 <christian.koenig@amd.com>
Signed-off-by: Horace Chen <horace.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h