LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 7/12] IPMI: add poll delay
@ 2006-12-02 4:35 Corey Minyard
2006-12-03 21:26 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Corey Minyard @ 2006-12-02 4:35 UTC (permalink / raw)
To: Andrew Morton, Linux Kernel; +Cc: OpenIPMI Developers
Make sure to delay a little in the IPMI poll routine so we can pass in
a timeout time and thus time things out.
Signed-off-by: Corey Minyard <minyard@acm.org>
Index: linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
--- linux-2.6.19-rc6.orig/drivers/char/ipmi/ipmi_si_intf.c
+++ linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
@@ -807,7 +807,12 @@ static void poll(void *send_info)
{
struct smi_info *smi_info = send_info;
- smi_event_handler(smi_info, 0);
+ /*
+ * Make sure there is some delay in the poll loop so we can
+ * drive time forward and timeout things.
+ */
+ udelay(10);
+ smi_event_handler(smi_info, 10);
}
static void request_events(void *send_info)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 7/12] IPMI: add poll delay
2006-12-02 4:35 [PATCH 7/12] IPMI: add poll delay Corey Minyard
@ 2006-12-03 21:26 ` Andrew Morton
2006-12-05 13:43 ` Corey Minyard
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2006-12-03 21:26 UTC (permalink / raw)
To: minyard; +Cc: Linux Kernel, OpenIPMI Developers
On Fri, 1 Dec 2006 22:35:20 -0600
Corey Minyard <minyard@acm.org> wrote:
> Make sure to delay a little in the IPMI poll routine so we can pass in
> a timeout time and thus time things out.
>
> Signed-off-by: Corey Minyard <minyard@acm.org>
>
> Index: linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
> ===================================================================
> --- linux-2.6.19-rc6.orig/drivers/char/ipmi/ipmi_si_intf.c
> +++ linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
> @@ -807,7 +807,12 @@ static void poll(void *send_info)
> {
> struct smi_info *smi_info = send_info;
>
> - smi_event_handler(smi_info, 0);
> + /*
> + * Make sure there is some delay in the poll loop so we can
> + * drive time forward and timeout things.
> + */
> + udelay(10);
> + smi_event_handler(smi_info, 10);
> }
I don't understand what this patch is doing. It looks fishy. More
details, please?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 7/12] IPMI: add poll delay
2006-12-03 21:26 ` Andrew Morton
@ 2006-12-05 13:43 ` Corey Minyard
2006-12-05 22:40 ` Jesper Juhl
0 siblings, 1 reply; 4+ messages in thread
From: Corey Minyard @ 2006-12-05 13:43 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel, OpenIPMI Developers
Andrew Morton wrote:
> On Fri, 1 Dec 2006 22:35:20 -0600
> Corey Minyard <minyard@acm.org> wrote:
>
>
>> Make sure to delay a little in the IPMI poll routine so we can pass in
>> a timeout time and thus time things out.
>>
>> Signed-off-by: Corey Minyard <minyard@acm.org>
>>
>> Index: linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
>> ===================================================================
>> --- linux-2.6.19-rc6.orig/drivers/char/ipmi/ipmi_si_intf.c
>> +++ linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
>> @@ -807,7 +807,12 @@ static void poll(void *send_info)
>> {
>> struct smi_info *smi_info = send_info;
>>
>> - smi_event_handler(smi_info, 0);
>> + /*
>> + * Make sure there is some delay in the poll loop so we can
>> + * drive time forward and timeout things.
>> + */
>> + udelay(10);
>> + smi_event_handler(smi_info, 10);
>> }
>>
>
> I don't understand what this patch is doing. It looks fishy. More
> details, please?
>
Yeah, it does look a little fishy. This is a poll routine that is only
called at panic
time; it is used to force things to happen in the driver without
scheduling or
timers. The driver does this so it can set watchdog parameters and store
panic information in the event log at panic time.
Without this change, if something goes wrong in the BMC the driver will
never
time out the operation since it doesn't see time being driven forward.
So this
makes sure the driver sees time advancing as it should.
-Corey
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 7/12] IPMI: add poll delay
2006-12-05 13:43 ` Corey Minyard
@ 2006-12-05 22:40 ` Jesper Juhl
0 siblings, 0 replies; 4+ messages in thread
From: Jesper Juhl @ 2006-12-05 22:40 UTC (permalink / raw)
To: Corey Minyard; +Cc: Andrew Morton, Linux Kernel, OpenIPMI Developers
On 05/12/06, Corey Minyard <minyard@acm.org> wrote:
> Andrew Morton wrote:
> > On Fri, 1 Dec 2006 22:35:20 -0600
> > Corey Minyard <minyard@acm.org> wrote:
> >
> >
> >> Make sure to delay a little in the IPMI poll routine so we can pass in
> >> a timeout time and thus time things out.
> >>
> >> Signed-off-by: Corey Minyard <minyard@acm.org>
> >>
> >> Index: linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
> >> ===================================================================
> >> --- linux-2.6.19-rc6.orig/drivers/char/ipmi/ipmi_si_intf.c
> >> +++ linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
> >> @@ -807,7 +807,12 @@ static void poll(void *send_info)
> >> {
> >> struct smi_info *smi_info = send_info;
> >>
> >> - smi_event_handler(smi_info, 0);
> >> + /*
> >> + * Make sure there is some delay in the poll loop so we can
> >> + * drive time forward and timeout things.
> >> + */
> >> + udelay(10);
> >> + smi_event_handler(smi_info, 10);
> >> }
> >>
> >
> > I don't understand what this patch is doing. It looks fishy. More
> > details, please?
> >
> Yeah, it does look a little fishy. This is a poll routine that is only
> called at panic
> time; it is used to force things to happen in the driver without
> scheduling or
> timers. The driver does this so it can set watchdog parameters and store
> panic information in the event log at panic time.
>
> Without this change, if something goes wrong in the BMC the driver will
> never
> time out the operation since it doesn't see time being driven forward.
> So this
> makes sure the driver sees time advancing as it should.
>
Hmm, I wonder if this could explain why some of my IBM servers become
unreachable via IPMI after a kernel crash.
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-05 22:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-02 4:35 [PATCH 7/12] IPMI: add poll delay Corey Minyard
2006-12-03 21:26 ` Andrew Morton
2006-12-05 13:43 ` Corey Minyard
2006-12-05 22:40 ` Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).