Skip to content

Commit 2361828

Browse files
Hawking Zhangalexdeucher
authored andcommitted
drm/amdgpu: Query and report boot status
Query boot status and report boot errors. A follow up change is needed to stop GPU initialization if boot fails. v2: only invoke the call for dGPU (Le/Lijo) Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Le Ma <le.ma@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent df57e01 commit 2361828

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,8 @@ static int amdgpu_device_asic_init(struct amdgpu_device *adev)
10741074
amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(11, 0, 0)) {
10751075
amdgpu_psp_wait_for_bootloader(adev);
10761076
ret = amdgpu_atomfirmware_asic_init(adev, true);
1077+
/* TODO: check the return val and stop device initialization if boot fails */
1078+
amdgpu_psp_query_boot_status(adev);
10771079
return ret;
10781080
} else {
10791081
return amdgpu_atom_asic_init(adev->mode_info.atom_context);

0 commit comments

Comments
 (0)