<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 all,</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 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>
</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);">
Thank you.</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>
<div id="appendonsend"></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> openbmc <openbmc-bounces+chris.chen3=flex.com@lists.ozlabs.org> 代表 Chris Chen (TPI) <Chris.Chen3@flex.com><br>
<b>寄件日期:</b> 2021年9月2日 下午 06:34<br>
<b>收件者:</b> openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org><br>
<b>主旨:</b> [phosphor-host-ipmid] Questions about IPMI (OEM) command development</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif">Hi all,</span></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)">
<span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif">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.</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif">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?</span></li><li><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif">I for now added "</span><span style="background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">intel-ipmi-oem" package only
 for using its "<Chassis>:<Set Front Panel Enables>" command because I figured out the same command in the </span><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">"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?</span><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important"><span style="margin:0px; background-color:rgb(255,255,255); display:inline!important"></span></span></span></span></li><li><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">Is it okay to add more than 1
 xxx-ipmi-ome packages? If yes, how to manage the whitelist between these 2 OEM packages?</span></span></li><li><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">Am I able to use </span><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">"intel-ipmi-oem"
 on a platform that is using AMD CPU?</span></span></span></li><li><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">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="https://github.com/openbmc/openbmc/wiki/Debugging-OpenBMC#enabling-application-debug" id="LPlnk">https://github.com/openbmc/openbmc/wiki/Debugging-OpenBMC#enabling-application-debug</a>",
 but I don't see "SENDER=" when I executed "journalctl -t ipmid" command.</span></span></span></li><li style="display:block">
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
</li></ol>
<ol start="6">
<li style="display: block;"><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div style="color:#d4d4d4;background-color:#1e1e1e;font-family:'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight:normal;font-size:14px;line-height:19px">
<span><span style="color:#dcdcaa">log</span><span><</span><span style="color:#4ec9b0">level</span><span>::</span><span style="color:#4ec9b0">DEBUG</span><span>>(</span><span style="color:#ce9178">"Set up ipmi context"</span><span>,
</span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"SENDER=</span><span style="color:#9cdcfe">%s</span><span style="color:#ce9178">"</span><span>,
</span><span style="color:#9cdcfe">sender</span><span>.</span><span style="color:#dcdcaa">c_str</span><span>()),</span></span>
<div><span>                      </span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"NETFN=0x</span><span style="color:#9cdcfe">%X</span><span style="color:#ce9178">"</span><span>, netFn),
</span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"LUN=0x</span><span style="color:#9cdcfe">%X</span><span style="color:#ce9178">"</span><span>, lun),</span></div>
<div><span>                      </span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"CMD=0x</span><span style="color:#9cdcfe">%X</span><span style="color:#ce9178">"</span><span>, cmd),
</span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"CHANNEL=</span><span style="color:#9cdcfe">%u</span><span style="color:#ce9178">"</span><span>, channel),</span></div>
<div><span>                      </span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"USERID=</span><span style="color:#9cdcfe">%u</span><span style="color:#ce9178">"</span><span>, userId),</span></div>
<div><span>                      </span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"SESSIONID=0x</span><span style="color:#9cdcfe">%X</span><span style="color:#ce9178">"</span><span>, sessionId),</span></div>
<div><span>                      </span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"PRIVILEGE=</span><span style="color:#9cdcfe">%u</span><span style="color:#ce9178">"</span><span>,
</span><span style="color:#569cd6">static_cast</span><span><</span><span style="color:#569cd6">uint8_t</span><span>>(privilege)),</span></div>
<span><span>                      </span><span style="color:#dcdcaa">entry</span><span>(</span><span style="color:#ce9178">"RQSA=</span><span style="color:#9cdcfe">%x</span><span style="color:#ce9178">"</span><span>, rqSA));</span></span></div>
<br>
</span></span></span></li></ol>
<div><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">Thank
 you.</span></span></span></div>
<div><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important"><br>
</span></span></span></div>
<div><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">Regards,</span></span></span></div>
<div><span style="background-color:rgb(255,255,255); display:inline!important"><span style="text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="text-align:left; background-color:rgb(255,255,255); display:inline!important; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">Chris
 Chen</span></span></span></div>
</div>
<div>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>
</div>
</div>
</body>
</html>