Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6159990rwb; Tue, 22 Nov 2022 09:29:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6xoQV+BaXWWtxNd4StwtfOCpKy1zv1gQevjS43GYahXPoha42hJCSwh4NWdriguJrGAOWv X-Received: by 2002:a17:90b:124a:b0:218:a671:6a82 with SMTP id gx10-20020a17090b124a00b00218a6716a82mr13841248pjb.77.1669138154142; Tue, 22 Nov 2022 09:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669138154; cv=none; d=google.com; s=arc-20160816; b=HD7eq+AQ6aWuUz2nDfO6u89oW1er5ljwY3KuHsGunpg9OJkO8oux+xePduwHBabf5X JMJtpQIF+9ydInOEBd1/AP8fPqkkJTKvJtckGNFSQq+sbswIFkONB0xKECoAS0CyTzHx V6wzoD5ypVyQErRLTOVYXt0HyFMc028Bj2u/bfyeioffDhaPatGFlb45Le7uNUvY2Sa0 VNmpxSDQSTJEefAlzsvkjsdnGcquRUY2zlN2orxOVrjO4idpwlUCLAZOU6JeaGHxHqiL 4wb3oYjJxDwexcRPVeNfhB+sCjXq2y9YoOf4Cc/9AMZoaKEtr5EXjV+2F9SgizMxZKE0 tdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=orfiAd5LKnRJ8BygCrbxkcrUjHZkPUXj65ZeSBEzh18=; b=raCUQpNi83hn9hQovCyTrN6UtBRBemJhrjhAc4lOz74lTlsT49erRff27W80+3Om51 /fV01YnGHvyVSZpm0ZvX0bIRvxVkh8KDIXghepFfsHEc+ezaoeRzhcYZmHlo8HoH9d9j bKyzErWwqRvhkN4LT9l8BuBKFKo9T/rgWtfwqHZPipzTf4LkGgMWJBQNggPfdVcwQbec 8BY0zfzWap4rauJvPMuSkpEOFmPG7rosl0v1Y69qjVc+3hmjgyfl7M26wIX+g51njZCD k8tWakf/IuI7XAgFqVdpx5exdSGCPz7nLUVJxOGez4ZVwOE/LnFn+FIv1mAGdgrp0JlK TxnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cz9rcVLr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a170902704300b00188bee6e9f2si2699200plt.239.2022.11.22.09.29.02; Tue, 22 Nov 2022 09:29:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cz9rcVLr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234457AbiKVRNR (ORCPT + 90 others); Tue, 22 Nov 2022 12:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234453AbiKVRNP (ORCPT ); Tue, 22 Nov 2022 12:13:15 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 281216E577 for ; Tue, 22 Nov 2022 09:13:14 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id A2CC9100010; Tue, 22 Nov 2022 17:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1669137192; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=orfiAd5LKnRJ8BygCrbxkcrUjHZkPUXj65ZeSBEzh18=; b=cz9rcVLrqKAKNA0xjGj7Jq9dKbvuQJrDUseq3OsMsnccavP74j/Zv0B2jl+nTp9U5H50ao fzPWLBP2wPrJmNZ3Z0pTYM/+0XII6nDqRMSLrpBTD9001Dh5phd2No6Y+ECifNq7nAUnAs ANyxt9fWW2mMHHhB2x9Gfc4QjtTzX9ektlxGiVYHJJ4lfF2oVqrgESQ80ZShg6TBt5o3Xe oEsdqgSe/pQrMKAKv0RS5cTVa5WprTE7nJwgZPA83OwWdd21GYBN4VfjPlRYWF2A0YdmiD HLL4m+FMNBU2ZgdVROuF+0ZoblGoqGBBjvqLjqHzTVnPJsHoDlTcjw1BURXvmA== Date: Tue, 22 Nov 2022 18:14:52 +0100 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: Thorsten Leemhuis Cc: Claudiu Beznea , Alexandre Belloni , Russell King , linux-arm-kernel@lists.infradead.org, Peter Rosin , linux-kernel@vger.kernel.org, "regressions@lists.linux.dev" Subject: Re: [PATCH] ARM: at91: fix build for SAMA5D3 w/o L2 cache Message-ID: <20221122181452.6a386296@fixe.home> In-Reply-To: <075d8c0f-5448-73aa-bd3f-0d4e1216e87f@leemhuis.info> References: <075d8c0f-5448-73aa-bd3f-0d4e1216e87f@leemhuis.info> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Tue, 22 Nov 2022 16:13:40 +0100, Thorsten Leemhuis a =C3=A9crit : > Hi, this is your Linux kernel regression tracker. >=20 > On 12.11.22 16:40, Peter Rosin wrote: > > The L2 cache is present on the newer SAMA5D2 and SAMA5D4 families, but > > apparently not for the older SAMA5D3. At least not always. > >=20 > > Solves a build-time regression with the following symptom: > >=20 > > sama5.c:(.init.text+0x48): undefined reference to `outer_cache' > >=20 > > Fixes: 3b5a7ca7d252 ("ARM: at91: setup outer cache .write_sec() callbac= k if needed") > > Signed-off-by: Peter Rosin =20 >=20 > Cl=C3=A9ment L=C3=A9ger and Claudiu Beznea: what's up here? Is there a pa= rticular > reason why this patch did get any feedback from you by now? It's ten > days old and Peter already sent a kind of reminder a few days ago. Hi Thorsten, Sorry for the lack of answer, I'm not sure about the best solution to tackle this problem. adding IS_ENABLED(CONFIG_OUTER_CACHE) seems like a good way to avoid modifying the whole configuration. If ok for Claudiu, I think it is the best thing to do since it will work for all cases. Cl=C3=A9ment >=20 > Reminder, ideally this regression should be fixed by now. For details > see the section "Prioritize work on fixing regressions" in > Documentation/process/handling-regressions.rst ( > https://docs.kernel.org/process/handling-regressions.html ) >=20 > Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) >=20 > P.S.: As the Linux kernel's regression tracker I deal with a lot of > reports and sometimes miss something important when writing mails like > this. If that's the case here, don't hesitate to tell me in a public > reply, it's in everyone's interest to set the public record straight. >=20 > > --- > > arch/arm/mach-at91/sama5.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > Hi! > >=20 > > I'm not sure this is the correct solution? Maybe SAMA5D3 should bring > > in CONFIG_OUTER_CACHE unconditionally instead? But that seems like a > > bigger change, and not just a tweak of the regressing commit... > >=20 > > Cheers, > > Peter > >=20 > > diff --git a/arch/arm/mach-at91/sama5.c b/arch/arm/mach-at91/sama5.c > > index 67ed68fbe3a5..bf2b5c6a18c6 100644 > > --- a/arch/arm/mach-at91/sama5.c > > +++ b/arch/arm/mach-at91/sama5.c > > @@ -26,7 +26,7 @@ static void sama5_l2c310_write_sec(unsigned long val,= unsigned reg) > > static void __init sama5_secure_cache_init(void) > > { > > sam_secure_init(); > > - if (sam_linux_is_optee_available()) > > + if (IS_ENABLED(CONFIG_OUTER_CACHE) && sam_linux_is_optee_available()) > > outer_cache.write_sec =3D sama5_l2c310_write_sec; > > } > > =20 --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com