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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1509FC77B6E for ; Fri, 14 Apr 2023 12:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:CC:From:References:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AtdyET3F0HAS026r+gUvxvy7VMizPsMTQ7xF9ba1P8w=; b=dGs1CRPZdfOsP5 h5jV6hbnjgm471BJhdI6wYxPCxK6B34tI1OyDjtX0XNYAAlBO7xgtftzqkarea2f1hX+i4+sHOGvf CNb59EcQ5CDnkfLBMh7jR4mEegx0tTPHKlC6WHN3/3D4KPWsVTq7vBy0sXexaurzyPa22wFqbK/BJ 3ob8gx27XV1lFeYJEXhp7F2tIVeRjXeJOWBwmADGddXO4oaa23S33ze6006rwLVsr+S82buVr09ch J39PP5DPAeKgQJRXKGJRQXZQLLOBj9eeAvjrVl0BaEPAs3uqYJUG0lq8eb1Qq2XIV2d4uFBlmpEPo D8qf5a+VSUtXvpk1ihQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnIyK-009a5C-2Y; Fri, 14 Apr 2023 12:56:12 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pnIyC-009a3L-2q for linux-arm-kernel@lists.infradead.org; Fri, 14 Apr 2023 12:56:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1681476964; x=1713012964; h=message-id:date:mime-version:subject:to:references:from: cc:in-reply-to:content-transfer-encoding; bh=RfR5IGrasRapDzQ9yDYCECf/zt12UEPDOq+Afc2ZLvQ=; b=AXsZKt1sBZi+aIHE8y/vejsSzVjlf4p+JYxK594lh85EeffIDip7amEk TixGhjkRo2LfM5qTEFn8F25FXbkym1ZOVHccu3MAMrv4EHsoKTfL+bvEa D7RIDxP0RGSs17vYuUTMIlMz9hqHpiV3qER15WGUaqXKXojIxasY9NdCQ TwwahClkBxnrDTJ+YH7Jba8awP0m3ScsetiW4T/XDxoHO1N19ZgGuiwQW 4/GnW7thXmbG8Jjr3E2Yv6s43LALHDWsrA9b4TJ3IqdxhWLZ02o6YmmaH HzvMxTM2WHKa5wnvGrq3jLHRBR+KDWWTKcnxckzGQzSkThNLCXX6QJK6j Q==; X-IronPort-AV: E=Sophos;i="5.99,195,1677567600"; d="scan'208";a="209086345" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Apr 2023 05:56:01 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 14 Apr 2023 05:14:46 -0700 Received: from [10.159.245.112] (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 14 Apr 2023 05:14:45 -0700 Message-ID: <6cf380e5-d61b-998a-8a98-587eb7b0b107@microchip.com> Date: Fri, 14 Apr 2023 14:14:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: update to latest v5.4-rt kernel for sam9x35 SOC Content-Language: en-US To: yosi yarchi , References: <7152f723-b7b5-a282-923b-524b4f2f54ba@microchip.com> From: Nicolas Ferre Organization: microchip CC: Claudiu Beznea , Conor Dooley In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230414_055604_987443_C0218E4F X-CRM114-Status: GOOD ( 30.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Yosi Yarchi, On 13/04/2023 at 10:51, yosi yarchi wrote: > Hi > > Thank you for your detailed response > > could you provide some clarifications for the following issues? > > 1. is update process is the same, if I want to upgrade to highest > kernel-rt version? if so, do I limited to 5.15.96 (highest linux4sam > kernel is linux-5.15-mchp/105. highest stable rt kernel is linux-5.15.96)? You can merge the rt patch series patches-5.15.96-rt61.tar.xz on top of the head of the linux-5.15-mchp branch without problem: it applies cleanly with a couple of line offsets: it should be good. I deployed a result of this merge (build tested, from a sama5_defconfig with RPEEMPT_RT as preemption model, not booted) here: https://github.com/linux4sam/linux-at91/tree/linux-5.15-mchp-rt Feedback welcome :-) I didn't deployed it on our broader and more "official" Linux4Microchip (https://github.com/linux4microchip/linux) tree because I need to involve more of my colleagues to the discussion. > 2. when do you plan to release new kernel-rt? The intention was to follow the preempt-rt developments, and now that the specific Microchip/at91 parts are in mainline, there's not so much difficulty to apply the PREEMPT_RT patches and be ready to go... I don't know if having our own tree for that is interesting. What I can tell is that I know that some of our field engineers, with customers are using one or the other of PREEMPT_RT-enabled kernels. > 3. what is the purpose of > git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git repository? This tree is for at91 official maintainers to push code upstream. This is where we store our pull-requests to arm-soc and clock maintainers. It's not meant for customers consumption except if they want to follow closely what we are doing for upstreaming the code to Mainline Linux, the usual Linux kernel development process that we are trying to comply to for more than a decade, kernel revision after kernel revision ;-) Hope that it gives you a good overview of our process. Best regards, Nicolas > On 4/5/23 19:42, Nicolas.Ferre@microchip.com wrote: >> Yosi Yarchi, >> >> On 04/04/2023 at 17:55, yosi yarchi wrote: >>> Hi >>> >>> I'm working currently with 5.4.41-linux4sam-2020.04-rt kernel on >>> sam9x35 SOC. there are no updates for this kernel for long time >>> (since 2020). >> Yes, in the meantime, we switched our "vendor kernel" to newer kernel >> revisions and continued our work to mainline the out-of-tree changes. >> >> For this particular SoC, I would say that all needed pieces are in >> Mainline for a long time, so I would always advise to go with the latest >> upstream kernel (with RT_PREEMPT extension in this case). >> That being said, I admit that you want to stick with 5.4.x kernels for >> various reasons. >> >>> at linux-stable-rt, however, there are lot of >>> updates for v5.4 kernel. I want to update to latest v5.4 kernel. I >>> thought to: >>> >>> 1. take linux-stable-rt repository as my base >>> 2. add missing files from maintainers repository >>> git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git >>> repository (pointed by MAINTAINERS file). >>> >>> however, what about exist but less updated files? the file >>> drivers/dma/at_hdmac.c, for example, exist at both >>> repositories, but git log shows that there are much more >>> updates at maintainers repository than to linux-stable-rt >>> repository (even at specific date, Oct 25 2022, for example). >>> >>> my question is: what is the right way to update to latest 5.4-rt >>> kernel on sam9x SOCs? >> I would take the reverse approach as it's what we do for building our >> Linux4SAM/Linux4Microchip kernels: >> >> 1/ start with non-rt latest version of linux4sam 5.4: branch >> linux-5.4-at91 that has the stable updates up to v5.4.104 (March 2021) >> 2/ little by little (chunk of 10 revisions), merge upstream stable >> kernels, fix merge conflicts, continue, iterate, up to v5.4.230 (see below) >> 3/ during this process, test regularly the resulting kernel on your >> system or even better in a CI loop to automate the process >> 4/ stop when you've reached the more recent 5.4 stable kernel *with rt >> extensions* (5.4.230 as I can see on >> https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.4/) >> 5/ now you can merge v5.4.230-rt80 on your updated kernel. If you find >> conflicts or difficulties, take the v5.4.41-rt kernel as an example of >> how to solve the conflicts for sam9x35. The most challenging part must >> be related to timers: see how it's done for the kernel you use now >> (v5.4.41-rt) to replicate this on the newer kernel if needed. >> >> In any case, don't hesitate to fill-in a support ticket with Microchip >> to address this special case. >> >> Hope that it helps. Best regards, >> Nicolas >> -- Nicolas Ferre _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel