Pull IPMI driver updates from Corey Minyard: "A new type of low-level IPMI driver is added for direct communication over the IPMI message bus without a BMC between the driver and the bus. Other than that, lots of little bug fixes and enhancements" * tag 'for-linus-5.16-1' of https://github.com/cminyard/linux-ipmi: ipmi: kcs_bmc: Fix a memory leak in the error handling path of 'kcs_bmc_serio_add_device()' char: ipmi: replace snprintf in show functions with sysfs_emit ipmi: ipmb: fix dependencies to eliminate build error ipmi:ipmb: Add OF support ipmi: bt: Add ast2600 compatible string ipmi: bt-bmc: Use registers directly ipmi: ipmb: Fix off-by-one size check on rcvlen ipmi:ssif: Use depends on, not select, for I2C ipmi: Add docs for the IPMI IPMB driver ipmi: Add docs for IPMB direct addressing ipmi:ipmb: Add initial support for IPMI over IPMB ipmi: Add support for IPMB direct messages ipmi: Export ipmb_checksum() ipmi: Fix a typo ipmi: Check error code before processing BMC response ipmi:devintf: Return a proper error when recv buffer too small ipmi: Disable some operations during a panic ipmi:watchdog: Set panic count to proper value on a panic
Showing the changes to include/uapi/linux (1 of 16 files). Show all
Unified · Split
| @@ -80,6 +80,20 @@ struct ipmi_ipmb_addr { · 79 unmodified lines | ||
| 80 | 80 | unsigned char lun; |
| 81 | 81 | }; |
| 82 | 82 | |
| 83 | +/* | |
| 84 | + * Used for messages received directly from an IPMB that have not gone | |
| 85 | + * through a MC. This is for systems that sit right on an IPMB so | |
| 86 | + * they can receive commands and respond to them. | |
| 87 | + */ | |
| 88 | +#define IPMI_IPMB_DIRECT_ADDR_TYPE 0x81 | |
| 89 | +struct ipmi_ipmb_direct_addr { | |
| 90 | + int addr_type; | |
| 91 | + short channel; | |
| 92 | + unsigned char slave_addr; | |
| 93 | + unsigned char rs_lun; | |
| 94 | + unsigned char rq_lun; | |
| 95 | +}; | |
| 96 | + | |
| 83 | 97 | /* |
| 84 | 98 | * A LAN Address. This is an address to/from a LAN interface bridged |
| 85 | 99 | * by the BMC, not an address actually out on the LAN. |
| @@ -158,7 +172,7 @@ struct kernel_ipmi_msg { · 72 unmodified lines | ||
| 158 | 172 | * is used for the receive in-kernel interface and in the receive |
| 159 | 173 | * IOCTL. |
| 160 | 174 | * |
| 161 | − * The "IPMI_RESPONSE_RESPNOSE_TYPE" is a little strange sounding, but | |
| 175 | + * The "IPMI_RESPONSE_RESPONSE_TYPE" is a little strange sounding, but | |
| 162 | 176 | * it allows you to get the message results when you send a response |
| 163 | 177 | * message. |
| 164 | 178 | */ |