mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
[PATCH] IPMI: Add maintenance mode
Some commands and operations on a BMC can cause the BMC to "go away" for a while. This can cause the automatic flag processing and other things of that nature to timeout and generate annoying logs, or possibly cause other bad things to happen when in firmware update mode. Add detection of those commands (cold reset, warm reset, and any firmware command) and turns off automatic processing for 30 seconds. It also add a manual override either way. Signed-off-by: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
b2c03941b5
commit
b9675136e2
6 changed files with 207 additions and 1 deletions
|
@ -46,6 +46,8 @@
|
|||
#define IPMI_NETFN_APP_REQUEST 0x06
|
||||
#define IPMI_NETFN_APP_RESPONSE 0x07
|
||||
#define IPMI_GET_DEVICE_ID_CMD 0x01
|
||||
#define IPMI_COLD_RESET_CMD 0x02
|
||||
#define IPMI_WARM_RESET_CMD 0x03
|
||||
#define IPMI_CLEAR_MSG_FLAGS_CMD 0x30
|
||||
#define IPMI_GET_DEVICE_GUID_CMD 0x08
|
||||
#define IPMI_GET_MSG_FLAGS_CMD 0x31
|
||||
|
@ -60,6 +62,9 @@
|
|||
#define IPMI_NETFN_STORAGE_RESPONSE 0x0b
|
||||
#define IPMI_ADD_SEL_ENTRY_CMD 0x44
|
||||
|
||||
#define IPMI_NETFN_FIRMWARE_REQUEST 0x08
|
||||
#define IPMI_NETFN_FIRMWARE_RESPONSE 0x09
|
||||
|
||||
/* The default slave address */
|
||||
#define IPMI_BMC_SLAVE_ADDR 0x20
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue