ipmi: Allow an SMI sender to return an error
authorCorey Minyard <corey@minyard.net>
Wed, 20 Aug 2025 19:04:24 +0000 (14:04 -0500)
committerCorey Minyard <corey@minyard.net>
Mon, 8 Sep 2025 15:21:41 +0000 (10:21 -0500)
commit9cf93a8fa9513c6d3cc65bdd50e05c1355cef322
tree9de9d7561e61528398a7178c0a444cf4a81b7880
parentabe4918a942e17f997f62b1e12bc8a15d8ff5f7e
ipmi: Allow an SMI sender to return an error

Getting ready for handling when a BMC is non-responsive or broken, allow
the sender operation to fail in an SMI.  If it was a user-generated
message it will return the error.

The powernv code was already doing this internally, but the way it was
written could result in deep stack descent if there were a lot of
messages queued.  Have its send return an error in this case.

Signed-off-by: Corey Minyard <corey@minyard.net>
drivers/char/ipmi/ipmi_ipmb.c
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_powernv.c
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_ssif.c
include/linux/ipmi_smi.h