mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 15:39:36 +07:00
drm/amdgpu: print where we get the vbios image from
ACPI, ROM, PCI BAR, etc. Acked-by: Nirmoy Das <nirmoy.das@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
31e726ca3d
commit
bddbacc9e0
@ -417,26 +417,40 @@ static inline bool amdgpu_acpi_vfct_bios(struct amdgpu_device *adev)
|
|||||||
|
|
||||||
bool amdgpu_get_bios(struct amdgpu_device *adev)
|
bool amdgpu_get_bios(struct amdgpu_device *adev)
|
||||||
{
|
{
|
||||||
if (amdgpu_atrm_get_bios(adev))
|
if (amdgpu_atrm_get_bios(adev)) {
|
||||||
|
dev_info(adev->dev, "Fetched VBIOS from ATRM\n");
|
||||||
goto success;
|
goto success;
|
||||||
|
}
|
||||||
|
|
||||||
if (amdgpu_acpi_vfct_bios(adev))
|
if (amdgpu_acpi_vfct_bios(adev)) {
|
||||||
|
dev_info(adev->dev, "Fetched VBIOS from VFCT\n");
|
||||||
goto success;
|
goto success;
|
||||||
|
}
|
||||||
|
|
||||||
if (igp_read_bios_from_vram(adev))
|
if (igp_read_bios_from_vram(adev)) {
|
||||||
|
dev_info(adev->dev, "Fetched VBIOS from VRAM BAR\n");
|
||||||
goto success;
|
goto success;
|
||||||
|
}
|
||||||
|
|
||||||
if (amdgpu_read_bios(adev))
|
if (amdgpu_read_bios(adev)) {
|
||||||
|
dev_info(adev->dev, "Fetched VBIOS from ROM BAR\n");
|
||||||
goto success;
|
goto success;
|
||||||
|
}
|
||||||
|
|
||||||
if (amdgpu_read_bios_from_rom(adev))
|
if (amdgpu_read_bios_from_rom(adev)) {
|
||||||
|
dev_info(adev->dev, "Fetched VBIOS from ROM\n");
|
||||||
goto success;
|
goto success;
|
||||||
|
}
|
||||||
|
|
||||||
if (amdgpu_read_disabled_bios(adev))
|
if (amdgpu_read_disabled_bios(adev)) {
|
||||||
|
dev_info(adev->dev, "Fetched VBIOS from disabled ROM BAR\n");
|
||||||
goto success;
|
goto success;
|
||||||
|
}
|
||||||
|
|
||||||
if (amdgpu_read_platform_bios(adev))
|
if (amdgpu_read_platform_bios(adev)) {
|
||||||
|
dev_info(adev->dev, "Fetched VBIOS from platform\n");
|
||||||
goto success;
|
goto success;
|
||||||
|
}
|
||||||
|
|
||||||
DRM_ERROR("Unable to locate a BIOS ROM\n");
|
DRM_ERROR("Unable to locate a BIOS ROM\n");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user