Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD24EC433F5 for ; Sat, 30 Apr 2022 13:25:36 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Kr98Z5DyVz3bfc for ; Sat, 30 Apr 2022 23:25:34 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=qOST4lsR; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=yahoo.com (client-ip=77.238.178.96; helo=sonic312-25.consmr.mail.ir2.yahoo.com; envelope-from=niikita@yahoo.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=qOST4lsR; dkim-atps=neutral Received: from sonic312-25.consmr.mail.ir2.yahoo.com (sonic312-25.consmr.mail.ir2.yahoo.com [77.238.178.96]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Kr97s1DFBz3050 for ; Sat, 30 Apr 2022 23:24:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651325089; bh=nQyGxm+POMv3hgHHQjAW5PVBnLFmQk80SNcoU0pI51w=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=qOST4lsRl6AiwuU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K9l3uzp.pdGOSPrnjSNYh7Euvtk8e2CDpws5i IyynPNFs5t9Nk_qpadMSqQ4xpyroKP1NNRap.O34BC2F1oHQIf_adwfAZdURx03N5ySZ..MiUcJK ilNK0VzD0b877QMRBkicD2RtAMjUL4A5FYsHi7eHr_a.ZWMKqIfCafP7MoxmFoOA8T_DrCFQQMOB TU_FMUDUHo9y0Rb4Pl.kQ45uX268pPg7xBdPlzRKc_aTKfBFhi6hlVrat9tV87UZwdDGIqz2N9ol .kxxFzY2qNNP2vfrU22S1R_rBCdfp8mXdhht65uRjS9jfMM5Et_NQ6LUsgkn7WeX3ujKe3l6SFbu VFnNHxvx1MTs8iHJywGTPEOFO0TkDhWKqmtuRzV4TYtirLQ53E_C5Z1ttcGFE9pe4tZmfiTW799W p5ULkZ__XiED6aeEinCpHyI6ChmLRr564gfOMVmg8vigBHMerjhFbyINLwFtcDm5YfMTgv9ewto8 SXFUAalGwFiRkxr4tyiAM96CO2cny6dc4tMibHUuIYD9ghDafHpZz5qWATKXaNDzUbg93PlV3t_9 jRiPEMp7rm6Cm99TQfzPjx6s9ezq5CYHImuYb28F_HIoCrW1yRUCHm9ElCkbNGJKcV52C3frWOM7 C2dlb972jRkt1pQxptuGRoN_CYILMAQ6L97RjY2lB5h8N1IutxZqTvh8N57raY3mWWAnNTVdVaPs gC865HtKpbDxxm6XxbDXg2w3nJ08FMVhnq9eD3vD99rYTr3a..FNYM4egMc83bn3C1hhDklP3QKh Ys5IXNxlwVjzCEQKLykXwabFxokgeG8xv2OwlCdBqbw16PUsNFNk4RM_uXBkZ.GXJDG1ae3ICYvF KV4fJGL78WG7OuL8uvdEDNMciDPZjr62QGHboAxwR X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Sat, 30 Apr 2022 13:24:49 +0000 Date: Sat, 30 Apr 2022 13:25:36 +0000 (UTC) From: Nikita Pavlov To: "Bills, Jason M" , "openbmc@lists.ozlabs.org" Message-ID: <667725503.727721.1651325136829@mail.yahoo.com> In-Reply-To: References: <1790304102.3756861.1651157909253.ref@mail.yahoo.com> <1790304102.3756861.1651157909253@mail.yahoo.com> Subject: Re: x86-power-control question: front panel buttons dont work MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_727720_1149676495.1651325136827" X-Mailer: WebService/1.1.20118 YMailNorrin X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" ------=_Part_727720_1149676495.1651325136827 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jason, thank you for your response. In my platform I have power-control = gpios in GPIOD group like this: /*D0-D7*/ "POWER_BUTTON","POWER_OUT","RESET_BUTTON","RESET_OUT", Also I configurate pass-through mode in dts: =C2=A0 =C2=A0 =C2=A0 =C2=A0 pinctrl-names =3D "pass-through";=C2=A0 =C2=A0= =C2=A0 =C2=A0 pinctrl-0 =3D <&pinctrl_gpid0_default=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0= =C2=A0=C2=A0&pinctrl_gpid2_default>; After update and reboot platform I have same problem - front panel buttons = dont enable (front panel buttons dont enable if I use x86-power-control mod= ule or manually set gpio values by gpioset utility).But if I dont use any i= mpacts on gpio (disable x86-power-control module and dont use gpio utilitie= s like gpioset/get) front panel buttons work well. What are your assumptions about this ? =C2=A0-- Best regards, Nikita Pavlov, NUST MISiS Student =20 =D1=87=D0=B5=D1=82=D0=B2=D0=B5=D1=80=D0=B3, 28 =D0=B0=D0=BF=D1=80=D0=B5= =D0=BB=D1=8F 2022 =D0=B3., 23:01:13 GMT+3, Bills, Jason M =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(-=D0=B0): =20 =20 Hi Nikita, =20 =C2=A0 =20 In the hardware, we have the power button routed through a GPIO pass-throug= h on the Aspeed chip.=C2=A0 If that pass-through is disabled, it will preve= nt the physical front panel button signal from getting past the BMC.=C2=A0 = That is the first thing I would check. =20 =C2=A0 =20 Also, it is better to send these kinds of questions to the OpenBMC mailing = list as there may be others in the community in a similar situation. =20 =C2=A0 =20 Thanks, =20 -Jason =20 =C2=A0 =20 From: Nikita Pavlov =20 Sent: Thursday, April 28, 2022 8:58 AM To: Bills, Jason M ; kuiying.wang@intel.com Subject: x86-power-control question: front panel buttons dont work =20 =C2=A0 =20 Hi, I user x86-power-control module for my test intel platform. Its module = works in webui but front panel physical buttons doesnt work. I think that i= t interface describe in this fragment=C2=A0https://github.com/openbmc/x86-p= ower-control/blob/master/src/power_control.cpp#L3072=C2=A0but I cant unders= tand this logic. =20 Say me pls, whyfront panel=C2=A0buttons dont work ? =20 =C2=A0 =20 =C2=A0 =20 =C2=A0 =20 =C2=A0 =20 =C2=A0 =20 -- Best regards, Nikita Pavlov, NUST MISiS Student =20 =C2=A0 =20 ------=_Part_727720_1149676495.1651325136827 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jason, thank you for your= response. In my platform I have power-control gpios in GPIOD group like th= is:

= /*D0-D7*/=09"POWER_BUTTON","POWER_OUT","RESET_BU= TTON","RESET_OUT",

Also I configurate pass-= through mode in dts:

=
        pinctrl-names =3D "pass-thro= ugh";
        pinctrl-0 =3D <&pinctrl_= gpid0_default
              &n= bsp;             &pinctrl_gpid2= _default>;

After update and reboot platform I = have same problem - front panel buttons dont enable (front panel buttons do= nt enable if I use x86-power-control module or manually set gpio values by = gpioset utility).
But if I dont= use any impacts on gpio (disable x86-power-control module and dont use gpi= o utilities like gpioset/get) front panel buttons work well.

What are your assumptions about this ?


<= br>
 
--
Best regards,
Nikita Pavlov,
NUST MISiS Student



=20
=20
=D1=87=D0=B5=D1=82=D0=B2=D0=B5=D1=80=D0=B3, 28 =D0=B0= =D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2022 =D0=B3., 23:01:13 GMT+3, Bills, Jason M= <jason.m.bills@intel.com> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB= (-=D0=B0):


Hi Nikita,

=20

 

=20

In the hardware, we have the power butt= on routed through a GPIO pass-through on the Aspeed chip.  If that pas= s-through is disabled, it will prevent the physical front panel button sign= al from getting past the BMC.  That is the first thing I would check.

=20

 

=20

Also, it is better to send these kinds = of questions to the OpenBMC mailing list as there may be others in the comm= unity in a similar situation.

=20

 

=20

Thanks,

=20

-Jason

=20

 

=20

From: Nikita Pavlov <niikita@= yahoo.com>
Sent: Thursday, April 28, 2022 8:58 AM
To: Bills, Jason M <jason.m.bills@intel.com>; kuiying.wang@int= el.com
Subject: x86-power-control question: front panel buttons dont work=20

 

=20

Hi, I user x86-power-control module for my test intel pla= tform. Its module works in webui but front panel physical buttons doesnt wo= rk. I think that it interface describe in this fragment https://github.com/openbmc/x86-powe= r-control/blob/master/src/power_control.cpp#L3072 but I cant under= stand this logic.

=20

Say me pls, why front panel buttons dont work ?

=20

 

=20

 

=20

 

=20

 

=20

 

=20

--
Best regards,
Nikita Pavlov,
NUST MISiS Student

=20

 

=20
------=_Part_727720_1149676495.1651325136827--