scsi: lpfc: Add FA-WWN Async Event reporting
Add decode support for adapter Async Events which report FA-WWN configuration errors. Link: https://lore.kernel.org/r/20191018211832.7917-14-jsmart2021@gmail.com Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
b1dfa5411e
commit
e7d8595272
|
@ -4261,6 +4261,7 @@ struct lpfc_acqe_sli {
|
|||
#define LPFC_SLI_EVENT_TYPE_DIAG_DUMP 0x5
|
||||
#define LPFC_SLI_EVENT_TYPE_MISCONFIGURED 0x9
|
||||
#define LPFC_SLI_EVENT_TYPE_REMOTE_DPORT 0xA
|
||||
#define LPFC_SLI_EVENT_TYPE_MISCONF_FAWWN 0xF
|
||||
#define LPFC_SLI_EVENT_TYPE_EEPROM_FAILURE 0x10
|
||||
};
|
||||
|
||||
|
|
|
@ -5430,6 +5430,16 @@ lpfc_sli4_async_sli_evt(struct lpfc_hba *phba, struct lpfc_acqe_sli *acqe_sli)
|
|||
"Event Data1:x%08x Event Data2: x%08x\n",
|
||||
acqe_sli->event_data1, acqe_sli->event_data2);
|
||||
break;
|
||||
case LPFC_SLI_EVENT_TYPE_MISCONF_FAWWN:
|
||||
/* Misconfigured WWN. Reports that the SLI Port is configured
|
||||
* to use FA-WWN, but the attached device doesn’t support it.
|
||||
* No driver action is required.
|
||||
* Event Data1 - N.A, Event Data2 - N.A
|
||||
*/
|
||||
lpfc_log_msg(phba, KERN_WARNING, LOG_SLI,
|
||||
"2699 Misconfigured FA-WWN - Attached device does "
|
||||
"not support FA-WWN\n");
|
||||
break;
|
||||
case LPFC_SLI_EVENT_TYPE_EEPROM_FAILURE:
|
||||
/* EEPROM failure. No driver action is required */
|
||||
lpfc_printf_log(phba, KERN_WARNING, LOG_SLI,
|
||||
|
|
Loading…
Reference in New Issue