• Sumit Saxena's avatar
    megaraid_sas: MFI IO timeout handling · 6d40afbc
    Sumit Saxena authored
    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: default avatarSumit Saxena <sumit.saxena@avagotech.com>
    Signed-off-by: default avatarKashyap Desai <kashyap.desai@avagotech.com>
    Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    6d40afbc
megaraid_sas_base.c 190 KB