Re: [Openipmi-developer] [PATCH] ipmi: fix unsigned long underflow

2017-08-07 Thread Weilong Chen
Hi Minyard, I test this patch, it works. Thanks. On 2017/7/30 10:20, miny...@acm.org wrote: From: Corey Minyard When I set the timeout to a specific value such as 500ms, the timeout event will not happen in time due to the overflow in function check_msg_timeout: ... ent->timeout -= t

Re: [Openipmi-developer] [PATCH] ipmi: fix unsigned long underflow

2017-08-07 Thread Corey Minyard
On 08/07/2017 03:41 AM, Weilong Chen wrote: Hi Minyard, I test this patch, it works. Thanks. Thanks, I added a Tested-by: for you and it's queued for the next release. If it's urgent I can send it in now. I also added this for the stable kernels 3.16 and later. -corey On 2017/7/30 10:20,

Re: [Openipmi-developer] [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C

2017-08-07 Thread Brendan Higgins via Openipmi-developer
On Sat, Aug 5, 2017 at 3:23 PM, Corey Minyard wrote: > On 08/04/2017 08:18 PM, Brendan Higgins wrote: >> >> This patchset introduces IPMI Block Transfer over I2C (BT-I2C), which has >> the >> same semantics as IPMI Block Transfer except it done over I2C. >> >> For the OpenBMC people, this is based

[Openipmi-developer] [RFC v1 4/4] ipmi_bmc: bt-aspeed: port driver to IPMI BMC framework

2017-08-07 Thread Brendan Higgins via Openipmi-developer
From: Benjamin Fair The driver was handling interaction with userspace on its own. This patch changes it to use the functionality of the ipmi_bmc framework instead. Note that this removes the ability for the BMC to set SMS_ATN by making an ioctl. If this functionality is required, it can be adde

[Openipmi-developer] [RFC v1 2/4] ipmi_bmc: device interface to IPMI BMC framework

2017-08-07 Thread Brendan Higgins via Openipmi-developer
From: Benjamin Fair This creates a char device which allows userspace programs to send and receive IPMI messages. Messages are only routed to userspace if no other kernel driver can handle them. Signed-off-by: Benjamin Fair Signed-off-by: Brendan Higgins --- drivers/char/ipmi_bmc/Kconfig

[Openipmi-developer] [RFC v1 3/4] ipmi_bmc: bt-i2c: port driver to IPMI BMC framework

2017-08-07 Thread Brendan Higgins via Openipmi-developer
From: Benjamin Fair Instead of handling interaction with userspace and providing a file interface, rely on the IPMI BMC framework to do this. This simplifies the logic and eliminates duplicate code. Signed-off-by: Benjamin Fair Signed-off-by: Brendan Higgins --- drivers/char/ipmi_bmc/ipmi_bmc

[Openipmi-developer] [RFC v1 0/4] ipmi_bmc: framework for IPMI on BMCs

2017-08-07 Thread Brendan Higgins via Openipmi-developer
This introduces a framework for implementing the BMC side of the IPMI protocol, roughly mirroring the host side OpenIPMI framework; it attempts to abstract away hardware interfaces, such as Block Transfer interface hardware implementations from IPMI command handlers. It does this by implementing t

[Openipmi-developer] [RFC v1 1/4] ipmi_bmc: framework for BT IPMI on BMCs

2017-08-07 Thread Brendan Higgins via Openipmi-developer
From: Benjamin Fair This patch introduces a framework for writing IPMI drivers which run on a Board Management Controller. It is similar in function to OpenIPMI. The framework handles registering devices and routing messages. Signed-off-by: Benjamin Fair Signed-off-by: Brendan Higgins --- dri