ipmi on ia64?
Grr, I've fixed that at least once. You are correct, this is wrong. Others have IPMI this on ia64, and it does work.
The following patch fixes the problem (changes it to (IPMI_TIMEOUT_TIME * HZ) / 1000). It also contains fixes for the previous patch I send that you had problems with.
Linus, assuming Rusty doesn't have any problems with this, could you apply?
Thanks for pointing this out,
-Corey
Quoted 8 lines · Randy.Dunlap
Hi Corey,
Is IPMI meant to work on ia64? I'm not trying to use it, just build it. I'm getting gcc warnings in
impi_msghandler.c, wheneverIPMI_TIMEOUT_JIFFIESis referenced. The warning message is "division by zero" since HZ is 1024 and the #define is (IPMI_TIMEOUT_TIME/(1000/HZ))
Quoted 9 lines
Is there an assumption here that HZ is 1000? If so, that's not good.
--
~Randy [on 2.6.0-test4]
Index: include/linux/ipmi_msgdefs.h
===================================================================
RCS file: /home/cvs/linux-2.5/include/linux/ipmi_msgdefs.h,v retrieving revision 1.2
linux/ipmi_msgdefs.h +15 -5
@@ -37,22 +37,32 @@/* Various definitions for IPMI messages used by almost everything in the IPMI stack. */ -#define IPMI_NETFN_APP_REQUEST 0x06 -#define IPMI_NETFN_APP_RESPONSE 0x07 +/* NetFNs and commands used inside the IPMI stack. */ -#define IPMI_BMC_SLAVE_ADDR 0x20 +#define IPMI_NETFN_SENSOR_EVENT_REQUEST 0x04 +#define IPMI_NETFN_SENSOR_EVENT_RESPONSE 0x05 +#define IPMI_GET_EVENT_RECEIVER_CMD 0x01 +#define IPMI_NETFN_APP_REQUEST 0x06 +#define IPMI_NETFN_APP_RESPONSE 0x07#define IPMI_GET_DEVICE_ID_CMD 0x01 -#define IPMI_CLEAR_MSG_FLAGS_CMD 0x30#define IPMI_GET_MSG_FLAGS_CMD 0x31#define IPMI_SEND_MSG_CMD 0x34#define IPMI_GET_MSG_CMD 0x33 -#define IPMI_SET_BMC_GLOBAL_ENABLES_CMD 0x2e#define IPMI_GET_BMC_GLOBAL_ENABLES_CMD 0x2f#define IPMI_READ_EVENT_MSG_BUFFER_CMD 0x35 +#define IPMI_NETFN_STORAGE_REQUEST 0x0a +#define IPMI_NETFN_STORAGE_RESPONSE 0x0b +#define IPMI_ADD_SEL_ENTRY_CMD 0x44 + +/* The default slave address */ +#define IPMI_BMC_SLAVE_ADDR 0x20 +#define IPMI_MAX_MSG_LENGTH 80 + +#define IPMI_CC_NO_ERROR 0#endif /* __LINUX_IPMI_MSGDEFS_H */
Index: drivers/char/ipmi/Kconfig
===================================================================
RCS file: /home/cvs/linux-2.5/drivers/char/ipmi/Kconfig,v retrieving revision 1.3
char/ipmi/Kconfig +12 -0
@@ -24,6 +24,18 @@ generate an IPMI event describing the panic to each interface registered with the message handler. +config IPMI_PANIC_STRING + bool 'Generate OEM events containing the panic string' + depends on IPMI_PANIC_EVENT + help + When a panic occurs, this will cause the IPMI message handler to + generate IPMI OEM type f0 events holding the IPMB address of the + panic generator (byte 4 of the event), a sequence number for the + string (byte 5 of the event) and part of the string (the rest of the + event). Bytes 1, 2, and 3 are the normal usage for an OEM event. + You can fetch these events and use the sequence numbers to piece the + string together. + config IPMI_DEVICE_INTERFACE tristate 'Device interface for IPMI' depends on IPMI_HANDLER
Index: drivers/char/ipmi/ipmi_msghandler.c
===================================================================
RCS file: /home/cvs/linux-2.5/drivers/char/ipmi/ipmi_msghandler.c,v retrieving revision 1.7
char/ipmi/ipmi_msghandler.c +186 -14
258 lines not on this page · raw message