* Re: dmi_table counting in ipmi_si_intf.c
2005-08-09 23:43 dmi_table counting in ipmi_si_intf.c Vernon Mauery
@ 2005-08-09 16:15 ` Corey Minyard
0 siblings, 0 replies; 2+ messages in thread
From: Corey Minyard @ 2005-08-09 16:15 UTC (permalink / raw)
To: Vernon Mauery; +Cc: Rusty Russell, linux-kernel
I have no idea why that value was a "1". However, looking at this, the
"0" does seem correct; this is a valid patch.
-Corey
Vernon Mauery wrote:
>I am working on getting one of the IBM blades to use ipmi and have run
>into a problem. The driver doesn't load because it says it can't find
>the device.
>
>dmidecode shows that there are 39 entries and that the last one is the
>BMC. I looked into dmi_table and noticed that it parses the table by
>length and by number of entries. But I found that it goes from i=1 to
>i<num. This causes it to skip the last entry in the table. Is there a
>reason it is i=1 instead of i=0? or for that matter i<num instead of
>i<=num?
>
>Ensure that all dmi table entries get parsed.
>
>Signed-off-by: Vernon Mauery <vernux@us.ibm.com>
>---
>
>diff -uar a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
>--- a/drivers/char/ipmi/ipmi_si_intf.c 2005-08-09 08:11:41.000000000 -0700
>+++ b/drivers/char/ipmi/ipmi_si_intf.c 2005-08-09 08:12:51.000000000 -0700
>@@ -1690,7 +1690,7 @@ static int dmi_table(u32 base, int len,
> u8 __iomem *buf;
> struct dmi_header __iomem *dm;
> u8 __iomem *data;
>- int i=1;
>+ int i=0;
> int status=-1;
> int intf_num = 0;
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* dmi_table counting in ipmi_si_intf.c
@ 2005-08-09 23:43 Vernon Mauery
2005-08-09 16:15 ` Corey Minyard
0 siblings, 1 reply; 2+ messages in thread
From: Vernon Mauery @ 2005-08-09 23:43 UTC (permalink / raw)
To: Corey Minyard; +Cc: Rusty Russell, linux-kernel
I am working on getting one of the IBM blades to use ipmi and have run
into a problem. The driver doesn't load because it says it can't find
the device.
dmidecode shows that there are 39 entries and that the last one is the
BMC. I looked into dmi_table and noticed that it parses the table by
length and by number of entries. But I found that it goes from i=1 to
i<num. This causes it to skip the last entry in the table. Is there a
reason it is i=1 instead of i=0? or for that matter i<num instead of
i<=num?
Ensure that all dmi table entries get parsed.
Signed-off-by: Vernon Mauery <vernux@us.ibm.com>
---
diff -uar a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
--- a/drivers/char/ipmi/ipmi_si_intf.c 2005-08-09 08:11:41.000000000 -0700
+++ b/drivers/char/ipmi/ipmi_si_intf.c 2005-08-09 08:12:51.000000000 -0700
@@ -1690,7 +1690,7 @@ static int dmi_table(u32 base, int len,
u8 __iomem *buf;
struct dmi_header __iomem *dm;
u8 __iomem *data;
- int i=1;
+ int i=0;
int status=-1;
int intf_num = 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-09 16:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09 23:43 dmi_table counting in ipmi_si_intf.c Vernon Mauery
2005-08-09 16:15 ` Corey Minyard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox