public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Mike Maslenkin" <mike.maslenkin@gmail.com>
To: "Chang, Abner" <Abner.Chang@amd.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	Nickle Wang <nicklew@nvidia.com>,
	 "igork@ami.com" <igork@ami.com>
Subject: Re: [edk2-devel] [PATCH v2 3/3] RedfishPkg: fix searching for the BMC-exposed USB NIC
Date: Thu, 30 Nov 2023 03:24:08 +0300	[thread overview]
Message-ID: <CAL77WPANAQnXZ2eVx=r68vrOcaTf8kwnRWjWFRawQnQEnmotBQ@mail.gmail.com> (raw)
In-Reply-To: <MN2PR12MB3966FC8FFD6C3B41A50CE2CBEABDA@MN2PR12MB3966.namprd12.prod.outlook.com>

Hi Abner,

I dropped patch 3/3, added R-b and created PR
https://github.com/tianocore/edk2/pull/5091

Regards,
Mike

On Mon, Nov 27, 2023 at 5:25 AM Chang, Abner <Abner.Chang@amd.com> wrote:
>
> [AMD Official Use Only - General]
>
> Ok, thanks. Then we will just merge 1/3 and 2/3.
>
> Not quite right, as maintainer has to change the label to "push" on PR then CI will merge it automatically. So, there must be a PR for the change.  Also for the CI tests.
>
> Thanks
> Abner
>
> > -----Original Message-----
> > From: Mike Maslenkin <mike.maslenkin@gmail.com>
> > Sent: Monday, November 27, 2023 4:41 AM
> > To: Chang, Abner <Abner.Chang@amd.com>
> > Cc: devel@edk2.groups.io; Nickle Wang <nicklew@nvidia.com>;
> > igork@ami.com
> > Subject: Re: [edk2-devel] [PATCH v2 3/3] RedfishPkg: fix searching for the
> > BMC-exposed USB NIC
> >
> > Caution: This message originated from an External Source. Use proper caution
> > when opening attachments, clicking links, or responding.
> >
> >
> > Hi Abner,
> >
> > I agree with your fixes.
> > This patch can be dropped from this set.
> >
> > BTW, do I understand correctly, PR is not required because changes are trivial?
> >
> > Regards,
> > Mike.
> >
> > On Thu, Nov 23, 2023 at 6:06 AM Chang, Abner <Abner.Chang@amd.com>
> > wrote:
> > >
> > > [AMD Official Use Only - General]
> > >
> > > Good to go. We can merge this after code freeze.
> > >
> > > Abner
> > >
> > > > -----Original Message-----
> > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of
> > Chang,
> > > > Abner via groups.io
> > > > Sent: Thursday, November 23, 2023 9:20 AM
> > > > To: Nickle Wang <nicklew@nvidia.com>; Mike Maslenkin
> > > > <mike.maslenkin@gmail.com>; devel@edk2.groups.io
> > > > Cc: igork@ami.com
> > > > Subject: Re: [edk2-devel] [PATCH v2 3/3] RedfishPkg: fix searching for the
> > > > BMC-exposed USB NIC
> > > >
> > > > [AMD Official Use Only - General]
> > > >
> > > > Caution: This message originated from an External Source. Use proper
> > caution
> > > > when opening attachments, clicking links, or responding.
> > > >
> > > >
> > > > [AMD Official Use Only - General]
> > > >
> > > > HI Nickle and Mike,
> > > > I also have some fixes and revised BMC USB NIC library for searching BMC
> > > > exposed NIC.
> > > > Please don't not merge this patch set just for now. I will review this and
> > > > compare with the changes I have.
> > > >
> > > > Thanks
> > > > Abner
> > > >
> > > > > -----Original Message-----
> > > > > From: Nickle Wang <nicklew@nvidia.com>
> > > > > Sent: Thursday, November 23, 2023 8:24 AM
> > > > > To: Mike Maslenkin <mike.maslenkin@gmail.com>;
> > devel@edk2.groups.io
> > > > > Cc: Chang, Abner <Abner.Chang@amd.com>; igork@ami.com
> > > > > Subject: RE: [PATCH v2 3/3] RedfishPkg: fix searching for the BMC-
> > exposed
> > > > > USB NIC
> > > > >
> > > > > Caution: This message originated from an External Source. Use proper
> > > > caution
> > > > > when opening attachments, clicking links, or responding.
> > > > >
> > > > >
> > > > > Reviewed-by: Nickle Wang <nicklew@nvidia.com>
> > > > >
> > > > > Regards,
> > > > > Nickle
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Mike Maslenkin <mike.maslenkin@gmail.com>
> > > > > > Sent: Thursday, November 23, 2023 8:01 AM
> > > > > > To: devel@edk2.groups.io
> > > > > > Cc: abner.chang@amd.com; Nickle Wang <nicklew@nvidia.com>;
> > > > > > igork@ami.com
> > > > > > Subject: [PATCH v2 3/3] RedfishPkg: fix searching for the BMC-exposed
> > > > USB
> > > > > NIC
> > > > > >
> > > > > > External email: Use caution opening links or attachments
> > > > > >
> > > > > >
> > > > > > According to RedfishPkg/Readme.md document:
> > > > > > "The last byte of host-end USB NIC MAC address is the last byte of
> > BMC-
> > > > end
> > > > > USB
> > > > > > NIC MAC address minus 1."
> > > > > >
> > > > > > It is necessary to subtract 1 from IpmiLanChannelMacAddress.
> > > > > >
> > > > > > Cc: Abner Chang <abner.chang@amd.com>
> > > > > > Cc: Nickle Wang <nicklew@nvidia.com>
> > > > > > Cc: Igor Kulchytskyy <igork@ami.com>
> > > > > > Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
> > > > > > ---
> > > > > >  .../PlatformHostInterfaceBmcUsbNicLib.c                       | 4 ++--
> > > > > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > > > > >
> > > > > > diff --git
> > > > > >
> > > > >
> > > >
> > a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInter
> > > > > fac
> > > > > > eBmcUsbNicLib.c
> > > > > >
> > > > >
> > > >
> > b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInter
> > > > > fac
> > > > > > eBmcUsbNicLib.c
> > > > > > index 95900579118b..20ec89d4fcb0 100644
> > > > > > ---
> > > > > >
> > > > >
> > > >
> > a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInter
> > > > > fac
> > > > > > eBmcUsbNicLib.c
> > > > > > +++
> > > > >
> > b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostI
> > > > > > +++ nterfaceBmcUsbNicLib.c
> > > > > > @@ -738,8 +738,8 @@ HostInterfaceIpmiCheckMacAddress (
> > > > > >               (VOID *)&IpmiLanChannelMacAddress.Addr,
> > > > > >
> > > > > >               IpmiLanMacAddressSize - 1
> > > > > >
> > > > > >               ) != 0) ||
> > > > > >
> > > > > > -          (IpmiLanChannelMacAddress.Addr[IpmiLanMacAddressSize -
> > 1] !=
> > > > > >
> > > > > > -           *(UsbNicInfo->MacAddress + IpmiLanMacAddressSize - 1) - 1)
> > > > > >
> > > > > > +          (IpmiLanChannelMacAddress.Addr[IpmiLanMacAddressSize - 1]
> > - 1
> > > > > > + !=
> > > > > >
> > > > > > +           *(UsbNicInfo->MacAddress + IpmiLanMacAddressSize - 1))
> > > > > >
> > > > > >            )
> > > > > >
> > > > > >        {
> > > > > >
> > > > > >          DEBUG ((DEBUG_REDFISH_HOST_INTERFACE, "    MAC address is
> > not
> > > > > > matched.\n"));
> > > > > >
> > > > > > --
> > > > > > 2.32.0 (Apple Git-132)
> > > >
> > > >
> > > >
> > > > 
> > > >
> > >


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111864): https://edk2.groups.io/g/devel/message/111864
Mute This Topic: https://groups.io/mt/102759080/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2023-11-30  0:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-23  0:01 [edk2-devel] [PATCH v2 0/3] RedfishPkg: refine HiiUtilityLib and fix USB NIC discovering Mike Maslenkin
2023-11-23  0:01 ` [edk2-devel] [PATCH v2 1/3] RedfishPkg: fix memory leak in HiiUtilityLib Mike Maslenkin
2023-11-23  0:17   ` Nickle Wang via groups.io
2023-11-23  0:01 ` [edk2-devel] [PATCH v2 2/3] RedfishPkg: add explicit variable initialization Mike Maslenkin
2023-11-23  0:18   ` Nickle Wang via groups.io
2023-11-23  0:01 ` [edk2-devel] [PATCH v2 3/3] RedfishPkg: fix searching for the BMC-exposed USB NIC Mike Maslenkin
2023-11-23  0:24   ` Nickle Wang via groups.io
2023-11-23  1:20     ` Chang, Abner via groups.io
     [not found]     ` <179A1BD569EE113B.9514@groups.io>
2023-11-23  3:06       ` Chang, Abner via groups.io
2023-11-26 20:40         ` Mike Maslenkin
2023-11-27  2:25           ` Chang, Abner via groups.io
2023-11-30  0:24             ` Mike Maslenkin [this message]
2023-11-30  3:13               ` Chang, Abner via groups.io
2023-11-23  3:05   ` Chang, Abner via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAL77WPANAQnXZ2eVx=r68vrOcaTf8kwnRWjWFRawQnQEnmotBQ@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox