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 7D702C64ED8 for ; Fri, 24 Feb 2023 09:02:28 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PNP6V4Syvz2x9J for ; Fri, 24 Feb 2023 20:02:26 +1100 (AEDT) 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=B/n9BHda; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=yahoo.com (client-ip=74.6.131.123; helo=sonic311-13.consmr.mail.bf2.yahoo.com; envelope-from=erhan14@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=B/n9BHda; dkim-atps=neutral Received: from sonic311-13.consmr.mail.bf2.yahoo.com (sonic311-13.consmr.mail.bf2.yahoo.com [74.6.131.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PNP5J6MPWz3cLC for ; Fri, 24 Feb 2023 20:01:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677229279; bh=cp0CiPJq6MgYEZrAK4KWHlfa6og9qSH7pGxUC0pLtKk=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=B/n9BHda67YoSoPv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NDFOHLF84ilqNp_7hsy0W3GIOswneIX2Sl M.lPXUckbQ8P.B1kP3hlhAq0CqTOLDfqBVMN6Cutun4W5a.zN.fpFF_0o.6sTi_QmbP9cR0UgZDG KbONuF7kwAGMtf53e610D8uTXA3gf6MEAfmwcPlQWL.hKz707tcQpgwMBJx4wJuD9a4BBQi9MXra oL5ZN9sXWeH_UX3sOQj4eQGaCk0hYw.bwzTN44r4uf2Gl7b.H22bbMj0VWYlKvlrNVhWMMLZNKVl rVVgf300lTLcVYgxQ8eqoXYyil79pOoLhZRTArOoHYUCCm1ulxvKiSfU_dxtKZKy4vxvaN1prtbM ebWzptdufhxpC.tfGUEd9uFNExXrckRU.nF6.DggRT5uAT9Uy3MVDDfPrqBR7ZubQ5T5HN6EpK5y ZzJ09glLgYfTowWSTnwS18btIEKMXEhQpfs1aAYOvOMESwyPMtdLE_rNYX_WG7pJXfI0MJlI95Gl hh8k9n5ZvtpN_VYcesuQ294w89y_EmJnTZ2XkI31uISG2GfLymid4jkwogqpGr6bRFeU9kisRgHN hYn.nexI__ZHDaxIwiX1dlt0ikg7ZohwuwZOo2f37.MaSgic9Oq6CMDijq59JrYI69DgQ1lsX5oS KZ8np6kPgdmYtTttXCIDmO8wPX5bQWmPSLqMGZkPgm5VhRzTeildV.O8ysYeMN88JXamIm7deWqz SjZ3o.oHSl9z9JNU.Al3Ec2Q6LWlNsorgbT8OPY9NTRpfZsND6isIbhtQdY7vEVUgQXAQLvLLwxs GwBOOeWngRWdYh.W9S4SAurmycud6U0rxTSlnIDZgIE4g9NBjVxuFzTTKiO8pbtnA1f1nyb8DvGn tjx4w1X0BW_3cJrO.EccGoRoH9TKAeG8LWFqYHNWRmarSricziYIOJhW51WaKhL9iQrtGfOLz.RM pgW0ob1M.94zEDV5e3kQAa4upY1vB4qA5RUitoEMI1_D_6aVXjya2 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Fri, 24 Feb 2023 09:01:19 +0000 Date: Fri, 24 Feb 2023 09:01:18 +0000 (UTC) From: "Erhan Y." To: "openbmc@lists.ozlabs.org" , "rentao.bupt@gmail.com" Message-ID: <41828313.192702.1677229278186@mail.yahoo.com> In-Reply-To: References: Subject: Re: openbmc Digest, Vol 90, Issue 49 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_192701_1690754858.1677229278178" X-Mailer: WebService/1.1.21221 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_192701_1690754858.1677229278178 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Tao,Where can we find the current source or patches for AST2xxx=C2=A0JT= AG master drivers on Linux 6.x?Thanks Message: 1 Date: Wed, 22 Feb 2023 23:33:29 -0800 From: Tao Ren To: Joel Stanley Cc: OpenBMC Maillist Subject: Re: OpenBMC Linux 6.1 Message-ID: Content-Type: text/plain; charset=3Dus-ascii On Wed, Feb 22, 2023 at 06:25:13AM +0000, Joel Stanley wrote: > On Wed, 22 Feb 2023 at 06:11, Tao Ren wrote: > > > > Hi Joel, > > > > Thanks for the update. Let me move some Meta/Facebook AST2500 and > > AST2600 Network OpenBMCs to v6.1, and will share my findings later. > > Thanks Tao, I appreciate it. Just heads up I sanity tested dev-6.1 branch on 3 aspeed generations, and everything looks normal. The 3 openbmc platforms are: =C2=A0 - wedge100 (AST2400) =C2=A0 - cmm (AST2500) =C2=A0 - fbdarwin (AST2600, dts to be upstreamed) > > > Besides, could you please share your long term kernel upgrade plan? For > > example, are you planning to align with LTS kernel in the future? Or th= e > > ultimate goal is to upgrade openbmc kernel whenever newer kernel is > > released? > > Somewhere in between those two. > > If we were to wait 5 or so years between updates, then we remove the > motivation for developers to upstream their code, and I imagine it > would be a headache to hunt down regressions when making that big > jump. > > On the other hand, management has been trained to target the stable > releases and somehow consider them to be better than others. I argue > this isn't true, because the code is only as stable as the test and > development resources that are put into it! That said, it's less work > to merge in the stable tree every week or two and test that than it is > to do a new rebase every three months. > > The ultimate goal is to have all of our code upstream, and just use > whatever kernel yocto has. We're pretty close for aspeed machines; at > IBM we have some downstream hacks for misbehaving i2c devices, and > some device trees for pre-production hardware that have minor > differences to the production version. If we were to upstream the > hacks for i2c devices (or stop using them) then we could ship upstream > kernels. > > Ultimately it would be best for the project if we used the latest > kernel on master, and had a LTS kernel that was used by product > branches. This would require the project to fund someone to do this > work long term, to ensure the stable updates haven't caused > regressions, to cherry pick patches that fix code that was not present > in the upstream release, and in their remaining time help get more > code in mainline. > > Cheers, > > Joel Thanks for sharing the details, and in short, I'm moving torward the similar direction:) My current plan is to upgrade openbmc kernel at least once a year (skipping ~4 kernel releases) for facebook network openbmc platforms, and I'm facing the similar challenges: upstreaming kernel patches and test enhancement. I don't have plan to force more frequent kernel upgrade in 2023, because if I had bandwidth, I'd rather spend the time upstreaming patches: I believe kernel upgrade would be much easier if all the patches are upstreamed. I quickly went through the local kernel patches in my repo, and they fall in 3 major categories: 1) JTAG master drivers 2) hwmon drivers 3) enabling dsa in a few dts files. I'm not sure if anyone is actively looking into the jtag patch series, but I will try my best to clean up some patches in #2 and #3 this year. BTW, I will create the recipe to fetch dev-6.1 into meta/facebook openbmc tree soon. Thanks again for maintaining the tree. Cheers, Tao On Friday, February 24, 2023 at 03:08:44 AM GMT+3, openbmc-request@list= s.ozlabs.org wrote: =20 =20 Send openbmc mailing list submissions to =C2=A0=C2=A0=C2=A0 openbmc@lists.ozlabs.org To subscribe or unsubscribe via the World Wide Web, visit =C2=A0=C2=A0=C2=A0 https://lists.ozlabs.org/listinfo/openbmc or, via email, send a message with subject or body 'help' to =C2=A0=C2=A0=C2=A0 openbmc-request@lists.ozlabs.org You can reach the person managing the list at =C2=A0=C2=A0=C2=A0 openbmc-owner@lists.ozlabs.org When replying, please edit your Subject line so it is more specific than "Re: Contents of openbmc digest..." Today's Topics: =C2=A0 1. Re: OpenBMC Linux 6.1 (Tao Ren) =C2=A0 2. RE: [PATCH v5 1/2] dt-bindings: i2c: Add support for ASPEED =C2=A0 =C2=A0 =C2=A0 i2Cv2 (Ryan Chen) =C2=A0 3. [PATCH v2 0/3] ARM: dts: aspeed: ASRock BMC updates (Zev Weiss) =C2=A0 4. [PATCH v2 3/3] ARM: dts: aspeed: asrock: Correct firmware =C2=A0 =C2=A0 =C2=A0 flash SPI clocks (Zev Weiss) ---------------------------------------------------------------------- Message: 1 Date: Wed, 22 Feb 2023 23:33:29 -0800 From: Tao Ren To: Joel Stanley Cc: OpenBMC Maillist Subject: Re: OpenBMC Linux 6.1 Message-ID: Content-Type: text/plain; charset=3Dus-ascii On Wed, Feb 22, 2023 at 06:25:13AM +0000, Joel Stanley wrote: > On Wed, 22 Feb 2023 at 06:11, Tao Ren wrote: > > > > Hi Joel, > > > > Thanks for the update. Let me move some Meta/Facebook AST2500 and > > AST2600 Network OpenBMCs to v6.1, and will share my findings later. >=20 > Thanks Tao, I appreciate it. Just heads up I sanity tested dev-6.1 branch on 3 aspeed generations, and everything looks normal. The 3 openbmc platforms are: =C2=A0 - wedge100 (AST2400) =C2=A0 - cmm (AST2500) =C2=A0 - fbdarwin (AST2600, dts to be upstreamed) >=20 > > Besides, could you please share your long term kernel upgrade plan? For > > example, are you planning to align with LTS kernel in the future? Or th= e > > ultimate goal is to upgrade openbmc kernel whenever newer kernel is > > released? >=20 > Somewhere in between those two. >=20 > If we were to wait 5 or so years between updates, then we remove the > motivation for developers to upstream their code, and I imagine it > would be a headache to hunt down regressions when making that big > jump. >=20 > On the other hand, management has been trained to target the stable > releases and somehow consider them to be better than others. I argue > this isn't true, because the code is only as stable as the test and > development resources that are put into it! That said, it's less work > to merge in the stable tree every week or two and test that than it is > to do a new rebase every three months. >=20 > The ultimate goal is to have all of our code upstream, and just use > whatever kernel yocto has. We're pretty close for aspeed machines; at > IBM we have some downstream hacks for misbehaving i2c devices, and > some device trees for pre-production hardware that have minor > differences to the production version. If we were to upstream the > hacks for i2c devices (or stop using them) then we could ship upstream > kernels. >=20 > Ultimately it would be best for the project if we used the latest > kernel on master, and had a LTS kernel that was used by product > branches. This would require the project to fund someone to do this > work long term, to ensure the stable updates haven't caused > regressions, to cherry pick patches that fix code that was not present > in the upstream release, and in their remaining time help get more > code in mainline. >=20 > Cheers, >=20 > Joel Thanks for sharing the details, and in short, I'm moving torward the similar direction:) My current plan is to upgrade openbmc kernel at least once a year (skipping ~4 kernel releases) for facebook network openbmc platforms, and I'm facing the similar challenges: upstreaming kernel patches and test enhancement. I don't have plan to force more frequent kernel upgrade in 2023, because if I had bandwidth, I'd rather spend the time upstreaming patches: I believe kernel upgrade would be much easier if all the patches are upstreamed. I quickly went through the local kernel patches in my repo, and they fall in 3 major categories: 1) JTAG master drivers 2) hwmon drivers 3) enabling dsa in a few dts files. I'm not sure if anyone is actively looking into the jtag patch series, but I will try my best to clean up some patches in #2 and #3 this year. BTW, I will create the recipe to fetch dev-6.1 into meta/facebook openbmc tree soon. Thanks again for maintaining the tree. Cheers, Tao ------------------------------ Message: 2 Date: Thu, 23 Feb 2023 10:25:56 +0000 From: Ryan Chen To: Krzysztof Kozlowski , Rob Herring =C2=A0=C2=A0=C2=A0 , Krzysztof Kozlowski =C2=A0=C2=A0=C2=A0 , Joel Stanley , =C2=A0=C2=A0=C2=A0 Andrew Jeffery , Philipp Zabel =C2=A0=C2=A0=C2=A0 ,=C2=A0=C2=A0=C2=A0 "openbmc@lis= ts.ozlabs.org" =C2=A0=C2=A0=C2=A0 ,=C2=A0=C2=A0=C2=A0 "linux-arm= -kernel@lists.infradead.org" =C2=A0=C2=A0=C2=A0 , =C2=A0=C2=A0=C2=A0 "linux-aspeed@lists.ozlabs.org"=C2=A0=C2=A0=C2=A0 , =C2=A0=C2=A0=C2=A0 "linux-kernel@vger.kernel.org"=C2=A0=C2=A0=C2=A0 Subject: RE: [PATCH v5 1/2] dt-bindings: i2c: Add support for ASPEED =C2=A0=C2=A0=C2=A0 i2Cv2 Message-ID: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=20 Content-Type: text/plain; charset=3D"utf-8" Hello Krzysztof, > -----Original Message----- > From: Krzysztof Kozlowski > Sent: Thursday, February 23, 2023 5:29 PM > To: Ryan Chen ; Rob Herring > ; Krzysztof Kozlowski > ; Joel Stanley ; Andre= w > Jeffery ; Philipp Zabel ; > openbmc@lists.ozlabs.org; linux-arm-kernel@lists.infradead.org; > linux-aspeed@lists.ozlabs.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v5 1/2] dt-bindings: i2c: Add support for ASPEED i2Cv= 2 >=20 > On 22/02/2023 11:47, Ryan Chen wrote: > >>>> connector. That slave will keep state to drive clock stretching. > >>>>> So it is specific enable in i2c bus#1. Others is not needed enable > timeout. > >>>>> Does this draw is more clear in scenario? > >>>> > >>>> I2C bus #1 works in slave mode? So you always need it for slave work= ? > >>> > >>> Yes, it is both slave/master mode. It is always dual role. Slave > >>> must always > >> work. > >>> Due to another board master will send. > >> > >> I meant that you need this property when it works in slave mode? It > >> would be then redundant to have in DT as it is implied by the mode. > > > > But timeout feature is also apply in master. It for avoid suddenly > > slave miss(un-plug) Master can timeout and release the SDA/SCL, return. >=20 > OK, yet the property should describe the hardware, not the register featu= re you > want to program. You need to properly model it in DT binding to represent > hardware setup, not your desired Linux driver behavior. >=20 > >>>>> The same draw, in this case, i2c bus#1 that is multi-master > >>>>> transfer > >>>> architecture. > >>>>> Both will inactive with trunk data. That cane enable i2c#1 use DMA > >>>>> transfer > >>>> to reduce CPU utilized. > >>>>> Others (bus#2/3) can keep byte/buff mode. > >>>> > >>>> Isn't then current bus configuration for I2C#1 known to the driver? > >>>> Jeremy asked few other questions around here... > >>> > >>> No, The driver don't know currently board configuration. > >> > >> It knows whether it is working in multi-master/slave mode. > > > > But in DT can decide which i2c bus number can use dma or buffer mode > transfer. > > If in another i2c bus support master only, also can use dma to transfer= trunk > data to another slave. >=20 > and none of these were explained in commit msg or device description. >=20 Thanks your guidance. I will add all those discussion in next patches cover= -letter. Best regards, Ryan Chen. ------------------------------ Message: 3 Date: Thu, 23 Feb 2023 16:03:57 -0800 From: Zev Weiss To: Andrew Jeffery ,=C2=A0=C2=A0=C2=A0 Joel Stanley Cc: Zev Weiss ,=C2=A0=C2=A0=C2=A0 openbmc@lists.ozla= bs.org, =C2=A0=C2=A0=C2=A0 Krzysztof Kozlowski ,= =C2=A0=C2=A0=C2=A0 Rob Herring =C2=A0=C2=A0=C2=A0 ,=C2=A0=C2=A0=C2=A0 devicetree@vger.= kernel.org, =C2=A0=C2=A0=C2=A0 linux-arm-kernel@lists.infradead.org,=C2=A0=C2=A0=C2=A0 = linux-aspeed@lists.ozlabs.org, =C2=A0=C2=A0=C2=A0 linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] ARM: dts: aspeed: ASRock BMC updates Message-ID: <20230224000400.12226-1-zev@bewilderbeest.net> Hello, This patch series contains a few small device-tree updates for ASRock BMCs: an LED polarity fix for romed8hm3, enabling the ast2500 PECI device on e3c246d4i, and a SPI flash clock frequency fix for both. Thanks, Zev Changes since v1 [0]: - Added patch 3 correcting SPI flash clocks [0] https://lore.kernel.org/linux-devicetree/20230203105405.21942-1-zev@bew= ilderbeest.net/ Zev Weiss (3): =C2=A0 ARM: dts: aspeed: romed8hm3: Fix GPIO polarity of system-fault LED =C2=A0 ARM: dts: aspeed: e3c246d4i: Add PECI device =C2=A0 ARM: dts: aspeed: asrock: Correct firmware flash SPI clocks arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 6 +++++- arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) --=20 2.39.1.438.gdcb075ea9396.dirty ------------------------------ Message: 4 Date: Thu, 23 Feb 2023 16:04:00 -0800 From: Zev Weiss To: Andrew Jeffery ,=C2=A0=C2=A0=C2=A0 Joel Stanley Cc: Zev Weiss ,=C2=A0=C2=A0=C2=A0 Krzysztof Kozlowsk= i =C2=A0=C2=A0=C2=A0 ,=C2=A0=C2=A0=C2=A0 R= ob Herring , =C2=A0=C2=A0=C2=A0 devicetree@vger.kernel.org,=C2=A0=C2=A0=C2=A0 linux-arm-= kernel@lists.infradead.org, =C2=A0=C2=A0=C2=A0 linux-aspeed@lists.ozlabs.org,=C2=A0=C2=A0=C2=A0 linux-k= ernel@vger.kernel.org, =C2=A0=C2=A0=C2=A0 openbmc@lists.ozlabs.org,=C2=A0=C2=A0=C2=A0 stable@vger.= kernel.org Subject: [PATCH v2 3/3] ARM: dts: aspeed: asrock: Correct firmware =C2=A0=C2=A0=C2=A0 flash SPI clocks Message-ID: <20230224000400.12226-4-zev@bewilderbeest.net> While I'm not aware of any problems that have occurred running these at 100 MHz, the official word from ASRock is that 50 MHz is the correct speed to use, so let's be safe and use that instead. Signed-off-by: Zev Weiss Cc: stable@vger.kernel.org Fixes: 2b81613ce417 ("ARM: dts: aspeed: Add ASRock E3C246D4I BMC") Fixes: a9a3d60b937a ("ARM: dts: aspeed: Add ASRock ROMED8HM3 BMC") --- arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 2 +- arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts b/arch/arm/b= oot/dts/aspeed-bmc-asrock-e3c246d4i.dts index 67a75aeafc2b..c4b2efbfdf56 100644 --- a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts @@ -63,7 +63,7 @@ flash@0 { =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 status =3D "okay"; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 m25p,fast-read; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 label =3D "bmc"; -=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 spi-max-frequency =3D <100000000>; /= * 100 MHz */ +=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 spi-max-frequency =3D <50000000>; /*= 50 MHz */ #include "openbmc-flash-layout.dtsi" =C2=A0=C2=A0=C2=A0 }; }; diff --git a/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts b/arch/arm/b= oot/dts/aspeed-bmc-asrock-romed8hm3.dts index 00efe1a93a69..4554abf0c7cd 100644 --- a/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts @@ -51,7 +51,7 @@ flash@0 { =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 status =3D "okay"; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 m25p,fast-read; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 label =3D "bmc"; -=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 spi-max-frequency =3D <100000000>; /= * 100 MHz */ +=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 spi-max-frequency =3D <50000000>; /*= 50 MHz */ #include "openbmc-flash-layout-64.dtsi" =C2=A0=C2=A0=C2=A0 }; }; --=20 2.39.1.438.gdcb075ea9396.dirty End of openbmc Digest, Vol 90, Issue 49 *************************************** =20 ------=_Part_192701_1690754858.1677229278178 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Tao,
Where can we find the current source or patches for= AST2xxx JTAG master drive= rs on Linux 6.x?
= Thanks


Message: 1
Date: Wed, 22 Feb 2023 23:33:29 -0800
From:= Tao Ren <rentao.bupt@gmail.com>
To: Joel Stanley = <joel@jms= .id.au>
Cc: OpenBMC Maillist <openbmc@lists.ozl= abs.org>
Subject: Re: OpenBMC Linux 6.1
Message-ID: <Y/cWyUVGkYA2UvBp@fedora>
= Content-Type: text/plain; charset=3Dus-ascii

=
On Wed, Feb 22, 2023 at 06:25:13AM +0000, Joel Stanley wrote:
> On Wed, 22 Feb 2023 at 06:11, Tao Ren <rentao.bupt@gma= il.com> wrote:
> >
>= ; > Hi Joel,
> >
> >= Thanks for the update. Let me move some Meta/Facebook AST2500 and
> > AST2600 Network OpenBMCs to v6.1, and will share my f= indings later.
>
> Thanks Tao= , I appreciate it.

Just heads up I= sanity tested dev-6.1 branch on 3 aspeed generations,
= and everything looks normal. The 3 openbmc platforms are:
  - wedge100 (AST2400)
  - cmm (AST2500)
  - fbdarwin (AST2600, dts to be upstreamed)

>
> > Besid= es, could you please share your long term kernel upgrade plan? For
> > example, are you planning to align with LTS kernel in= the future? Or the
> > ultimate goal is to upgra= de openbmc kernel whenever newer kernel is
> > r= eleased?
>
> Somewhere in bet= ween those two.
>
> If we wer= e to wait 5 or so years between updates, then we remove the
> motivation for developers to upstream their code, and I imagine i= t
> would be a headache to hunt down regressions whe= n making that big
> jump.
>
> On the other hand, management has been trained to t= arget the stable
> releases and somehow consider the= m to be better than others. I argue
> this isn't tru= e, because the code is only as stable as the test and
&= gt; development resources that are put into it! That said, it's less work
> to merge in the stable tree every week or two and t= est that than it is
> to do a new rebase every three= months.
>
> The ultimate goa= l is to have all of our code upstream, and just use
>= ; whatever kernel yocto has. We're pretty close for aspeed machines; at
=
> IBM we have some downstream hacks for misbehaving i2c= devices, and
> some device trees for pre-production= hardware that have minor
> differences to the produ= ction version. If we were to upstream the
> hacks = for i2c devices (or stop using them) then we could ship upstream
<= div dir=3D"ltr" style=3D"font-family: Helvetica Neue, Helvetica, Arial, san= s-serif;">> kernels.
>
> U= ltimately it would be best for the project if we used the latest
<= div dir=3D"ltr" style=3D"font-family: Helvetica Neue, Helvetica, Arial, san= s-serif;">> kernel on master, and had a LTS kernel that was used by prod= uct
> branches. This would require the project to fu= nd someone to do this
> work long term, to ensure th= e stable updates haven't caused
> regressions, to ch= erry pick patches that fix code that was not present
&g= t; in the upstream release, and in their remaining time help get more
> code in mainline.
>
> Cheers,
>
> Joel=

Thanks for sharing the details, a= nd in short, I'm moving torward the
similar direction:)=

My current plan is to upgrade ope= nbmc kernel at least once a year
(skipping ~4 kernel re= leases) for facebook network openbmc platforms,
and I'm= facing the similar challenges: upstreaming kernel patches and
test enhancement. I don't have plan to force more frequent kernel
upgrade in 2023, because if I had bandwidth, I'd rather = spend the time
upstreaming patches: I believe kernel up= grade would be much easier if
all the patches are upstr= eamed.

I quickly went through the = local kernel patches in my repo, and they
fall in 3 m= ajor categories: 1) JTAG master drivers 2) hwmon drivers 3)
enabling dsa in a few dts files. I'm not sure if anyone is actively
looking into the jtag patch series, but I will try my bes= t to clean up
some patches in #2 and #3 this year.
<= /div>

BTW, I will create the recipe to fetch= dev-6.1 into meta/facebook
openbmc tree soon. Thanks a= gain for maintaining the tree.

Cheers,

Tao

=20
=20
On Friday, February 24, 2023 at 03:08:44 AM GMT+3, open= bmc-request@lists.ozlabs.org <openbmc-request@lists.ozlabs.org> wrote= :


Send openbmc mailing list submissions= to

To sub= scribe or unsubscribe via the World Wide Web, visit
<= div dir=3D"ltr">or, via email, send a message with subject or body 'help' t= o

<= div dir=3D"ltr">You can reach the person managing the list at
    openbmc-owner@list= s.ozlabs.org

When = replying, please edit your Subject line so it is more specific
than "Re: Contents of openbmc digest..."


Today's Topics:=

  1. Re: OpenBM= C Linux 6.1 (Tao Ren)
  2. RE: [PATCH v5 1/= 2] dt-bindings: i2c: Add support for ASPEED
 = ;     i2Cv2 (Ryan Chen)
  3. [PAT= CH v2 0/3] ARM: dts: aspeed: ASRock BMC updates (Zev Weiss)
  4. [PATCH v2 3/3] ARM: dts: aspeed: asrock: Correct firm= ware
      flash SPI clocks (Zev W= eiss)


----------------------------------------------------------------= ------

Message: 1
<= /div>
Date: Wed, 22 Feb 2023 23:33:29 -0800
From: Tao Ren <rentao.bupt@gmail.com>
=
To: Joel Stanley <joel@jms.id.au>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>=
Subject: Re: OpenBMC Linux 6.1
Message-ID: <Y/cWyUVGkYA2UvBp@fedora>
Content-Type: text/plain; charset=3Dus-ascii

On Wed, Feb 22, 2023 at 06:25:13AM +0= 000, Joel Stanley wrote:
> On Wed, 22 Feb 2023= at 06:11, Tao Ren <rentao.bupt@gmail.com> wrote:
> >
> > Hi Joel,
> >
> > Thank= s for the update. Let me move some Meta/Facebook AST2500 and
> > AST2600 Network OpenBMCs to v6.1, and will share my f= indings later.
>
&g= t; Thanks Tao, I appreciate it.

Just heads up I sanity tested dev-6.1 branch on 3 aspeed generati= ons,
and everything looks normal. The 3 openbmc p= latforms are:
  - wedge100 (AST2400)
  - cmm (AST2500)
  = - fbdarwin (AST2600, dts to be upstreamed)

>
> > Besides, cou= ld you please share your long term kernel upgrade plan? For
> > example, are you planning to align with LTS kernel in = the future? Or the
> > ultimate goal is to = upgrade openbmc kernel whenever newer kernel is
&= gt; > released?
>
> Somewhere in between those two.
>
<= /div>
> If we were to wait 5 or so years between updates= , then we remove the
> motivation for develope= rs to upstream their code, and I imagine it
> = would be a headache to hunt down regressions when making that big
=
> jump.
>
> On the other hand, management has been trained to target th= e stable
> releases and somehow consider them = to be better than others. I argue
> this isn't= true, because the code is only as stable as the test and
> development resources that are put into it! That said, it's l= ess work
> to merge in the stable tree every w= eek or two and test that than it is
> to do a = new rebase every three months.
>
> The ultimate goal is to have all of our code upstream, a= nd just use
> whatever kernel yocto has. We're= pretty close for aspeed machines; at
> IBM we= have some downstream hacks for misbehaving i2c devices, and
> some device trees for pre-production hardware that have mi= nor
> differences to the production version. I= f we were to upstream the
> hacks for i2c devi= ces (or stop using them) then we could ship upstream
> kernels.
>
> Ultimately it would be best for the project if we used the latest
=
> kernel on master, and had a LTS kernel that was= used by product
> branches. This would requir= e the project to fund someone to do this
> wor= k long term, to ensure the stable updates haven't caused
> regressions, to cherry pick patches that fix code that was no= t present
> in the upstream release, and in th= eir remaining time help get more
> code in mai= nline.
>
> Cheer= s,
>
> Joel
<= /div>

Thanks for sharing the det= ails, and in short, I'm moving torward the
simila= r direction:)

My curre= nt plan is to upgrade openbmc kernel at least once a year
(skipping ~4 kernel releases) for facebook network openbmc platfor= ms,
and I'm facing the similar challenges: upstre= aming kernel patches and
test enhancement. I don'= t have plan to force more frequent kernel
upgrade= in 2023, because if I had bandwidth, I'd rather spend the time
upstreaming patches: I believe kernel upgrade would be much = easier if
all the patches are upstreamed.

I quickly went through the lo= cal kernel patches in my repo, and they
fall in 3= major categories: 1) JTAG master drivers 2) hwmon drivers 3)
enabling dsa in a few dts files. I'm not sure if anyone is act= ively
looking into the jtag patch series, but I w= ill try my best to clean up
some patches in #2 an= d #3 this year.

BTW, I= will create the recipe to fetch dev-6.1 into meta/facebook
openbmc tree soon. Thanks again for maintaining the tree.


C= heers,

Tao


------= ------------------------

Message: 2
Date: Thu, 23 Feb 2023 10:25:56 +00= 00
From: Ryan Chen <ryan_chen@asp= eedtech.com>
To: Krzysztof Kozlowski <<= a ymailto=3D"mailto:krzysztof.kozlowski@linaro.org" href=3D"mailto:krzyszto= f.kozlowski@linaro.org">krzysztof.kozlowski@linaro.org>, Rob Herring=
    <robh+dt@kernel.org>, Krzysz= tof Kozlowski
    <krzysztof.ko= zlowski+d= t@linaro.org>, Joel Stanley <joel@jms.id.au>,
    Andrew Jeffery <andrew@aj.id.au>, Philipp = Zabel
Subject: RE: [PATCH v= 5 1/2] dt-bindings: i2c: Add support for ASPEED
&= nbsp;   i2Cv2
Message-ID:
    <SEZPR06MB52697747528490B1A16AF87FF2AB9@SEZPR06MB5269.apcprd06.prod.o= utlook.com>
   
<= div dir=3D"ltr">Content-Type: text/plain; charset=3D"utf-8"

Hello Krzysztof,

> -----Original Message-----
<= div dir=3D"ltr">> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent= : Thursday, February 23, 2023 5:29 PM
> To: Ry= an Chen <ryan_chen@aspeedtech.com>; Rob Herring
<= /div>
> <robh+dt@kernel.org>; Krzysztof Kozlowski
> <krzysztof.kozlowski+dt@linaro.org>; Joel Stanle= y <j= oel@jms.id.au>; Andrew
> Jeffery <andrew@= aj.id.au>; Philipp Zabel <p.zabel@pengutronix.de>= ;
> Subject: Re: [PATCH v5 1/2] dt-bindings: i2c:= Add support for ASPEED i2Cv2
>
> On 22/02/2023 11:47, Ryan Chen wrote:
> >>>> connector. That slave will keep state to dri= ve clock stretching.
> >>>>> So= it is specific enable in i2c bus#1. Others is not needed enable
<= div dir=3D"ltr">> timeout.
> >>>&g= t;> Does this draw is more clear in scenario?
= > >>>>
> >>>> I2C b= us #1 works in slave mode? So you always need it for slave work?
<= div dir=3D"ltr">> >>>
> >>&g= t; Yes, it is both slave/master mode. It is always dual role. Slave
> >>> must always
= > >> work.
> >>> Due to anot= her board master will send.
> >>
> >> I meant that you need this property when i= t works in slave mode? It
> >> would be = then redundant to have in DT as it is implied by the mode.
> >
> > But timeout feature= is also apply in master. It for avoid suddenly
&= gt; > slave miss(un-plug) Master can timeout and release the SDA/SCL, re= turn.
>
> OK, ye= t the property should describe the hardware, not the register feature you
> want to program. You need to properly model i= t in DT binding to represent
> hardware setup,= not your desired Linux driver behavior.
>
> >>>>> The same draw, in this ca= se, i2c bus#1 that is multi-master
> >>&= gt;>> transfer
> >>>> archit= ecture.
> >>>>> Both will inact= ive with trunk data. That cane enable i2c#1 use DMA
> >>>>> transfer
> >&g= t;>> to reduce CPU utilized.
> >>&= gt;>> Others (bus#2/3) can keep byte/buff mode.
> >>>>
> >>>> = Isn't then current bus configuration for I2C#1 known to the driver?
> >>>> Jeremy asked few other questions a= round here...
> >>>
> >>> No, The driver don't know currently board config= uration.
> >>
= > >> It knows whether it is working in multi-master/slave mode.
> >
> > But i= n DT can decide which i2c bus number can use dma or buffer mode
> transfer.
> > If in ano= ther i2c bus support master only, also can use dma to transfer trunk
> data to another slave.
&= gt;
> and none of these were explained in com= mit msg or device description.
>
Thanks your guidance. I will add all those discussion in next= patches cover-letter.
Best regards,
Ryan Chen.

------------------------------

Message: 3
Date: Thu, 23 Feb 2023 16:= 03:57 -0800
From: Zev Weiss <zev@bewild= erbeest.net>
To: Andrew Jeffery <andrew@aj.i= d.au>,    Joel Stanley <joel@jms.id.au>
<= div dir=3D"ltr">Cc: Zev Weiss <zev@bewilderbeest.net>,&nbs= p;   openbmc@lists.ozlabs.org,
    Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.or= g>,    Rob Herring
 &n= bsp;  <robh+dt@kernel.org>,    device= tree@vger.kernel.org,
Subject: [PATCH v2 0/3]= ARM: dts: aspeed: ASRock BMC updates

Hello,

T= his patch series contains a few small device-tree updates for ASRock
BMCs: an LED polarity fix for romed8hm3, enabling the a= st2500 PECI
device on e3c246d4i, and a SPI flash = clock frequency fix for both.

Thanks,
Zev
Changes since v1 [0]:
-= Added patch 3 correcting SPI flash clocks


Zev Weiss (3):=
  ARM: dts: aspeed: romed8hm3: Fix GPIO pol= arity of system-fault LED
  ARM: dts: aspeed= : e3c246d4i: Add PECI device
  ARM: dts: asp= eed: asrock: Correct firmware flash SPI clocks
arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts= | 6 +++++-
arch/arm/boot/dts/aspeed-bmc-asrock-= romed8hm3.dts | 4 ++--
2 files changed, 7 insert= ions(+), 3 deletions(-)

--
2.39.1.438.gdcb075ea9396.dirty



------------------------------

Message: 4
Date: Thu= , 23 Feb 2023 16:04:00 -0800
From: Zev Weiss <= zev@bewilderbeest.net>
To: Andrew J= effery <andrew@aj.id.au>,    Joel Stanley <joel@jms.id.au>
Cc: Zev Weiss <zev@bewilderbeest= .net>,    Krzysztof Kozlowski
    <krzysztof.kozlowski+dt@linaro.org>,  &nbs= p; Rob Herring <robh+dt@kernel.org>,
Subject: [PATCH v2 3/3] ARM= : dts: aspeed: asrock: Correct firmware
 &nb= sp;  flash SPI clocks

While I'm not aware of any problems that have occurred running these
=
at 100 MHz, the official word from ASRock is that 50= MHz is the
correct speed to use, so let's be saf= e and use that instead.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Fixes: 2b81613ce417 ("ARM: dts: aspeed: Add ASRock E3C246D4I BMC"= )
Fixes: a9a3d60b937a ("ARM: dts: aspeed: Add ASR= ock ROMED8HM3 BMC")
---
arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 2 +-
arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/d= ts/aspeed-bmc-asrock-e3c246d4i.dts b/arch/arm/boot/dts/aspeed-bmc-asrock-e3= c246d4i.dts
index 67a75aeafc2b..c4b2efbfdf56 1006= 44
--- a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c2= 46d4i.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-asro= ck-e3c246d4i.dts
@@ -63,7 +63,7 @@ flash@0 {
        status =3D "okay";
        m25p,fast-read;
        label =3D "bmc";=
-        spi-max-f= requency =3D <100000000>; /* 100 MHz */
+&n= bsp;       spi-max-frequency =3D <50000000>;= /* 50 MHz */
#include "openbmc-flash-layout.dts= i"
    };
};
diff --git a/arch/arm/boot/dts/aspeed-bmc-= asrock-romed8hm3.dts b/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts
index 00efe1a93a69..4554abf0c7cd 100644
--- a/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts
<= /div>
+++ b/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.d= ts
@@ -51,7 +51,7 @@ flash@0 {
 &n= bsp;      status =3D "okay";
=         m25p,fast-read;
        label =3D "bmc";
-        spi-max-frequency =3D &= lt;100000000>; /* 100 MHz */
+  &nbs= p;     spi-max-frequency =3D <50000000>; /* 50 MHz */<= br>
#include "openbmc-flash-layout-64.dtsi"
    };
};
<= /div>
--
2.39.1.438.gdcb075ea939= 6.dirty



End of openbmc Digest, Vol 90, Issu= e 49
***************************************
<= /div>
------=_Part_192701_1690754858.1677229278178--