HomeFreeBSD

mrsas: if controller reset is in progress, refrain from firing DCMDs to

Description

mrsas: if controller reset is in progress, refrain from firing DCMDs to
firmware in shutdown

If controller reset is in progress, at same time if system shutdown is
issued then corresponding shutdown function in driver will be invoked
where driver is waiting 15 seconds to complete the controller reset.

If the reset is not complteted within that time frame driver will go
ahead and fire cache flush and shutdown DCMDs which will end up
accessing the the queues which are not initialized due to undergoing
reset leads to FMU error in firmware.

Fix:
In shutdown function, if controller reset is not finished within 15
seconds than driver will return to the OS without firing any DCMDs.

Reviewed by: imp
PR: 261375

Details

Provenance
chandrakanth.patil_broadcom.comAuthored on Jan 21 2022, 9:24 AM
impCommitted on Apr 5 2022, 2:38 PM
Parents
rG241bb95552a3: mrsas: remove additional MPT command allocation for R1 FP command
Branches
Unknown
Tags
Unknown