kenel module dont enable

Winiarska, Iwona iwona.winiarska at intel.com
Wed Oct 20 00:45:32 AEDT 2021


On Tue, 2021-10-19 at 12:10 +0300, Alexander Raih wrote:
> Hi,
> I try to register peci device in sysfs but I have same problem
> 
> [  800.339605] peci peci-0: Failed to register peci client peci-client at 0x30
> (-5)

Were you able to confirm that your platform is in S0 power state before you
tried this?

Could you share details about Intel Platform/CPU that you're using?

-Iwona

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



More information about the openbmc mailing list