ipmi: Add support for IPMB direct messages
authorCorey Minyard <minyard@acm.org>
Fri, 24 Sep 2021 16:42:56 +0000 (11:42 -0500)
committerCorey Minyard <cminyard@mvista.com>
Tue, 5 Oct 2021 11:54:16 +0000 (06:54 -0500)
commit059747c245f0e9af5e109eece7d3414dbe08d513
tree31c1c155db5e70026f39d648bdf3bac133298972
parent1e4071f6282b3323435b02b1719bcfbfe1b57150
ipmi: Add support for IPMB direct messages

An application has come up that has a device sitting right on the IPMB
that would like to communicate with the BMC on the IPMB using normal
IPMI commands.

Sending these commands and handling the responses is easy enough, no
modifications are needed to the IPMI infrastructure.  But if this is an
application that also needs to receive IPMB commands and respond, some
way is needed to handle these incoming commands and send the responses.

Currently, the IPMI message handler only sends commands to the interface
and only receives responses from interface.  This change extends the
interface to receive commands/responses and send commands/responses.
These are formatted differently in support of receiving/sending IPMB
messages directly.

Signed-off-by: Corey Minyard <minyard@acm.org>
Tested-by: Andrew Manley <andrew.manley@sealingtech.com>
Reviewed-by: Andrew Manley <andrew.manley@sealingtech.com>
drivers/char/ipmi/ipmi_msghandler.c
include/linux/ipmi_smi.h
include/uapi/linux/ipmi.h