[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeipmi-devel
Subject:    Re: [Freeipmi-devel] 64-bit issues with OpenIPMI driver on  FreeBSD-7.2
From:       Dmitry Frolov <frol () nov ! net>
Date:       2009-12-31 7:04:50
Message-ID: 82a81e140912302304k3199fb8ao8fdbbef78c0897e1 () mail ! gmail ! com
[Download RAW message or body]

FreeBSD, unlike Linux, is actually pays attention to the direction of
ioctl parameters. It would be nice if OpenIPMI fix ioctl direction
too.

2009/12/28 Andy Cress <andy.cress@us.kontron.com>:
> 
> FYI.  Shortly after this email, I did get this issue resolved in ipmiutil-2.5.2.
> After the pragma_pack, I also had to change the IOCTL definitions, since they are \
> slightly different between Linux and FreeBSD. 
> Andy
> 
> -----Original Message-----
> From: freeipmi-devel-bounces+arcress=users.sourceforge.net@gnu.org \
> [mailto:freeipmi-devel-bounces+arcress=users.sourceforge.net@gnu.org] On Behalf Of \
>                 Andy Cress
> Sent: Friday, December 04, 2009 9:47 AM
> To: chu11@llnl.gov; Mark Lokowich
> Cc: freeipmi-devel@gnu.org
> Subject: RE: [Freeipmi-devel] 64-bit issues with OpenIPMI driver on FreeBSD-7.2
> 
> Mark,
> 
> There is definitely an interface incompatibility between the FreeBSD ipmi driver \
> and the Linux OpenIPMI driver.  The same code to talk to /dev/ipmi0 on Linux does \
> not work on FreeBSD (either 32-bit or 64-bit).  I haven't diagnosed why exactly, \
> but the ipmi_req size is a start.  If we had a solution, it could be implemented \
> with #ifdef's.  It's on my TODO list, but keeps getting bumped by more urgent \
> issues. 
> I believe that both FreeIPMI and ipmiutil use the direct I/O approach instead for \
> FreeBSD. Does anyone know of any code that DOES work with the FreeBSD /dev/ipmi0 \
> interface? 
> Andy
> 
> -----Original Message-----
> From: freeipmi-devel-bounces+arcress=users.sourceforge.net@gnu.org \
> [mailto:freeipmi-devel-bounces+arcress=users.sourceforge.net@gnu.org] On Behalf Of \
>                 Al Chu
> Sent: Thursday, December 03, 2009 4:51 PM
> To: Mark Lokowich
> Cc: freeipmi-devel (freeipmi-devel@gnu.org)
> Subject: Re: [Freeipmi-devel] 64-bit issues with OpenIPMI driver on FreeBSD-7.2
> 
> Hi Mark,
> 
> I don't personally have experience w/ the OpenIPMI driver on FreeBSD.
> As an FYI, you may want to try the OpenIPMI mailing list too to see if anyone else \
> there has experience w/ the driver on FreeBSD. 
> Al
> 
> On Thu, 2009-12-03 at 14:58 -0600, Mark Lokowich wrote:
> > I’m having problems using the OpenIPMI driver on a 64-bit FreeBSD-7.2
> > system.  Seems that the ipmi_req structure is being sized at 0x20
> > bytes when it should be 0x28.  This is causing incorrect encoding of
> > the ioctl IPMICTL_SEND_COMMAND, failing the operation.  I tried using
> > the 32-bit compatibility mode, but this was creating other problems
> > with casting and pointer widths.  This problem is only evident from a
> > C++ application that uses the driver, not when built as a standalone
> > IPMI test utility.  Any help?
> > 
> > 
> > 
> > Thanks,
> > 
> > Mark (mlokowich@compellent.com)
> > 
> > 
> > _______________________________________________
> > Freeipmi-devel mailing list
> > Freeipmi-devel@gnu.org
> > http://*lists.gnu.org/mailman/listinfo/freeipmi-devel
> --
> Albert Chu
> chu11@llnl.gov
> Computer Scientist
> High Performance Systems Division
> Lawrence Livermore National Laboratory
> 
> 
> 
> _______________________________________________
> Freeipmi-devel mailing list
> Freeipmi-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/freeipmi-devel
> 
> 
> 
> 
> 
> _______________________________________________
> Freeipmi-devel mailing list
> Freeipmi-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/freeipmi-devel
> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic