Skip to content

Commit

Permalink
[SCSI] megaraid_sas: Add Online Controller Reset to MegaRAID SAS drive
Browse files Browse the repository at this point in the history
To add the Online controller reset support, driver need to do:
a). reset the controller chips -- Xscale and Gen2 which will change
the function calls and add the reset function related to this two
chips.
b). during the reset, driver will store the pending cmds which not
returned by FW to driver's pending queue.  Driver will re-issue those
pending cmds again to FW after the OCR finished.
c). In driver's timeout routine, driver will report to OS as reset.
Also driver's queue routine will block the cmds until the OCR
finished.
d). in Driver's ISR routine, if driver get the FW state as state
change, FW in Failure status and FW support online controller
reset (OCR), driver will start to do the controller reset.
e). In driver's IOCTL routine, the application cmds will wait for the
OCR to finish, then issue the cmds to FW.

Signed-off-by Bo Yang <bo.yang@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
bo yang authored and James Bottomley committed Oct 7, 2010
1 parent 969c916 commit 39a9855
Show file tree
Hide file tree
Showing 2 changed files with 787 additions and 57 deletions.
Loading

0 comments on commit 39a9855

Please sign in to comment.