• S
    megaraid_sas: MFI IO timeout handling · 6d40afbc
    Sumit Saxena 提交于
    This patch will do proper error handling for DCMD timeout failure cases
    for Fusion adapters:
    
    1. For MFI adapters, in case of DCMD timeout (DCMD which must return
    SUCCESS) driver will call kill adapter.
    
    2. What action needs to be taken in case of DCMD timeout is decided by
    function dcmd_timeout_ocr_possible().  DCMD timeout causing OCR is
    applicable to the following commands:
    
    	MR_DCMD_PD_LIST_QUERY
    	MR_DCMD_LD_GET_LIST
    	MR_DCMD_LD_LIST_QUERY
    	MR_DCMD_CTRL_SET_CRASH_DUMP_PARAMS
    	MR_DCMD_SYSTEM_PD_MAP_GET_INFO
    	MR_DCMD_LD_MAP_GET_INFO
    
    3. If DCMD fails from driver init path there are certain DCMDs which
    must return SUCCESS. If those DCMDs fail, driver bails out. For optional
    DCMDs like pd_info etc., driver continues without executing certain
    functionality.
    Signed-off-by: NSumit Saxena <sumit.saxena@avagotech.com>
    Signed-off-by: NKashyap Desai <kashyap.desai@avagotech.com>
    Reviewed-by: NTomas Henzl <thenzl@redhat.com>
    Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
    6d40afbc
megaraid_sas.h 49.3 KB