• Suganath Prabu S's avatar
    scsi: mpt3sas: Add persistent MPI trigger page · 0e17a87c
    Suganath Prabu S authored
    This page is used to store information about MPI (IOC Status & LogInfo)
    triggers.
    
     Driver Persistent Trigger Page-4 format:
     -------------------------------------------------------
     | 31       24 23           16 15         8 7          0|  Byte
     -------------------------------------------------------
     | PageType   | PageNumber    | Reserved  | PageVersion |  0x00
     --------------------------------------------------------
     | Reserved   | ExtPageType   |      ExtPageLength      |  0x04
     --------------------------------------------------------
     |          Reserved          | NumMpiTriggerEntries    |  0x08
     --------------------------------------------------------
     |             MPITriggerEntry[0]                       |  0x0C
     --------------------------------------------------------
     |               …                                      |
     --------------------------------------------------------
     |            MPITriggerEntry[19]                       |  0xA4
     --------------------------------------------------------
    
    NumMpiTriggerEntries:
    
    This field indicates number of MPI (IOC Status & LogInfo) trigger entries
    stored in this page. Currently driver is supporting a maximum of 20-MPI
    trigger entries.
    
    MPITriggerEntry:
    
     -----------------------------------------------------
     | 31                    16 15                     0 |
     -----------------------------------------------------
     |        Reserved         |      IOCStatus          |
     -----------------------------------------------------
     |                   IOCLogInfo                      |
     -----------------------------------------------------
    
    IOCStatus  => Status value from the IOC
    IOCLogInfo => Specific value that supplements the IOCStatus.
    
    Link: https://lore.kernel.org/r/20201126094311.8686-7-suganath-prabu.subramani@broadcom.comReported-by: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    0e17a87c
mpt3sas_base.c 232 KB