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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6256C77B6E for ; Thu, 13 Apr 2023 16:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sIHkq4KDRA1MOnMTGljEXBN8VtEw/K3eTh6ELukYcjo=; b=juPdmxpuJ9RTxF ywEnxC6uXcbTjYgiQW9T/u0lTATFqNuJL3QUmpm6w9M64j8NZw1OIt8GX0ur+bkah9ZxVhgyKuhQA EXs2yFTZckUaECJ6AFMGpj9FblkaADyyVCDCKoYQ/jJqFJOI+DiAh5IxuH2JA/uXGzSj42+Q1v32/ BPBbwrwslhJW4lOjsBc8Wtj5CZRsXZ2psJHeJllKwbV0HhrkYPUzjSWMc81GkYePMhc0EaDmF1X6s UtuApKvoD3aAidFeVQEGXflUxgnsSa6UxQ4HvX4eJ6wNLg5mZ8JkYFvZFOSWuomqe1+jG2MCCFB3D MLSeEN3454U3QM+NrXcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pn0DJ-006k4I-0s; Thu, 13 Apr 2023 16:54:25 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pn0DG-006k3b-0n for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 16:54:23 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 26EF660DC5; Thu, 13 Apr 2023 16:54:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8E8DC433EF; Thu, 13 Apr 2023 16:54:16 +0000 (UTC) Date: Thu, 13 Apr 2023 17:54:13 +0100 From: Catalin Marinas To: Ryan Roberts Cc: Will Deacon , Marc Zyngier , Oliver Upton , Suzuki K Poulose , Ard Biesheuvel , Anshuman Khandual , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v2 02/12] arm64/mm: Add FEAT_LPA2 specific ID_AA64MMFR0.TGRAN[2] Message-ID: References: <20230306195438.1557851-1-ryan.roberts@arm.com> <20230306195438.1557851-3-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230413_095422_323550_E81C0948 X-CRM114-Status: GOOD ( 17.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Apr 13, 2023 at 09:16:03AM +0100, Ryan Roberts wrote: > On 12/04/2023 17:27, Catalin Marinas wrote: > > On Mon, Mar 06, 2023 at 07:54:28PM +0000, Ryan Roberts wrote: > >> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h > >> index 9e3ecba3c4e6..7f708eecc3ad 100644 > >> --- a/arch/arm64/include/asm/sysreg.h > >> +++ b/arch/arm64/include/asm/sysreg.h > >> @@ -609,10 +609,12 @@ > >> > >> /* id_aa64mmfr0 */ > >> #define ID_AA64MMFR0_EL1_TGRAN4_SUPPORTED_MIN 0x0 > >> +#define ID_AA64MMFR0_EL1_TGRAN4_LPA2 ID_AA64MMFR0_EL1_TGRAN4_52_BIT > >> #define ID_AA64MMFR0_EL1_TGRAN4_SUPPORTED_MAX 0x7 > >> #define ID_AA64MMFR0_EL1_TGRAN64_SUPPORTED_MIN 0x0 > >> #define ID_AA64MMFR0_EL1_TGRAN64_SUPPORTED_MAX 0x7 > >> #define ID_AA64MMFR0_EL1_TGRAN16_SUPPORTED_MIN 0x1 > >> +#define ID_AA64MMFR0_EL1_TGRAN16_LPA2 ID_AA64MMFR0_EL1_TGRAN16_52_BIT > >> #define ID_AA64MMFR0_EL1_TGRAN16_SUPPORTED_MAX 0xf > > > > This patch evolved a bit since I first acked it in Anshuman's series. I > > can't find any trace of ID_AA64MMFR0_EL1_TGRAN4_52_BIT in the kernel. Is > > it introduced in a later patch? > > It's autogenerated as part of the sysreg magic. Ends up in > arch/arm64/include/generated/asm/sysreg-defs.h. Ah, I keep forgetting this (I usually build the kernel in a different directory, so grep doesn't encounter it). -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel