<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 4, 2022 at 4:34 AM Vernon Mauery <<a href="mailto:vernon.mauery@linux.intel.com">vernon.mauery@linux.intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 03-May-2022 07:46 PM, Kumar Thangavel wrote:<br>
>Hi Vernon,<br>
><br>
> We may need to write our own custom filter for other channels as you<br>
>suggested.<br>
> While implementing this, we need some clarifications.<br>
><br>
> 1. How can we map channel Id's with settingsd restriction mode<br>
>dbus-objects ?<br>
<br>
Set up a restriction mode object for each channel? This is really up to <br>
your implementation.<br></blockquote><div> <br> Ack. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> 2. The Ipmb channel has multiple devices in our system, How can we<br>
>handle and apply this multiple Ipmb interfaces with<br>
>settingsd restriction mode dbus-objects ?<br>
><br>
> Please refer below link for multiple Ipmb channels for our system.<br>
><br>
<br>
When ipmb channel commands come in, there is also rqSA set in the <br>
ipmi::Context. This should be unique per device. Will this work for you?<br>
<br></blockquote><div> That also works. If we use rqSA, again we need to map this rqSA value with phosphor-settingsd restriction mode dbus-objects name ( /xyz/openbmc_project/control/<b>host1</b>/restriction_mode) ? <br> <br>Alternate logic we just think of</div><div>1. Using "hostIdx'' in ipmi::Contextwhich is unique(0, 1, 2 to N) for each devices. we can map this with phosphor-settingsd restriction mode dbus-objects name ? We need to maintain order (0, 1, 2 to N-1) for hosts and N for debug cards in all configs.</div><div>2. Can we read i<b>pmb-channels.json</b> entry in ipmid with name field as "host1", "host2", "host3" "host4" and "debug_card" which should match the settingsd dbus-object names. ? So that we can map the name field with settings objects easily.<br><br> Example : <br> Ipmb-channels.json entry :</div><div> </div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container gmail-js-code-nav-container gmail-js-tagsearch-file" style="border-spacing:0px;border-collapse:collapse;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-L3" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC3" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> {
"name" : "<b>host1</b>"</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L4" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC4" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"type"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>ipmb<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L5" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC5" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"slave-path"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>/dev/ipmb-1<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L6" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC6" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"bmc-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">32</span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L7" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC7" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"remote-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">64</span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L8" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC8" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"devIndex"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">0</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-L9" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC9" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> },</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L10" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC10" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> {
"name" : "<b>host2</b>"</td></tr><tr style="box-sizing:border-box"><td id="gmail-L11" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC11" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"type"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>ipmb<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L12" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC12" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"slave-path"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>/dev/ipmb-3<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L13" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC13" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"bmc-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">32</span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L14" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC14" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"remote-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">64</span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L15" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC15" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"devIndex"</span>: 2</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L16" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC16" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> },</td></tr><tr style="box-sizing:border-box"><td id="gmail-L17" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC17" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"><br></td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L24" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC24" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> {
"name" : "<b>hostN</b>"</td></tr><tr style="box-sizing:border-box"><td id="gmail-L25" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC25" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"type"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>ipmb<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L26" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC26" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"slave-path"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>/dev/ipmb-7<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L27" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC27" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"bmc-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">32</span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L28" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC28" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"remote-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">64</span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L29" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC29" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"devIndex"</span>: N</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L30" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC30" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> },</td></tr><tr style="box-sizing:border-box"><td id="gmail-L31" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC31" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> {
"name" : "<b>debug_card</b>"</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L32" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC32" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"type"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>ipmb<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L33" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC33" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"slave-path"</span>: <span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>/dev/ipmb-13<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L34" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC34" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"bmc-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">32</span>,</td></tr><tr style="box-sizing:border-box"><td id="gmail-L35" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC35" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"remote-addr"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">64</span>,</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L36" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC36" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-ent" style="box-sizing:border-box">"devIndex"</span>: <span class="gmail-pl-c1" style="box-sizing:border-box">4</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-L37" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC37" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> }</td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L38" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC38" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"> ]</td></tr></tbody></table><div> </div><div> Settingsd restriction mode objects :</div><div><br></div><div> /xyz/openbmc_project/control/<b>debug_card</b>/restriction_mode<br></div><div> /xyz/openbmc_project/control/<b>host1</b>/restriction_mode</div><div> /xyz/openbmc_project/control/<b>host2</b>/restriction_mode</div><div> /xyz/openbmc_project/control/<b>host3</b>/restriction_mode<br></div><div> /xyz/openbmc_project/control/<b>host3</b>/restriction_mode</div><div><br></div><div> Could you please provide your thoughts on this ?</div><div> <br> Thanks,</div><div> Kumar.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--Vernon<br>
<br>
><a href="https://github.com/openbmc/openbmc/blob/master/meta-facebook/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/yosemitev2/ipmb-channels.json" rel="noreferrer" target="_blank">https://github.com/openbmc/openbmc/blob/master/meta-facebook/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/yosemitev2/ipmb-channels.json</a><br>
><br>
> Already we have "hostIdx'' in ipmi::Context struct, which represents<br>
>the data coming from which hosts. Even Though if we plan to use this<br>
>"hostIdx" , it is still not clear how we can map this "hostIdx'' with<br>
>settingsd restriction mode dbus-objects.<br>
><br>
> Otherwise, can we have some Schema(Rules) to follow the channel order<br>
>for this channel and devices(settingsd dbus-objects) mapping ?<br>
> Ex: First 4 or 6 channel is for host 1 - host4<br>
> Next channel is for Debug card,<br>
> Rest of the channel is for other devices.<br>
><br>
> I think we need to maintain this order in settingsd config file and<br>
>ipmb-channels.json config file for this channel and device mapping.<br>
><br>
> Could you please provide your suggestion on this.<br>
><br>
>Thanks,<br>
>Kumar.<br>
><br>
>On Tue, Apr 26, 2022 at 9:25 PM Kumar Thangavel <<br>
><a href="mailto:kumarthangavel.hcl@gmail.com" target="_blank">kumarthangavel.hcl@gmail.com</a>> wrote:<br>
><br>
>> Thanks for your response and suggestions.<br>
>><br>
>> --Kumar.<br>
>><br>
>> On Sat, Apr 23, 2022 at 4:55 AM Vernon Mauery <<br>
>> <a href="mailto:vernon.mauery@linux.intel.com" target="_blank">vernon.mauery@linux.intel.com</a>> wrote:<br>
>><br>
>>> On 18-Apr-2022 04:56 PM, Kumar Thangavel wrote:<br>
>>> >Thanks for the response and clarification.<br>
>>> ><br>
>>> >I will clarify my question here,<br>
>>> ><br>
>>> >IPMI restriction mode support has been added for host devices which<br>
>>> support<br>
>>> >IPMI.<br>
>>> >This restriction mode support can be enabled or disabled from the<br>
>>> >phosphor-settingsd configuration (.yaml) file.<br>
>>> ><br>
>>> >Please check the below link for .yaml file of phosphor-settingsd.<br>
>>> ><br>
>>> ><br>
>>> <a href="https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61" rel="noreferrer" target="_blank">https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61</a><br>
>>> ><br>
>>> >We wanted to add restriction mode support for other IPMI based devices<br>
>>> >(Debug card).<br>
>>> >Already phosphor-ipmi-host supports filters for all IPMI commands which<br>
>>> >have ipmi::Context objects.<br>
>>> >So, How can we enable/disable this restriction mode support<br>
>>> >from phosphor-settings for other IPMI based devices(Debug card). ?<br>
>>><br>
>>> I understand that currently only the host channel is using the<br>
>>> restriction mode. You want to add it for other channels. This has<br>
>>> already been done in the intel-ipmi-oem repo, if you want to take a look<br>
>>> at that. It allows a fine-grained mechanism for command filtering, based<br>
>>> on the channel and the restriction mode (although currently, I think the<br>
>>> restriction mode still only applies to the host channel).<br>
>>><br>
>>> My point is that it is pretty easy to come up with a custom filter<br>
>>> mechanism that should suit you. There is even an option to disable the<br>
>>> built-in filter so you can supply your own.<br>
>>><br>
>>> --Vernon<br>
>>><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> >On Thu, Apr 14, 2022 at 6:15 AM Vernon Mauery <<br>
>>> <a href="mailto:vernon.mauery@linux.intel.com" target="_blank">vernon.mauery@linux.intel.com</a>><br>
>>> >wrote:<br>
>>> ><br>
>>> >> On 04-Apr-2022 12:49 PM, Kumar Thangavel wrote:<br>
>>> >> >Hi All,<br>
>>> >> ><br>
>>> >> > IPMI Restriction mode support has been added for host machines<br>
>>> >> >which support IPMI.<br>
>>> >> ><br>
>>> >> ><br>
>>> >><br>
>>> <a href="https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61" rel="noreferrer" target="_blank">https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61</a><br>
>>> >> ><br>
>>> >> > How IPMI restriction mode support can be added for other than<br>
>>> host<br>
>>> >> >devices (IPMI based devices). Ex Debug card. ?<br>
>>> >><br>
>>> >> I am not exactly sure what you are asking for here. When you say other<br>
>>> >> devices, are you asking about restricting commands based on what<br>
>>> channel<br>
>>> >> they come in on?<br>
>>> >><br>
>>> >> This is possible. A filter can filter on any criteria that is available<br>
>>> >> with the ipmi::Context object and the command. It can even extract<br>
>>> >> command data and take action there. I only say this if you are<br>
>>> >> interested in writing a new filter of your own.<br>
>>> >><br>
>>> >> But if you want to see a filter that is already implemented that<br>
>>> >> restricts commands based on BMC state and incoming channel, you can<br>
>>> look<br>
>>> >> at the filtering done in the intel-ipmi-oem repo.<br>
>>> >><br>
>>> >> If my guess at what you meant was wrong, please clarify and I will try<br>
>>> >> again.<br>
>>> >><br>
>>> >> --Vernon<br>
>>> >><br>
>>> >> > Could you please provide any suggestions or any docs ?<br>
>>> >> ><br>
>>> >> >Thanks,<br>
>>> >> >Kumar.<br>
>>> >><br>
>>><br>
>><br>
</blockquote></div></div>