<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Troy,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm able to see other entries now, thanks for your sharing.</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Chris Chen</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>寄件者:</b> Troy Lee <troy_lee@aspeedtech.com><br>
<b>寄件日期:</b> 2021年9月6日 下午 06:03<br>
<b>收件者:</b> Chris Chen (TPI) <Chris.Chen3@flex.com>; openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org><br>
<b>主旨:</b> RE: [phosphor-host-ipmid] Questions about IPMI (OEM) command development</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hi,<br>
<br>
Using ```journalctl -o json-pretty```, you will see other entries in each log.<br>
<br>
Thanks,<br>
Troy Lee<br>
<br>
From: openbmc <openbmc-bounces+troy_lee=aspeedtech.com@lists.ozlabs.org> On Behalf Of Chris Chen (TPI)<br>
Sent: Monday, September 6, 2021 5:41 PM<br>
To: openbmc@lists.ozlabs.org<br>
Subject: 回覆: [phosphor-host-ipmid] Questions about IPMI (OEM) command development<br>
<br>
Hi all,<br>
<br>
I guess this mail was got overwhelmed by bunches of emails, so please let me resend it and hope someone could help me. Another, I add one more question marked #5 below.<br>
<br>
Thank you.<br>
<br>
Regards,<br>
Chris Chen<br>
<br>
________________________________________<br>
寄件者: openbmc <<a href="mailto:openbmc-bounces+chris.chen3=flex.com@lists.ozlabs.org">mailto:openbmc-bounces+chris.chen3=flex.com@lists.ozlabs.org</a>> 代表 Chris Chen (TPI) <<a href="mailto:Chris.Chen3@flex.com">mailto:Chris.Chen3@flex.com</a>><br>
寄件日期: 2021年9月2日 下午 06:34<br>
收件者: <a href="mailto:openbmc@lists.ozlabs.org">mailto:openbmc@lists.ozlabs.org</a> <<a href="mailto:openbmc@lists.ozlabs.org">mailto:openbmc@lists.ozlabs.org</a>><br>
主旨: [phosphor-host-ipmid] Questions about IPMI (OEM) command development <br>
 <br>
Hi all,<br>
<br>
I have studied "phosphor-host-ipmid" package for a couple of weeks and got understanding that it has implemented some mandatory and optional commands already. And I also knew that I'm able to leverage "intel-ipmi-oem" package to get more command handlers. But
 there're some questions raised in my mind, I hope someone could give me some suggestions.<br>
1. What's the normal development procedure in case I want to make our own OEM commands? I mean do you guys encourage me to create a new "xxx-ipmi-oem" package or to leverage "intel-ipmi-oem" and then add our own commands in it?<br>
2. I for now added "intel-ipmi-oem" package only for using its "<Chassis>:<Set Front Panel Enables>" command because I figured out the same command in the "phosphor-host-ipmid" is not able to match the d-bus interface in the "x86-power-control". I'm not sure
 if I will need other commands in the "intel-ipmi-oem", but what if I don't need other commands, how to remove them? to use the whitelist mechanism?<br>
3. Is it okay to add more than 1 xxx-ipmi-ome packages? If yes, how to manage the whitelist between these 2 OEM packages?<br>
4. Am I able to use "intel-ipmi-oem" on a platform that is using AMD CPU?<br>
5. How to print the "entry("SENDER=%s", sender.c_str())" parts? I mean I for now can print out "Set up ipmi context" string after following the instruction listed in "<a href=""></a>https://urldefense.com/v3/__https://github.com/openbmc/openbmc/wiki/Debugging-OpenBMC*enabling-application-debug__;Iw!!HSntlCg!ER4F5EQKDfxZDhlNbj_u-37VaIuI_kgky8ZqGuiosmru--vFGjEsT4cP0_AxOQH9$
 ", but I don't see "SENDER=" when I executed "journalctl -t ipmid" command.<br>
6. <br>
6. log<level::DEBUG>("Set up ipmi context", entry("SENDER=%s", sender.c_str()), <br>
                      entry("NETFN=0x%X", netFn), entry("LUN=0x%X", lun),<br>
                      entry("CMD=0x%X", cmd), entry("CHANNEL=%u", channel),<br>
                      entry("USERID=%u", userId),<br>
                      entry("SESSIONID=0x%X", sessionId),<br>
                      entry("PRIVILEGE=%u", static_cast<uint8_t>(privilege)),<br>
                      entry("RQSA=%x", rqSA));<br>
<br>
<br>
Thank you.<br>
<br>
<br>
Regards,<br>
Chris Chen<br>
Legal Disclaimer :<br>
The information contained in this message may be privileged and confidential. <br>
It is intended to be read only by the individual or entity to whom it is addressed
<br>
or by their designee. If the reader of this message is not the intended recipient,
<br>
you are on notice that any distribution of this message, in any form, <br>
is strictly prohibited. If you have received this message in error, <br>
please immediately notify the sender and delete or destroy any copy of this message!<br>
</div>
</span></font></div>
</div>
</body>
</html>