• K
    [SCSI] mpt2sas: Support for stopping driver when Firmware encounters · fa7f3167
    Kashyap, Desai 提交于
    Added command line option and shost sysfs attribute called
    mpt2sas_fwfault_debug. When enduser writes a "1" to this parameter, this
    will enable support in the driver for debugging firmware timeout related
    issues.  This handling was added in three areas (a) scsi error handling
    callback called task_abort, (b) IOCTL interface, and (c) other timeouts that
    result in diag resets, such as manufacturing config pages.  When this
    support is enabled, the driver will provide dump_stack to console, halt
    controller firmware, and panic driver. The end user probably would want to
    setup serial console redirection so the dump stack can be seen.
    
    Here are the three methods for enable this support:
    
    (a) # insmod mpt2sas.ko mpt2sas_fwfault_debug=1
    (b) # echo 1 > /sys/module/mpt2sas/parameters/mpt2sas_fwfault_debug
    (c) # echo 1 > /sys/class/scsi_host/host#/fwfault_debug  (where # is
    the host number)
    Signed-off-by: NKashyap Desai <kashyap.desai@lsi.com>
    Signed-off-by: NEric Moore <Eric.moore@lsi.com>
    Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
    fa7f3167
mpt2sas_scsih.c 176.8 KB