<div dir="ltr">Hi,<div>I try to register peci device in sysfs but I have same problem</div><div><br></div><div>[ 800.339605] peci peci-0: Failed to register peci client peci-client at 0x30 (-5)<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 19 окт. 2021 г. в 10:44, Alexander Raih <<a href="mailto:61a91bc@gmail.com">61a91bc@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks, Iwona<div>I will try this.</div><div><br></div><div>Best regards,</div><div>Alex</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 18 окт. 2021 г. в 17:43, Winiarska, Iwona <<a href="mailto:iwona.winiarska@intel.com" target="_blank">iwona.winiarska@intel.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal">Hi Alex,<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"><br>
</span></p>
<p class="MsoNormal"><span style="font-size:11pt">(in the future, please Cc: openbmc mailing list)</span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><span style="font-size:11pt"> </span></p>
<p class="MsoNormal">This may occur when CPU can’t be detected - is your platform in S0 power state?<u></u><u></u></p>
<p class="MsoNormal">BMC usually is booted before the platform goes to S0, so I would recommend registering peci-client manually (using sysfs) rather than using DTS.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"># echo peci-client 0x30 > /sys/bus/peci/devices/peci-0/new_device<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Or if you’re using dbus-sensors, peci-client devices are exported there:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensorMain.cpp#L406" target="_blank">https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensorMain.cpp#L406</a><u></u><u></u></p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">--<u></u><u></u></p>
<p class="MsoNormal">Note that PECI subsystem you’re using is subject to change in the future:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://lore.kernel.org/lkml/20210803113134.2262882-1-iwona.winiarska@intel.com/" target="_blank">https://lore.kernel.org/lkml/20210803113134.2262882-1-iwona.winiarska@intel.com/</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-Iwona<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> Alexander Raih <<a href="mailto:61a91bc@gmail.com" target="_blank">61a91bc@gmail.com</a>> <br>
<b>Sent:</b> Friday, October 15, 2021 1:46 PM<br>
<b>To:</b> Yoo, Jae Hyun <<a href="mailto:jae.hyun.yoo@intel.com" target="_blank">jae.hyun.yoo@intel.com</a>>; Winiarska, Iwona <<a href="mailto:iwona.winiarska@intel.com" target="_blank">iwona.winiarska@intel.com</a>><br>
<b>Subject:</b> kenel module dont enable<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<div>
<p class="MsoNormal">I use intel kernel module peci. In dtb I have this describe about peci: <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">bus@1e78b000 {<br>
compatible = "simple-bus";<br>
#address-cells = <0x01>;<br>
#size-cells = <0x01>;<br>
ranges = <0x00 0x1e78b000 0x60>;<br>
peci-bus@0 {<br>
compatible = "aspeed,ast2500-peci";<br>
reg = <0x00 0x60>;<br>
#address-cells = <0x01>;<br>
#size-cells = <0x00>;<br>
interrupts = <0x0f>;<br>
clocks = <0x02 0x06>;<br>
resets = <0x02 0x06>;<br>
clock-frequency = <0x16e3600>;<br>
msg-timing = <0x01>;<br>
addr-timing = <0x01>;<br>
rd-sampling-point = <0x08>;<br>
cmd-timeout-ms = <0x3e8>;<br>
status = "okay";<br>
<br>
peci-client@30 {<br>
compatible = "intel,peci-client";<br>
reg = <0x30>;<br>
};<br>
<br>
peci-client@31 {<br>
compatible = "intel,peci-client";<br>
reg = <0x31>;<br>
};<br>
};<br>
};<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have this error in dmesg:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">[ 2.516383] peci peci-0: Failed to register peci client at 0x30 (-5)<u></u><u></u></p>
</div>
<p class="MsoNormal">[ 2.526767] peci peci-0: Failed to create PECI device for /ahb/apb/bus@1e78b000/peci-bus@0/peci-client@30<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">How I can resolve this ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">best regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">alex<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<div><span></span></div>
</div>
</blockquote></div>
</blockquote></div>