• Xiaofei Tan's avatar
    scsi: hisi_sas: fix reset and port ID refresh issues · 917d3bda
    Xiaofei Tan authored
    This patch provides fixes for the following issues:
    
    1. Fix issue of controller reset required to send commands. For reset
       process, it may be required to send commands to the controller, but
       not during soft reset.  So add HISI_SAS_NOT_ACCEPT_CMD_BIT to prevent
       executing a task during this period.
    
    2. Send a broadcast event in rescan topology to detect any topology
       changes during reset.
    
    3. Previously it was not ensured that libsas has processed the PHY up
       and down events after reset. Potentially this could cause an issue
       that we still process the PHY event after reset. So resolve this by
       flushing shot workqueue in LLDD reset.
    
    4. Port ID requires refresh after reset. The port ID generated after
       reset is not guaranteed to be the same as before reset, so it needs
       to be refreshed for each device's ITCT.
    Signed-off-by: default avatarXiaofei Tan <tanxiaofei@huawei.com>
    Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    917d3bda
hisi_sas.h 10.4 KB