Skip to contentSkip to conversation

megaraid_sas : Print critical fw event message

PATCH In review [email protected] 2 participants 2 messages Aug 31, 2015 – Sep 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 7/10 megaraid_sas : Print critical fw event message

Print firmware event in readable format. This will help user to track any critical firmware event without any application support.

sample syslogd output -

megaraid_sas 0000:02:00.0: 8619 (491648347s/0x0020/WARN) - Controller temperature threshold exceeded. This may indicate inadequate system cooling. Switching to low performance mode

Format of print is - "<pci_dev_id>: <sequence_number> (<timestamp>/<locale>/<class>) - <description>"

---
 drivers/scsi/megaraid/megaraid_sas.h      |   10 +++++
 drivers/scsi/megaraid/megaraid_sas_base.c |   61 +++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+), 0 deletions(-)
drivers/scsi/megaraid/megaraid_sas.h +10 -0
index 5db31c6..ccda60d 100644
@@ -273,6 +273,16 @@ enum MFI_STAT {
 	MFI_STAT_INVALID_STATUS = 0xFF
 };
 
+enum mfi_evt_class {
+	MFI_EVT_CLASS_DEBUG =		-2,
+	MFI_EVT_CLASS_PROGRESS =	-1,
+	MFI_EVT_CLASS_INFO =		0,
+	MFI_EVT_CLASS_WARNING =		1,
+	MFI_EVT_CLASS_CRITICAL =	2,
+	MFI_EVT_CLASS_FATAL =		3,
+	MFI_EVT_CLASS_DEAD =		4
+};
+
 /*
  * Crash dump related defines
  */
drivers/scsi/megaraid/megaraid_sas_base.c +61 -0

73 lines not on this page · raw message

Signature · 1 line
1.7.1
Reviewed-by on v3 7/10
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sumit" == sumit saxena <[email protected]> writes:

Sumit> Print firmware event in readable format. This will help user to Sumit> track any critical firmware event without any application Sumit> support.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering