Skip to content

Commit 2b6943d

Browse files
superm1alexdeucher
authored andcommitted
drm/amd/display: Pass up errors for reset GPU that fails to init HW
[Why] If a GPU is in reset and the hardware fails to initialize the rest of the resume sequence shouldn't be run. [How] Pass error code up to caller of dm_resume(). Reviewed-by: Alex Hung <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Ivan Lipski <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent b174084 commit 2b6943d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3398,8 +3398,10 @@ static int dm_resume(struct amdgpu_ip_block *ip_block)
33983398
link_enc_cfg_copy(adev->dm.dc->current_state, dc_state);
33993399

34003400
r = dm_dmub_hw_init(adev);
3401-
if (r)
3401+
if (r) {
34023402
drm_err(adev_to_drm(adev), "DMUB interface failed to initialize: status=%d\n", r);
3403+
return r;
3404+
}
34033405

34043406
dc_dmub_srv_set_power_state(dm->dc->ctx->dmub_srv, DC_ACPI_CM_POWER_STATE_D0);
34053407
dc_set_power_state(dm->dc, DC_ACPI_CM_POWER_STATE_D0);

0 commit comments

Comments
 (0)