drm/amdgpu: Make VBIOS image read optional
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 5 Feb 2025 08:40:48 +0000 (14:10 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:04:08 +0000 (21:04 -0500)
Keep VBIOS image read optional for select SOCs in passthrough mode.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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_device.c

index a3f8f20da7ffcf390e566a193713b8c6126048da..e1fc020a99bdd310384fb0123de49acd51125e2a 100644 (file)
@@ -1397,6 +1397,9 @@ static uint32_t amdgpu_device_get_vbios_flags(struct amdgpu_device *adev)
        if (hweight32(adev->aid_mask) && (adev->flags & AMD_IS_APU))
                return AMDGPU_VBIOS_SKIP;
 
+       if (hweight32(adev->aid_mask) && amdgpu_passthrough(adev))
+               return AMDGPU_VBIOS_OPTIONAL;
+
        return 0;
 }