Project

General

Profile

Feature #4646

Want nicer messages out of mpt_sas logs

Added by Rich Ercolani over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Start date:
2014-02-28
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

scsi: [ID 365881 kern.info] /pci@0,0/pci8086,3410@9/pci1000,30d0@0 (mpt_sas2):
  Log info 0x3112010c received for target 122.
  scsi_status=0x0, ioc_status=0x804b, scsi_state=0xc

If you're sufficiently versed in arcane wisdom, you could decode that as meaning target 122 generated a 0x4b ioc state (surprise, top bit high just means "there's more info in the Log"), which is "MPI2_IOCSTATUS_SCSI_IOC_TERMINATED" - e.g. a command to a target aborted.

But that's a bit of a mess to figure out, even when you know exactly what you're looking for. So we should get some nicer messages out - the BSDs have some nice code in their LSI-originated mps driver that does pretty printing/translation with messages, so this can probably be shared readily.

We'll see if anyone beats me to finishing this; it shouldn't take too long...

History

#1

Updated by Rich Ercolani over 5 years ago

'according to the MPT 2.x docs everything other than the leftmost byte of loginfo falls into "product-specific documentation"'

So the LogInfo portion of this, at least, might be chasing a very deep product-enumerative rabbit hole at best...

Also available in: Atom PDF