drm/amd/display: Reset DMCUB before HW init
[Why] If the firmware wasn't reset by PSP or HW and is currently running then the firmware will hang or perform underfined behavior when we modify its firmware state underneath it. [How] Reset DMCUB before setting up cache windows and performing HW init. Reviewed-by: Aurabindo Jayamohanan Pillai <Aurabindo.Pillai@amd.com> Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4308acff0f
commit
47e62dbd8d
|
@ -1054,6 +1054,11 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset DMCUB if it was previously running - before we overwrite its memory. */
|
||||||
|
status = dmub_srv_hw_reset(dmub_srv);
|
||||||
|
if (status != DMUB_STATUS_OK)
|
||||||
|
DRM_WARN("Error resetting DMUB HW: %d\n", status);
|
||||||
|
|
||||||
hdr = (const struct dmcub_firmware_header_v1_0 *)dmub_fw->data;
|
hdr = (const struct dmcub_firmware_header_v1_0 *)dmub_fw->data;
|
||||||
|
|
||||||
fw_inst_const = dmub_fw->data +
|
fw_inst_const = dmub_fw->data +
|
||||||
|
|
Loading…
Reference in New Issue