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 E1E05C7115B for ; Thu, 19 Jun 2025 11:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Xl0w8oYxZhcpzVWOjmSwEk3X5fQAU7HIN+avaOlui9I=; b=zUaftmGAKbXUR/JvHJkfGgqXoE 31MyuxibQp65hSHrQ9VCfPCcuTqiqjxF+0Fv4Za4GxKOVv7LpoTyeGQ5fG8q9JKNuFp6Z3EBUtvQb DdjC15R3aDLWBHYZcOdmpPh1rFcL/ZnBkWbnU3D7f85EWv191LBJqqgImZ+y+c8RssuHwsfiSmtSm oHZY+wY4NbXskItsvxAwuKNso86FRn/26+tXtzL6ubqzvz+ySzGzKp1U+rtwBI3rkEvry6/vKJxQh hhrEJl0TwPyGO7cjuxNf+SABHUxeJeFy0xL0FP5wO37DDHO/bBuZt9/DEVMnnRAQpcMgu8HPDhHCr gKbMXQVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uSD8k-0000000Coeb-01sW; Thu, 19 Jun 2025 11:09:06 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uSBRU-0000000CbKe-39kA for linux-arm-kernel@lists.infradead.org; Thu, 19 Jun 2025 09:20:22 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8A806113E; Thu, 19 Jun 2025 02:19:59 -0700 (PDT) Received: from [10.57.84.221] (unknown [10.57.84.221]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2B13A3F58B; Thu, 19 Jun 2025 02:20:16 -0700 (PDT) Message-ID: <8c6f1c91-176c-4382-b631-79948e8de16f@arm.com> Date: Thu, 19 Jun 2025 10:20:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 2/4] arm64: Add BBM Level 2 cpu feature Content-Language: en-GB To: =?UTF-8?Q?Miko=C5=82aj_Lenczewski?= Cc: yang@os.amperecomputing.com, catalin.marinas@arm.com, will@kernel.org, jean-philippe@linaro.org, robin.murphy@arm.com, joro@8bytes.org, maz@kernel.org, oliver.upton@linux.dev, joey.gouly@arm.com, james.morse@arm.com, broonie@kernel.org, ardb@kernel.org, baohua@kernel.org, suzuki.poulose@arm.com, david@redhat.com, jgg@ziepe.ca, nicolinc@nvidia.com, jsnitsel@redhat.com, mshavit@google.com, kevin.tian@intel.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev References: <20250617095104.6772-1-miko.lenczewski@arm.com> <20250617095104.6772-3-miko.lenczewski@arm.com> <20250619085701.GA10805@e133081.arm.com> From: Ryan Roberts In-Reply-To: <20250619085701.GA10805@e133081.arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250619_022020_833220_2C9E1D6A X-CRM114-Status: GOOD ( 16.57 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 19/06/2025 09:57, Mikołaj Lenczewski wrote: > On Wed, Jun 18, 2025 at 03:07:41PM +0100, Ryan Roberts wrote: >> On 17/06/2025 10:51, Mikołaj Lenczewski wrote: >>> #ifdef CONFIG_ARM64_PAN >>> static void cpu_enable_pan(const struct arm64_cpu_capabilities *__unused) >>> { >>> @@ -2980,6 +3015,11 @@ static const struct arm64_cpu_capabilities arm64_features[] = { >>> .matches = has_cpuid_feature, >>> ARM64_CPUID_FIELDS(ID_AA64MMFR2_EL1, EVT, IMP) >>> }, >>> + { >>> + .capability = ARM64_HAS_BBML2_NOABORT, >>> + .type = ARM64_CPUCAP_EARLY_LOCAL_CPU_FEATURE, >>> + .matches = has_bbml2_noabort, >> >> Is there a reason you have removed the .desc from this? Without it, the kernel >> won't print a "detected" line when it enables the feature. Previously you had: >> >> .desc = "BBM Level 2 without conflict abort", >> >>> + }, >>> { >>> .desc = "52-bit Virtual Addressing for KVM (LPA2)", >>> .capability = ARM64_HAS_LPA2, >> > > Damn it! I completely forgot to birng that back. Yet another remenant of > the NO_BBML2_NOABORT version we had discussed in v6, because a > description field would have been confusing due to the double negation: > > https://lore.kernel.org/all/83d1f7af-3dc7-45f9-94f3-8a0917c051d2@arm.com/ > > Thank you very much for spotting this Ryan! Ill return the description, > and respin on Monday (unless it is possible to do this as a RESEND or > similar, but I doubt it since this is technically a functional change) :/ > I think probably just send out a new version.