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 7A5B7C77B6C for ; Thu, 13 Apr 2023 08:54:22 +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:From:References:To:Subject:MIME-Version: Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=q0VeMcOKK858a3YdpTnoAI559Fz17QIlK6YQ16+e7zs=; b=0e2YZvTxoc8sy2VQGkGZ59xxeu f4wAgnlhLiPkuSziKYhz2UEwk0BhMd6IOUtlT9ig92n+pY+U/XHBgRlrbv+L+DePJOXjkE3QQAVX4 3RVxiJ3riv3/Wo7RIqHfhR2oj3NelPOwJQ10Qf8lexfBFMdxUpNUvu6xWmBdS4Tt5Mq/jY3I5tkZh gT9MmN6hHUZPwK0Ex3ea2o9MEBBlYB/b8WmCSFe7nUFU42ZVZF9txat2/9nCKzT0vnWlsplcXn9Om RGifAuRiqI1s2HYg8aROus1YTxwZQa3+ySflD8Y4lzj436K4pzFZcEIoG/v+i+5MJHeWF7J3QFFG/ cwKGox8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmshz-005T7P-1L; Thu, 13 Apr 2023 08:53:35 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmsht-005T2R-2P for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 08:53:34 +0000 Received: by mail-ej1-x633.google.com with SMTP id si1so5427997ejb.10 for ; Thu, 13 Apr 2023 01:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681376006; x=1683968006; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/2dW5iWqAlIAC50CmnGRhOufGyIcxjLss418wneRzCs=; b=OKMwd7ysHgpWokWdwGUG474YEg+wS+2OooBdslRH5RvjKNo52IGy1q+aTT+hZEbBnO PkrgpPZhAlJXBRhFaR76PgtNi6iUQfTQ9GWrRuILZNayAh3cXpqomn4Z6kzDLEtMDzIB uJC+XSV0yd6Pj6TakCq6kgfqhU8T0nwW6etBro8PylQqTc306xG0ql0nSY6KjgnHG6jU /EHZWg2XQr84qJNozIdUlOm/xZYxMXUf/mS/8Lf5SnsN7law+0+xOxtqgUH3dvzq2f7m G4K6irIcEPkFBoYP3n+D8Zqun9ckIqxx6pmiA8lWDqKeMC/6mPl2yKSDfTCqARZOLUJZ dcVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681376006; x=1683968006; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/2dW5iWqAlIAC50CmnGRhOufGyIcxjLss418wneRzCs=; b=N9yzoNxO9h5wQddXKpS07kM8t1FGSwkyV2KgkXM89l97kWnj2Q9BDGMfggvkBOGMvn kpU9xi6JlkVlJ6sdElRXxqY3zQK0EJYOV4YGGF9UCUiB0f+0nXStT8pywWs8IlqFkLp5 cttVV1epq7O16AdI/zKq6VqsSsfE4m0Uo0M1iYjJH/pQQqCh6zNDvnKIlWowL4CAHxU9 Aq2ccphlYIjUpPBvT4GaCkjQ2/T3+JSwTtS9w+Rs4mXSOsFphGJW5/GqjXtPKZDHFhn5 llVFBbpXFP3V/pQGPMY4LQ4R3SqMDGKH8yfMDUkDkGx3MgrHe/Bkua3pzaa0pLhS/mDn uzLg== X-Gm-Message-State: AAQBX9eCI+c+1gDUlLxbT2kPwWwYCXRq3uCqy7pyOSPWyCCkQQKbl0Xu bRbRcoTb3ZY6euHOFLMEo9Jg37a0bbI= X-Google-Smtp-Source: AKy350aWXLCiCLyzYtHqDiwCplFxDy8q6rq1gMLQIrTJAzgBhT7KlLh5QFYGC2BH/+ChmHpoJqoN4w== X-Received: by 2002:a17:906:3191:b0:94e:1037:79b0 with SMTP id 17-20020a170906319100b0094e103779b0mr2007178ejy.5.1681376005441; Thu, 13 Apr 2023 01:53:25 -0700 (PDT) Received: from [192.168.1.6] ([5.28.145.230]) by smtp.googlemail.com with ESMTPSA id lr7-20020a170906fb8700b0094e5392b5d2sm643338ejb.134.2023.04.13.01.53.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Apr 2023 01:53:25 -0700 (PDT) Message-ID: Date: Thu, 13 Apr 2023 11:51:15 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: update to latest v5.4-rt kernel for sam9x35 SOC Content-Language: en-US To: Nicolas.Ferre@microchip.com, linux-arm-kernel@lists.infradead.org References: <7152f723-b7b5-a282-923b-524b4f2f54ba@microchip.com> From: yosi yarchi In-Reply-To: <7152f723-b7b5-a282-923b-524b4f2f54ba@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230413_015329_815620_3C9DECA9 X-CRM114-Status: GOOD ( 28.23 ) 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 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)? 2. when do you plan to release new kernel-rt? 3. what is the purpose of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git repository? With best regards Yosi Yarchi 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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel