From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [edk2-devel] [PATCH edk2-platforms v2 3/3] IpmiFeaturePkg: refine GetSelfTest function To: Mike Maslenkin ,devel@edk2.groups.io From: "Arun K" X-Originating-Location: Chennai, Tamil Nadu, IN (157.49.243.247) X-Originating-Platform: Windows Chrome 110 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 09 Mar 2023 04:01:31 -0800 References: <20230308231845.10895-4-mike.maslenkin@gmail.com> In-Reply-To: <20230308231845.10895-4-mike.maslenkin@gmail.com> Message-ID: <8800.1678363291792293164@groups.io> Content-Type: multipart/alternative; boundary="oZBTSfiGMWa7ggNbnok5" --oZBTSfiGMWa7ggNbnok5 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable We are not updating the BMC status in the switch()( *default case* ), which= may lead to installing the IPMI protocol for the failure case too. Could y= ou please initialize the BMC status in the default case also? switch ( SelfTestResult->Result ) { case IPMI_APP_SELFTEST_NO_ERROR: case IPMI_APP_SELFTEST_NOT_IMPLEMENTED: ....... ..... ... case IPMI_APP_SELFTEST_ERROR: ....... ..... ... case IPMI_APP_SELFTEST_FATAL_HW_ERROR: ....... ..... ... *default:* IpmiInstance->BmcStatus =3D BMC_HARDFAIL; // // Call routine to check device specific failures. // GetDeviceSpecificTestResults (IpmiInstance); } Thanks, Arun --oZBTSfiGMWa7ggNbnok5 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable We are not updating the BMC status in the switch()(default case), w= hich may lead to installing the IPMI protocol for the failure case too. Cou= ld you please initialize the BMC status in the default case also?

=

=C2=A0=C2=A0=C2=A0= =C2=A0switch (SelfTestResult-&g= t;Result) {

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 case IPMI_APP_SELFTEST_NO_ERROR:

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 case IPMI_APP_SELFTEST_NOT_IMPLEMENTED:

=C2=A0 =C2=A0 =C2=A0 .= ......
=C2=A0 =C2=A0 =C2=A0 .....
=C2=A0 =C2=A0 =C2=A0 ...

=C2=A0

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 case IPMI_APP_SELFTEST_ERROR:

=C2=A0 =C2=A0 =C2=A0 .= ......
=C2=A0 =C2=A0 =C2=A0 .....
=C2=A0 =C2=A0 =C2=A0 ...

=C2=A0

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 case IPMI_APP_SELFTEST_FATAL_HW_ERROR:

=C2=A0 =C2=A0 =C2=A0 .= ......
=C2=A0 =C2=A0 =C2=A0 .....
=C2=A0 =C2=A0 =C2=A0 ...

=C2=A0

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 default:

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0IpmiInstance->BmcStatus =3D BMC_HARDFAIL;=C2=A0

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 //

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 // Call routine to check device specific failures.=

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 //

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 GetDeviceSpecificTestResults (IpmiInstance);<= /p>

=C2=A0=C2=A0=C2=A0= }

Thanks,
Arun

--oZBTSfiGMWa7ggNbnok5--