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 E2CEEC433EF for ; Tue, 12 Apr 2022 00:00:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 58C7D83B8B; Tue, 12 Apr 2022 02:00:16 +0200 (CEST) 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="j+AeSAjQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7D9F88005D; Tue, 12 Apr 2022 02:00:13 +0200 (CEST) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (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 CB9688191C for ; Tue, 12 Apr 2022 02:00:09 +0200 (CEST) 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-qk1-x733.google.com with SMTP id c199so10818893qkg.4 for ; Mon, 11 Apr 2022 17:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=s0ljmQPHK+M1C7XGr+1YtPCB0qkNgK4yjTtl/Tosauw=; b=j+AeSAjQ9l1+/kou7iXqmlnzW8goPq6kVA4cAqaOvcdLx7GDj0ruozm7F46dJo+IP7 zSOxvwfz67umYvNyxPob2BikJE9zt3vXvXYM9oPN5JHVGZF6FgCmSdeWD0iHHHV2zfp0 c7inrEN2oT1QRnhUZQv/F5vaA18qS6a+Ve88k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=s0ljmQPHK+M1C7XGr+1YtPCB0qkNgK4yjTtl/Tosauw=; b=boi9s+DrqDvIquth8fpvn7RinYmeCMkHwsEWfSaL1IlxL5973jPWnJvFDUIByDOGXN EzPYXw8HZWnzC2cyZjFidrCDXqnerfAIMt2MzWD/m/ol51pkYaGmTisKZRTDHxdGMw4p 1y8A9PkLrviY/s2UCyzmPvEM+J3ybJv/CpJ5qZQKqrQs1c6oeKEmuTHe4bVj+3oUVjV/ 4xdVIXTIRcEpQYgoQnMrzcXFSRLzsXttRPxTbm0Fij0X0aoI2BTpGqEkJQxWc/i4C0NI DoIrCU3PLv7cWdbn6UrqEva+fNIoJ1+Qmv+8jw0JUUTfyDbHrmLF8FwWYhEIsR/yXRGU uBUA== X-Gm-Message-State: AOAM532vQAt3/BmSLXAqr5aRMflB59N7eOd7w/GbmpLHLKNwvMDYFHLq APuu9V04zp1JAJPIP9y/7sDi5g== X-Google-Smtp-Source: ABdhPJxVIxmep6nvhtcyZjadu3be4f90MaJuxA4tbWjmzjvN19SCZKRawdMU6OkNti9X2YMo3o5mKA== X-Received: by 2002:a05:620a:44d6:b0:67b:2dd0:3d19 with SMTP id y22-20020a05620a44d600b0067b2dd03d19mr1353306qkp.341.1649721608475; Mon, 11 Apr 2022 17:00:08 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id c70-20020a379a49000000b0069bdce177e2sm7173298qke.55.2022.04.11.17.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Apr 2022 17:00:07 -0700 (PDT) Date: Mon, 11 Apr 2022 20:00:05 -0400 From: Tom Rini To: =?iso-8859-1?Q?Pierre-Cl=E9ment?= Tosi Cc: u-boot@lists.denx.de Subject: Re: [PATCH 3/3] armv8: Initialize MAIR in early boot Message-ID: <20220412000005.GA3265641@bill-the-cat> References: <20220329170607.689006-1-ptosi@google.com> <20220329170607.689006-3-ptosi@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20220329170607.689006-3-ptosi@google.com> 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.5 at phobos.denx.de X-Virus-Status: Clean --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 29, 2022 at 06:06:07PM +0100, Pierre-Cl=E9ment Tosi wrote: > As the register is initialized to a constant value, it can be set at any > point before the MMU has been enabled. Instead of waiting until the very > last moment to do so, initialize it during early boot, when we > initialize other system registers. This ensures it is valid at any point > once the C runtime is up. >=20 > Signed-off-by: Pierre-Cl=E9ment Tosi > Cc: Tom Rini > --- > arch/arm/cpu/armv8/Kconfig | 6 ++++++ > arch/arm/cpu/armv8/start.S | 12 ++++++++++++ > arch/arm/include/asm/armv8/mmu.h | 5 ----- > 3 files changed, 18 insertions(+), 5 deletions(-) This makes a number of platforms such as: px30-core-ctouch2-of10-px30 px30-core-ctouch2-px30 px30-core-edimm2.2-px30 odroid-go2 evb-px30 firefly-px30 fail to build due to size increase. --=20 Tom --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJUwPwACgkQFHw5/5Y0 tyyGnwwAt8Y2xr7SyCUsJ9OSGU4u+v01RHPqpzAgtJSYWKtEUIFVg24E6kak5iWi rXI/argkZN++GPNS/6W4wVofFZhBOW/+SG6xh4ESouDjOZFCnt//vEDofTSeEE0f DCDvPf3KBchO0mBr/DedueuP3I7nrrmcGcX9fqRn3BhmaItzYCc42954JCE+3x4N zV0BHnsMaKX3ZMCFX5q8892wydzm1CAUTKK29FKEEqzBouUQYeAytPJOsJQCRfGu 8Kai8g/cZfzHwyRtBeyMRdnVbV0pHRrRKPQNt8DeuUlbGz96tRxLh6aWZ9pKSANY kVwC+piUZMoaXd11IcaNWtyTFOP6bG8X/oTEhqGs9nWEpWd8EQnMcmRHxGCcPcui XNVKIy/4zLpfNYtyGvBzLCtR6LOLGn+pzw9dFZTzKTFIef6Zq39Z9n9r8qxNmjKr Ljbi8eWWtOj9hzRBDbtwjGz8wY5V8J/Z3fMnb1jbE0vVlocse+lbNHvoxF8OXqvm TjFEpi2U =aEyr -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--