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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C307C61DA4 for ; Wed, 22 Feb 2023 19:56:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5701985959; Wed, 22 Feb 2023 20:56:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="FvXbSRmM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02A6085A82; Wed, 22 Feb 2023 20:56:17 +0100 (CET) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0A44485870 for ; Wed, 22 Feb 2023 20:56:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82f.google.com with SMTP id bt6so8736559qtb.4 for ; Wed, 22 Feb 2023 11:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gHt8kFJpfo4eaXsN56KVYIV7JWFYZvWoT5GG/g6mUBo=; b=FvXbSRmMLExg/+oEkqCNWHp4hsGvUO593fKo5Rs3lwLP/JbKS0evxcgMHLDFfiKhF4 tv4prHZqah1oXyDM9yr70hwmPEu8lAz4ueRAO2+NbK+CoUJshGXbe2B8gd3tqV9FNMW/ v0VW9pLbDhpLzKmQyzUtG336N9JBmG7X/SwqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gHt8kFJpfo4eaXsN56KVYIV7JWFYZvWoT5GG/g6mUBo=; b=jkMofGaPTbF8ID5RjF+S7oL86hyMkvHYS38iBA73ttYNbiopyR6Rn6IX+ggROUWaix 7E9cZsZq6M8labrrmetsEVYbA5Ki+B7KnoZrjYs3L4goMT7JVIjqPkFSPJiMPVqBDQ1S dQjaAdmuLiQFGYE/UzQAjw2hPY40trn5xqZHezNH+sknQV1YM8sq0Ei3Wf6a+3qfJj09 /eKxd7CpHBIGhtBhZodoxQv0oLbRjg8A0sCy3TtG0DdCihp2R07fTgFWyZZTAQ1Ck/OM sBChHm++jAt/2Ls3wARG2ZyDhwRq9pBpTyeY2IxJCB0qOP2DWsU1jsid7PdQU+GAGIKc ssaA== X-Gm-Message-State: AO0yUKUed/e6ApMS2NxMghx2+U3Flhx1qL1lZzZrLEWXU6iRGS1pKcll mmP9Nro5cZ9TR6BAgs7fM5v6fQ== X-Google-Smtp-Source: AK7set+Uhky43QD+pE6uEjDymiSoL918mKHarnupgyXjYwQc0tQUe8vyfs10yOOe8RZ3huPLdIp4Sw== X-Received: by 2002:a05:622a:1985:b0:3bf:a601:6a84 with SMTP id u5-20020a05622a198500b003bfa6016a84mr10452890qtc.38.1677095772757; Wed, 22 Feb 2023 11:56:12 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-b87e-a945-7631-50d9.res6.spectrum.com. [2603:6081:7b00:6400:b87e:a945:7631:50d9]) by smtp.gmail.com with ESMTPSA id y85-20020a376458000000b0073df51b5127sm1887116qkb.43.2023.02.22.11.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 11:56:12 -0800 (PST) Date: Wed, 22 Feb 2023 14:56:10 -0500 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Dinh Nguyen , Marek Vasut , Simon Goldschmidt , Tien Fong Chee Subject: Re: [PATCH v3 68/95] socfpga: Use the correct condition for SYS_L2_PL310 Message-ID: References: <20230212231638.1134219-1-sjg@chromium.org> <20230212231638.1134219-69-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="F6rWRi84jtbYvkDG" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --F6rWRi84jtbYvkDG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 22, 2023 at 12:16:53PM -0700, Simon Glass wrote: > Hi Tom, >=20 > On Tue, 14 Feb 2023 at 09:38, Tom Rini wrote: > > > > On Sun, Feb 12, 2023 at 04:16:11PM -0700, Simon Glass wrote: > > > > > Update this to use the PPL condition instead, so that nothing changes= when > > > building for SPL with split config. > > > > > > Signed-off-by: Simon Glass > > > --- > > > > > > (no changes since v1) > > > > > > arch/arm/mach-socfpga/misc.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/mis= c.c > > > index 5b5a81a255d..b09b898051b 100644 > > > --- a/arch/arm/mach-socfpga/misc.c > > > +++ b/arch/arm/mach-socfpga/misc.c > > > @@ -32,7 +32,7 @@ phys_addr_t socfpga_clkmgr_base __section(".data"); > > > phys_addr_t socfpga_rstmgr_base __section(".data"); > > > phys_addr_t socfpga_sysmgr_base __section(".data"); > > > > > > -#ifdef CONFIG_SYS_L2_PL310 > > > +#ifdef CONFIG_PPL_SYS_L2_PL310 > > > static const struct pl310_regs *const pl310 =3D > > > (struct pl310_regs *)CFG_SYS_PL310_BASE; > > > #endif > > > @@ -66,7 +66,7 @@ void enable_caches(void) > > > #endif > > > } > > > > > > -#ifdef CONFIG_SYS_L2_PL310 > > > +#ifdef CONFIG_PPL_SYS_L2_PL310 > > > void v7_outer_cache_enable(void) > > > { > > > struct udevice *dev; > > > > Why can we not continue to use CONFIG_SYS_L2_PL310 in this case? >=20 > This is because the code is compiled for SPL too, iwc that option is > not enabled with split config. >=20 > For now I'll move it to the mythical 'splg' series (that actually does > split config) That this is discarded normally, today, as seems intentional: $ make socfpga_socrates_defconfig # # configuration written to .config # $ grep PL310 .config CONFIG_SYS_L2_PL310=3Dy # CONFIG_SPL_SYS_L2_PL310 is not set $ But needs changes like this with split config is worrisome. --=20 Tom --F6rWRi84jtbYvkDG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmP2c1MACgkQFHw5/5Y0 tyykNQwAjSJmrxzItgU5yZl0zSBM1EcUyS3w7nTDOq21/u5dhkBPXG0VYoU3NEAX ORLmuWzqk5GtKQjVa5D9S7UaW3N70UKm2powik4Jr0Hc7DAoafZCO1GeZkd75XYs Q4qaOMVfGnBpvtzi7V4TmXqW2zIv66hExyXrKQcdoup2xubPkFr9Av9R+7Lp+NKg fN4pk/Sn01DmhjLp5nZNO6IwAKWLwaZGW0BhiSLdVl507gIQAarOklzhJ4EDvPr2 aINhlX7v482z3dlL0O75UcspVgrA1tbCQN8sOm3KOxUxK0rYtus0zroMiTbmn59+ Nv7IxSM4m70WDZsUNHnTZ5wwCQoXOothcitPLL0gjB4lMW+RO+BUZQwxkM8jSbPK lRf/GwqC3MmYWIkMxMh+ggsS968XQkRXsYu5twTeS2QrjPov8L8BFyTyJPWXbruq AOpSH1O+AbE8uduoQnef2LeNZ1PkNtVhS7+qMB2NpoiFBYDPvkxvlGOrvz5UU3HJ SaC01PEM =m9i2 -----END PGP SIGNATURE----- --F6rWRi84jtbYvkDG--