netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* devlink interface for asynchronous event/messages from firmware?
@ 2020-05-21  0:03 Jacob Keller
  2020-05-21  0:16 ` Jakub Kicinski
  0 siblings, 1 reply; 13+ messages in thread
From: Jacob Keller @ 2020-05-21  0:03 UTC (permalink / raw)
  To: Jiri Pirko, Jakub Kicinski, netdev

Hi Jiri, Jakub,

I've been asked to investigate using devlink as a mechanism for
reporting asynchronous events/messages from firmware including
diagnostic messages, etc.

Essentially, the ice firmware can report various status or diagnostic
messages which are useful for debugging internal behavior. We want to be
able to get these messages (and relevant data associated with them) in a
format beyond just "dump it to the dmesg buffer and recover it later".

It seems like this would be an appropriate use of devlink. I thought
maybe this would work with devlink health:

i.e. we create a devlink health reporter, and then when firmware sends a
message, we use devlink_health_report.

But when I dug into this, it doesn't seem like a natural fit. The health
reporters expect to see an "error" state, and don't seem to really fit
the notion of "log a message from firmware" notion.

One of the issues is that the health reporter only keeps one dump, when
what we really want is a way to have a monitoring application get the
dump and then store its contents.

Thoughts on what might make sense for this? It feels like a stretch of
the health interface...

I mean basically what I am thinking of having is using the devlink_fmsg
interface to just send a netlink message that then gets sent over the
devlink monitor socket and gets dumped immediately.

Thanks,
Jake

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-05-26 21:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-21  0:03 devlink interface for asynchronous event/messages from firmware? Jacob Keller
2020-05-21  0:16 ` Jakub Kicinski
2020-05-21 20:22   ` Jacob Keller
2020-05-21 20:52     ` Ido Schimmel
2020-05-21 20:59       ` Jacob Keller
2020-05-21 21:51         ` Jakub Kicinski
2020-05-21 22:09           ` Jacob Keller
2020-05-21 22:32             ` Ido Schimmel
2020-05-22 11:00           ` Jiri Pirko
2020-05-22 17:46             ` Jakub Kicinski
2020-05-26 21:13               ` Jacob Keller
2020-05-26 21:00             ` Jacob Keller
2020-05-22 11:03         ` Jiri Pirko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).