libnvme: Improve libnvme-mi debuggability
Tested:
Before this fix, we only have limited error message:
crc mismatch
After this fix, we have the net/eid/request/timing/rc/errno info:
[mctp: net 1 eid 12] crc mismatch
[mctp: net 1 eid 12] Admin op:0x02, cdw(1:0x0, 10:0x3ff80d8, 11:0x0, 12:0x200 13:0x0, 14:0x0, 15:0x0) T:5000ms, elapsed:333ms, rc:1, errno:0
[mctp: net 1 eid 13] crc mismatch
[mctp: net 1 eid 13] MI op:0x01, cdw0:0x0, cdw1:0x80000000 T:5000ms, elapsed:247ms, rc:1, errno:0
[network: 1, EID: 13 | bus: 8, address: 0x35] fail to subsystem_health_status_poll: More Processing Required
error reading ctemp from subsystem, reason:Bad message
[mctp: net 1 eid 13] Timeout on MCTP socket
[mctp: net 1 eid 13] Admin op:0x02, cdw(1:0x0, 10:0x3ff80d8, 11:0x0, 12:0x2200 13:0x0, 14:0x0, 15:0x0) T:5000ms, elapsed:5005ms, rc:-1, errno:110
[network: 1, EID: 13 | bus: 8, address: 0x35]failed to nvme_mi_admin_xfer
fail to GetLogPage: Connection timed out
Fusion-link: http://fusion2/15f61579-6b22-3afa-bb92-aac5e92dfe83
Google-Bug-Id: 339022737
Change-Id: I6a0bc1ec76a65276717b49cca7a738f11c81c24c
Signed-off-by: Jinliang Wang <jinliangw@google.com>
6 files changed