From mboxrd@z Thu Jan 1 00:00:00 1970 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 40876C678DB for ; Tue, 7 Mar 2023 17:53:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9B73685C4D; Tue, 7 Mar 2023 18:52:35 +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="AbUGXO2P"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 04ED385C40; Tue, 7 Mar 2023 18:52:34 +0100 (CET) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (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 8DAD885BFB for ; Tue, 7 Mar 2023 18:52:29 +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-qv1-xf2f.google.com with SMTP id o3so9468958qvr.1 for ; Tue, 07 Mar 2023 09:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1678211548; 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=L6bx1W6C5on3flkDG+LAafRTdpPwPqdnwByMXJTjD0g=; b=AbUGXO2PFJfTEQAgvd+QVQJO1G6i793FEPjKGK8BFlxggFdWuaZksyisMzzHNSicfW jWCk8D10+qTnbklwajgqEBtO0/2W3/1aeAZN1RjoDQW0n7AssMPGhMEEPWH31TJgBOsY MfpMniPXcO53Khbdv0yqyNSycLyqtJ9PJZhjw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678211548; 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=L6bx1W6C5on3flkDG+LAafRTdpPwPqdnwByMXJTjD0g=; b=CMgKMASdZuB9nuN3v0wNvHvKz617Gwgxjpu8e0C0As86eSmcw/jzYnXU4lR6e024ko P0noCB8HYZPgabzOA5JKLUaMxshqej1FPfFf/bS3vxFkftmJAu89lXOdlHKhvtqb56Nr eTti3sD8vAcfsSIDEro8hUL2p6xSmuOc4erEMCY3JOoMVC3SJ9wncxauYyp/n2MLgvJv AEp+Ec1q7SzUsHmnSupRM6McvQgUC+1WSmUElctF2aJqH3DwHXOib+9WPcZ1T5qgnkat aiGHpWimWgAOLDZtSCFGJsbIqLn0Zo4TktmxWGVgX5xgNLp+EUFh44VFux1i/ww+voM2 Oqjg== X-Gm-Message-State: AO0yUKX5VWkgYGR9Zl8KEiNw49Y8l0zFekCK29cWoeGex8fixgMSNSbQ tg+sCimuj+ly41qK364EtOwqSjSBcGBVzL5/FX6zNg== X-Google-Smtp-Source: AK7set9v+qP3MR9Nl50gQcK8lsTpC0WTk9r29t2gerIapRJ3dquhyxss6fvEo9bbq840vWrlAaiCKw== X-Received: by 2002:ad4:5aed:0:b0:56e:bd59:40f1 with SMTP id c13-20020ad45aed000000b0056ebd5940f1mr28573614qvh.48.1678211548073; Tue, 07 Mar 2023 09:52:28 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id j67-20020a378746000000b007422eee8058sm9767904qkd.125.2023.03.07.09.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 09:52:27 -0800 (PST) Date: Tue, 7 Mar 2023 12:52:26 -0500 From: Tom Rini To: "Ying-Chun Liu (PaulLiu)" Cc: u-boot@lists.denx.de, =?iso-8859-1?Q?Pierre-Cl=E9ment?= Tosi Subject: Re: [PATCH v2 2/2] arm64: Initialize TLB memory if CMO_BY_VA_ONLY Message-ID: <20230307175226.GN968799@bill-the-cat> References: <20230208205428.1083689-1-paul.liu@linaro.org> <20230208205428.1083689-3-paul.liu@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NTVPWM9cTuKDxJVt" Content-Disposition: inline In-Reply-To: <20230208205428.1083689-3-paul.liu@linaro.org> 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.8 at phobos.denx.de X-Virus-Status: Clean --NTVPWM9cTuKDxJVt Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 09, 2023 at 04:54:28AM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: Pierre-Cl=E9ment Tosi >=20 > Memory used to hold the page tables is allocated from the top of RAM > with no prior initialization and could therefore hold invalid data. As > invalidate_dcache_all() will be called before the MMU has been > initialized and as that function relies indirectly on the page tables > when using CMO_BY_VA_ONLY, these must be in a valid state from their > allocation. >=20 > Signed-off-by: Pierre-Cl=E9ment Tosi > [ Paul: pick from the Android tree. Fix checkpatch warnings, and rebased > to the upstream. ] > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: Tom Rini > Link: https://android.googlesource.com/platform/external/u-boot/+/e3ceef4= 230b772186c6853cace4a676a407e6ab7 Applied to u-boot/next, thanks! --=20 Tom --NTVPWM9cTuKDxJVt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQHedoACgkQFHw5/5Y0 tywYoAv/Vhnq+Gc2g4if1taDwdjcDt6ogWWgdV8m9WTTGjCTbYAtvIHimi1qZ4tq wCGHk4+z0RRKzaH2ksT/vD960Acp1OEk9GpQftDRZi0L9y27MBMX19UuC+AzoWdm XmwC4JDwUzXt0zXm+rleO6x050GijBV2zWn2/ockkAooi1ewL8oI8pcDZaGNG7cq FD04XSzV3nmvJc3/3ThJIHDIoKMk/0NDhEj92ntRvMiUbKXVMIT4RyBlIswTNtg0 S1cWIvfqM9Bqt9gDEmicqm2mqXd6Izh34KZr8+UV+VfHRgpTSNxwE+lJ9rQc3cGg ptRqbtbt50/ZoSNjQnkS6O3LVHGtXqU5HyZj6tFqJqfbb5OwvKhLClW60kwBpcvW XB397eVDnhvvp16JaiZDflwrJw0bIJMrsgwqmXsbiMg+isa+J0xtSmzNACdLT4yV SihkE6ACnynT/8ZO6kRCvgzpBYg4HcShIATZtraZT6k8jCc/o9r9nB4lyinNeUP4 Pc2DnWpI =U4vE -----END PGP SIGNATURE----- --NTVPWM9cTuKDxJVt--