All of lore.kernel.org
 help / color / mirror / Atom feed
* Sending I2C command via google-ipmi i2c
@ 2019-04-12  5:46 George Hung (洪忠敬)
  2019-04-12 14:23 ` Patrick Venture
  0 siblings, 1 reply; 4+ messages in thread
From: George Hung (洪忠敬) @ 2019-04-12  5:46 UTC (permalink / raw)
  To: OpenBMC Maillist (openbmc@lists.ozlabs.org)
  Cc: Patrick Venture (venture@google.com),
	emilyshaffer, benjaminfair, vernon.mauery

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

Hi all,

I’m trying to sending ipmi I2C command via google-ipmi-i2c extension,
but I will get the response error, “Unspecified error” from ipmitool.

There are the command and response example below:

# ipmitool raw 0x2e 0x02 0x79 0x2b 0x00 1 0 0x98 0 1 0 0x99 0 2
Unable to send RAW command (channel=0x0 netfn=0x2e lun=0x0 cmd=0x2 rsp=0xff): Unspecified error

I check the error message from journal and it indicates that cannot open /dev/i2c-121 and I think it used the first byte of IANA number (0x79) as bus number.

Has anyone ever met this situation ? or something I have to configure for phosphor-ipmi-host / google-ipmi-i2c ?


Best Regards
George Hung

[-- Attachment #2: Type: text/html, Size: 3868 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sending I2C command via google-ipmi i2c
  2019-04-12  5:46 Sending I2C command via google-ipmi i2c George Hung (洪忠敬)
@ 2019-04-12 14:23 ` Patrick Venture
  2019-04-16  3:38   ` George Hung (洪忠敬)
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Venture @ 2019-04-12 14:23 UTC (permalink / raw)
  To: George Hung (洪忠敬)
  Cc: OpenBMC Maillist (openbmc@lists.ozlabs.org),
	Patrick Venture (venture@google.com),
	emilyshaffer, benjaminfair, vernon.mauery, tomjoseph

On Thu, Apr 11, 2019 at 10:46 PM George Hung (洪忠敬)
<George.Hung@quantatw.com> wrote:
>
> Hi all,
>
>
>
> I’m trying to sending ipmi I2C command via google-ipmi-i2c extension,
>
> but I will get the response error, “Unspecified error” from ipmitool.
>
>
>
> There are the command and response example below:
>
>
>
> # ipmitool raw 0x2e 0x02 0x79 0x2b 0x00 1 0 0x98 0 1 0 0x99 0 2
>
> Unable to send RAW command (channel=0x0 netfn=0x2e lun=0x0 cmd=0x2 rsp=0xff): Unspecified error
>
>
>
> I check the error message from journal and it indicates that cannot open /dev/i2c-121 and I think it used the first byte of IANA number (0x79) as bus number.

I have a little breakout I use:
ipmitool -I dbus raw 0x2e 0x05 0xcf 0xc2 0x00 0x00 0x02 0x00 0x00 0x00
                                 |--|    |--|    |------------|
|----------------------|
                                 |       |        |              |   reqBuf
                                 |       |        | oem group
                                 |       | command
                                 | netfn for oem

So 0x2e is the netfn, properly parsed.
So 0x02 is the command, properly parsed.
So 0x79 0x2b 0x00 is the OEM group
So 0x00 1 0 0x98 0 1 0 0x99 0 2 is the command payload

As you say, it sounds like there's a bug in parsing the length of the
OEM group number.  We haven't rebased onto the newest ipmid
downstream, so we haven't tested it ourselves.  But this sounds like a
bug in the new ipmid.

IIRC, they weren't properly handling OEM groups and recently fixed it.
Please specify the SHA1 of the phosphor-host-ipmid source you're using
to build this.

>
>
>
> Has anyone ever met this situation ? or something I have to configure for phosphor-ipmi-host / google-ipmi-i2c ?
>
>
>
>
>
> Best Regards
>
> George Hung

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Sending I2C command via google-ipmi i2c
  2019-04-12 14:23 ` Patrick Venture
@ 2019-04-16  3:38   ` George Hung (洪忠敬)
  2019-04-16  3:42     ` William Kennington
  0 siblings, 1 reply; 4+ messages in thread
From: George Hung (洪忠敬) @ 2019-04-16  3:38 UTC (permalink / raw)
  To: Patrick Venture
  Cc: OpenBMC Maillist (openbmc@lists.ozlabs.org),
	emilyshaffer, benjaminfair, vernon.mauery, tomjoseph

> -----Original Message-----
> From: Patrick Venture [mailto:venture@google.com]
> Sent: Friday, April 12, 2019 10:23 PM
> To: George Hung (洪忠敬)
> Cc: OpenBMC Maillist (openbmc@lists.ozlabs.org); Patrick Venture
> (venture@google.com); emilyshaffer@google.com;
> benjaminfair@google.com; vernon.mauery@linux.intel.com;
> tomjoseph@in.ibm.com
> Subject: Re: Sending I2C command via google-ipmi i2c
> 
> On Thu, Apr 11, 2019 at 10:46 PM George Hung (洪忠敬)
> <George.Hung@quantatw.com> wrote:
> >
> > Hi all,
> >
> >
> >
> > I’m trying to sending ipmi I2C command via google-ipmi-i2c extension,
> >
> > but I will get the response error, “Unspecified error” from ipmitool.
> >
> >
> >
> > There are the command and response example below:
> >
> >
> >
> > # ipmitool raw 0x2e 0x02 0x79 0x2b 0x00 1 0 0x98 0 1 0 0x99 0 2
> >
> > Unable to send RAW command (channel=0x0 netfn=0x2e lun=0x0 cmd=0x2
> > rsp=0xff): Unspecified error
> >
> >
> >
> > I check the error message from journal and it indicates that cannot open
> /dev/i2c-121 and I think it used the first byte of IANA number (0x79) as bus
> number.
> 
> I have a little breakout I use:
> ipmitool -I dbus raw 0x2e 0x05 0xcf 0xc2 0x00 0x00 0x02 0x00 0x00 0x00
>                                  |--|    |--|    |------------|
> |----------------------|
>                                  |       |        |
> |   reqBuf
>                                  |       |        | oem group
>                                  |       | command
>                                  | netfn for oem
> 
> So 0x2e is the netfn, properly parsed.
> So 0x02 is the command, properly parsed.
> So 0x79 0x2b 0x00 is the OEM group
> So 0x00 1 0 0x98 0 1 0 0x99 0 2 is the command payload
> 
> As you say, it sounds like there's a bug in parsing the length of the OEM group
> number.  We haven't rebased onto the newest ipmid downstream, so we
> haven't tested it ourselves.  But this sounds like a bug in the new ipmid.
> 
> IIRC, they weren't properly handling OEM groups and recently fixed it.
> Please specify the SHA1 of the phosphor-host-ipmid source you're using to
> build this.

SHA1 Revision: c46f6cd7dc47ccafcd2e86e160a32fe1be404e7e

> 
> >
> >
> >
> > Has anyone ever met this situation ? or something I have to configure for
> phosphor-ipmi-host / google-ipmi-i2c ?
> >
> >
> >
> >
> >
> > Best Regards
> >
> > George Hung


BRs

George Hung

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sending I2C command via google-ipmi i2c
  2019-04-16  3:38   ` George Hung (洪忠敬)
@ 2019-04-16  3:42     ` William Kennington
  0 siblings, 0 replies; 4+ messages in thread
From: William Kennington @ 2019-04-16  3:42 UTC (permalink / raw)
  To: George Hung (洪忠敬)
  Cc: Patrick Venture, emilyshaffer, vernon.mauery,
	OpenBMC Maillist (openbmc@lists.ozlabs.org),
	tomjoseph, benjaminfair

OEM commands currently don't work in host-ipmid. I'm testing a bunch
of random fixups to ipmid to get this kind of stuff working again
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/20622

On Mon, Apr 15, 2019 at 8:39 PM George Hung (洪忠敬)
<George.Hung@quantatw.com> wrote:
>
> > -----Original Message-----
> > From: Patrick Venture [mailto:venture@google.com]
> > Sent: Friday, April 12, 2019 10:23 PM
> > To: George Hung (洪忠敬)
> > Cc: OpenBMC Maillist (openbmc@lists.ozlabs.org); Patrick Venture
> > (venture@google.com); emilyshaffer@google.com;
> > benjaminfair@google.com; vernon.mauery@linux.intel.com;
> > tomjoseph@in.ibm.com
> > Subject: Re: Sending I2C command via google-ipmi i2c
> >
> > On Thu, Apr 11, 2019 at 10:46 PM George Hung (洪忠敬)
> > <George.Hung@quantatw.com> wrote:
> > >
> > > Hi all,
> > >
> > >
> > >
> > > I’m trying to sending ipmi I2C command via google-ipmi-i2c extension,
> > >
> > > but I will get the response error, “Unspecified error” from ipmitool.
> > >
> > >
> > >
> > > There are the command and response example below:
> > >
> > >
> > >
> > > # ipmitool raw 0x2e 0x02 0x79 0x2b 0x00 1 0 0x98 0 1 0 0x99 0 2
> > >
> > > Unable to send RAW command (channel=0x0 netfn=0x2e lun=0x0 cmd=0x2
> > > rsp=0xff): Unspecified error
> > >
> > >
> > >
> > > I check the error message from journal and it indicates that cannot open
> > /dev/i2c-121 and I think it used the first byte of IANA number (0x79) as bus
> > number.
> >
> > I have a little breakout I use:
> > ipmitool -I dbus raw 0x2e 0x05 0xcf 0xc2 0x00 0x00 0x02 0x00 0x00 0x00
> >                                  |--|    |--|    |------------|
> > |----------------------|
> >                                  |       |        |
> > |   reqBuf
> >                                  |       |        | oem group
> >                                  |       | command
> >                                  | netfn for oem
> >
> > So 0x2e is the netfn, properly parsed.
> > So 0x02 is the command, properly parsed.
> > So 0x79 0x2b 0x00 is the OEM group
> > So 0x00 1 0 0x98 0 1 0 0x99 0 2 is the command payload
> >
> > As you say, it sounds like there's a bug in parsing the length of the OEM group
> > number.  We haven't rebased onto the newest ipmid downstream, so we
> > haven't tested it ourselves.  But this sounds like a bug in the new ipmid.
> >
> > IIRC, they weren't properly handling OEM groups and recently fixed it.
> > Please specify the SHA1 of the phosphor-host-ipmid source you're using to
> > build this.
>
> SHA1 Revision: c46f6cd7dc47ccafcd2e86e160a32fe1be404e7e
>
> >
> > >
> > >
> > >
> > > Has anyone ever met this situation ? or something I have to configure for
> > phosphor-ipmi-host / google-ipmi-i2c ?
> > >
> > >
> > >
> > >
> > >
> > > Best Regards
> > >
> > > George Hung
>
>
> BRs
>
> George Hung

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-16  3:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12  5:46 Sending I2C command via google-ipmi i2c George Hung (洪忠敬)
2019-04-12 14:23 ` Patrick Venture
2019-04-16  3:38   ` George Hung (洪忠敬)
2019-04-16  3:42     ` William Kennington

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.