Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1880852pxb; Mon, 18 Jan 2021 02:21:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUTEIHmZKzsI1+H+fLL83Z7KCtQvZFgxYKU+K034wTxRpMcOvUstDO76zrV6edS31lHUWa X-Received: by 2002:a17:906:6887:: with SMTP id n7mr3166724ejr.362.1610965279762; Mon, 18 Jan 2021 02:21:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610965279; cv=none; d=google.com; s=arc-20160816; b=rhc2HQ9abfN9hHqo1ybxj9NVy/RTakCmKH7P8GeIuQn250uZE0lbXeNIlsFsbLCxqj U13xau86KGRBerr3mqOT77he0p42Eh+pg5ly+bCtGczM/5YpO0ephcoreKOjaSl/XCEn hKRfdEfbeJu5aXE5xy5iPD62vZaiKEgLYWb/4MwZ/gi2u5m89U06xv3zaEJ28z70xEPu fMjAOFJrVO6yFVcL9XSM9moSxb/jhEdFFrJTIHXdulkACS3gb3Sb+n1ch8nVTeZzzk8T lMbnZRX2DIQWEvwOFr/SrHbp7U7mQ83ddANHT8Z6rChYEo85HT+3vRJDGyU7XUTfAcoh 3umw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=h9jPKoRclV8lCR+BPvASZcpm010agTPd0rqQ3dEOyXc=; b=JbOU7umrrk2UTrRIroscfeU0lJBOMC+YV5yjuu3zeLV0dl/aquUs2j8uczq/t9SWEV UD7pgH0NG0CPgQu8kg14OZ4jo/AY1n8F02WEPEQB/ojoPLWTN87NW6k6FNfkR30tdJeP yqDh/gWI65gKEaq9plAZl6IYqmzPYJWSkH7Khebnr4i0EenT2lGJyoPOkiNpL1hMB2az BTv+VtrfqC6qC02OKMnVT8tuceqEjE1e1T+ivieSETYtVZOa+hWLD9nqphI69rk+Y2ZR Egx/WwR2vSv2/rKvYAc6eY0l0QEVPhv1IOt9TYREXc6rS9yC4LMqjTln+7M0l1Bfu+WP thpw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si7022540edb.431.2021.01.18.02.20.56; Mon, 18 Jan 2021 02:21:19 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389636AbhARKL1 (ORCPT + 99 others); Mon, 18 Jan 2021 05:11:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:35988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389241AbhARJqo (ORCPT ); Mon, 18 Jan 2021 04:46:44 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F134E223E8; Mon, 18 Jan 2021 09:46:02 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l1R6n-008RhD-6J; Mon, 18 Jan 2021 09:46:01 +0000 From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Cc: Catalin Marinas , 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: [PATCH v4 02/21] arm64: Fix outdated TCR setup comment Date: Mon, 18 Jan 2021 09:45:14 +0000 Message-Id: <20210118094533.2874082-3-maz@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210118094533.2874082-1-maz@kernel.org> References: <20210118094533.2874082-1-maz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, dbrazdil@google.com, alexandru.elisei@arm.com, ardb@kernel.org, jingzhangos@google.com, pajay@qti.qualcomm.com, psodagud@codeaurora.org, sramana@codeaurora.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. */ mov_q x10, TCR_TxSZ(VA_BITS) | TCR_CACHE_FLAGS | TCR_SMP_FLAGS | \ TCR_TG_FLAGS | TCR_KASLR_FLAGS | TCR_ASID16 | \ -- 2.29.2