Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp433770pxb; Wed, 20 Jan 2021 10:28:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7K+UVFhoRNbaLtAZgPflb4iMUuIIBLPeA/nKHZHFG7DFa6uqXyvsvM4+404xwmo8HfQla X-Received: by 2002:a17:906:1712:: with SMTP id c18mr7144455eje.417.1611167297202; Wed, 20 Jan 2021 10:28:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611167297; cv=none; d=google.com; s=arc-20160816; b=g31gj/03P0ML7nsbe7tzPFNAkAJMW9EmEjbx5zA1aa5WeoG15o31Xk69EgKdmurXFr o9GYT75PerhlgfXA3hx2vT3rANeEQMPhATRz87Th96bA11eGHn1rEnLkca7Ap5OVIijO 3sr0dMobxTEFKOOC4bXb7pt0WsseFOEk9aenRgvAnXm+DdVHBkrpEF9VH+fMVJhiTMtM 7rcZmlCN06P5y7UbND0pkpRqodIov+g4hqXPHtfusavOjl6xHmlypMezjJxfs6RWG9TM nFfjwAMgp8Z2aBTcJ0n7dWupgL2D44zdRylA/ApRiDcwDafB7OYnLWtelMBXjwEJCDc+ m3Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1ozsOcpc8r4knmafxYijLefAY1Y7mglKWcfkeHJBK+Q=; b=LI+QchXVP+5Ry1LttlC9gMZhZBv9suPHD4TG7OCFGaiZ5MMGVLvHW4DRGnfg62I4H5 A9g8e6CG+iyKHFYjIbQ/05E6Oa0Cpv4c1PbjWdUEVQDD9ERn6IZu4/S5dKWpPD9NFcZj PgEuliY8BVRF+XUrkFWUtnInU4+/pBJ7mc2zu7VhiNLa5xiY2ty2JDHBzSCkEYUvIDY6 oogewwkcFDfj5EVNGE3ToGnjLkXOw8ATcqud279g+b9H4OdERLWXkKx6QUSQSju80Nv9 NTKHPD53DTm9lRLxI1fLwBjk9YGVgUlmgPNJC24tCG79dlHxJ4xPRuroTokG8Jl7H2ex tXYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si1174693edp.379.2021.01.20.10.27.52; Wed, 20 Jan 2021 10:28:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404376AbhATSZd (ORCPT + 99 others); Wed, 20 Jan 2021 13:25:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:47364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391968AbhATSSy (ORCPT ); Wed, 20 Jan 2021 13:18:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E69E3233ED; Wed, 20 Jan 2021 18:18:10 +0000 (UTC) Date: Wed, 20 Jan 2021 18:18:08 +0000 From: Catalin Marinas To: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, Will Deacon , Mark Rutland , David Brazdil , Alexandru Elisei , Ard Biesheuvel , Jing Zhang , Ajay Patil , Prasad Sodagudi , Srinivas Ramana , James Morse , Julien Thierry , Suzuki K Poulose , kernel-team@android.com Subject: Re: [PATCH v4 02/21] arm64: Fix outdated TCR setup comment Message-ID: <20210120181807.GB17952@gaia> References: <20210118094533.2874082-1-maz@kernel.org> <20210118094533.2874082-3-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210118094533.2874082-3-maz@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 09:45:14AM +0000, Marc Zyngier wrote: > The arm64 kernel has long be able to use more than 39bit VAs. > Since day one, actually. Let's rewrite the offending comment. > > Signed-off-by: Marc Zyngier > --- > arch/arm64/mm/proc.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S > index 1f7ee8c8b7b8..ece785477bdc 100644 > --- a/arch/arm64/mm/proc.S > +++ b/arch/arm64/mm/proc.S > @@ -464,8 +464,8 @@ SYM_FUNC_START(__cpu_setup) > #endif > msr mair_el1, x5 > /* > - * Set/prepare TCR and TTBR. We use 512GB (39-bit) address range for > - * both user and kernel. > + * Set/prepare TCR and TTBR. TCR_EL1.T1SZ gets further > + * adjusted if the kernel is compiled with 52bit VA support. I think both T0SZ and T1SZ get updated based on a mismatch between the kernel configuration and the hardware support. Anyway, I'm not asking for a detailed comment here, so: Acked-by: Catalin Marinas