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
tree: a2927e5248ae0780d0ae82a47e0834b9c8027ced
  1. conf/
  2. dynamic-layers/
  3. recipes-bsp/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-devtools/
  7. recipes-extended/
  8. recipes-google/
  9. recipes-kernel/
  10. recipes-phosphor/
  11. recipes-tpm1/
  12. LICENSE
  13. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.