mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[SCSI] mptfusion: Better handling of DEAD IOC PCI-E Link down error condition
Find Non-Operation IOC and remove it from OS: Detecting dead(non-functional) ioc will be done reading doorbell register value from fault reset thread, which has been called from work thread context after each specific interval. If doorbell value is 0xFFFFFFFF, it will be considered as IOC is non-operational and marked as dead ioc. Once Dead IOC has been detected, it will be removed at pci layer using "pci_remove_bus_device" API. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
3850b14e51
commit
e62cca19a9
5 changed files with 105 additions and 30 deletions
|
@ -5147,6 +5147,8 @@ mptsas_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
ioc->TaskCtx = mptsasTaskCtx;
|
||||
ioc->InternalCtx = mptsasInternalCtx;
|
||||
ioc->schedule_target_reset = &mptsas_schedule_target_reset;
|
||||
ioc->schedule_dead_ioc_flush_running_cmds =
|
||||
&mptscsih_flush_running_cmds;
|
||||
/* Added sanity check on readiness of the MPT adapter.
|
||||
*/
|
||||
if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue