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 73BA6C3DA64 for ; Thu, 1 Aug 2024 16:32:36 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dL5lLjRSa1c3xQBFfdxZrDFJjursUF/Us6ax8yBhi30=; b=2Ch/qqhn2sboivvkQzqXXIvU05 e9Ip3F0nfxjahA2pFFGSEqbpaCL2tWToDYyX6XUpdZ0zYQEWO++uy8niWQJQ6BHDegYe84GvIf+Jc 0ZQKNrgixoOjyXFnxTZ2gh6Rxxrr5ls6fgd63y+oetRTI83i+mABCtXSsGKY1EkG7V3GBkkCvAo/0 cJxlX6s8pho3bY9qrUa2r25XZas7i4t3FRIdXnEeeLrCxQWckZHs2S4ppZXcorBkc5sGpe9YNF02e Nv7+2GL04hRGVJ1W9XwFp70gU6pRQI/Xqxn4K4cQpeaHHkv8oC5sCtlyKcZ7uP1v+Um3/clUl1aOH r3obh43Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZYj4-000000063b2-23CI; Thu, 01 Aug 2024 16:32:26 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZYia-000000063Ru-2LPH for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2024 16:31:57 +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 3D6FC1007; Thu, 1 Aug 2024 09:32:21 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 97D4A3F5A1; Thu, 1 Aug 2024 09:31:52 -0700 (PDT) Date: Thu, 1 Aug 2024 17:31:50 +0100 From: Dave Martin To: Joey Gouly Cc: linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, aneesh.kumar@kernel.org, aneesh.kumar@linux.ibm.com, bp@alien8.de, broonie@kernel.org, catalin.marinas@arm.com, christophe.leroy@csgroup.eu, dave.hansen@linux.intel.com, hpa@zytor.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, maz@kernel.org, mingo@redhat.com, mpe@ellerman.id.au, naveen.n.rao@linux.ibm.com, npiggin@gmail.com, oliver.upton@linux.dev, shuah@kernel.org, szabolcs.nagy@arm.com, tglx@linutronix.de, will@kernel.org, x86@kernel.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v4 10/29] arm64: enable the Permission Overlay Extension for EL0 Message-ID: References: <20240503130147.1154804-1-joey.gouly@arm.com> <20240503130147.1154804-11-joey.gouly@arm.com> <20240801160403.GD841837@e124191.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240801160403.GD841837@e124191.cambridge.arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_093156_665813_5B2D2CC6 X-CRM114-Status: GOOD ( 20.38 ) 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 Thu, Aug 01, 2024 at 05:04:03PM +0100, Joey Gouly wrote: > On Thu, Jul 25, 2024 at 04:49:08PM +0100, Dave Martin wrote: > > On Fri, May 03, 2024 at 02:01:28PM +0100, Joey Gouly wrote: > > > Expose a HWCAP and ID_AA64MMFR3_EL1_S1POE to userspace, so they can be used to > > > check if the CPU supports the feature. > > > > > > Signed-off-by: Joey Gouly > > > Cc: Catalin Marinas > > > Cc: Will Deacon > > > --- > > > > > > This takes the last bit of HWCAP2, is this fine? What can we do about more features in the future? > > > > > > > > > Documentation/arch/arm64/elf_hwcaps.rst | 2 ++ > > > arch/arm64/include/asm/hwcap.h | 1 + > > > arch/arm64/include/uapi/asm/hwcap.h | 1 + > > > arch/arm64/kernel/cpufeature.c | 14 ++++++++++++++ > > > arch/arm64/kernel/cpuinfo.c | 1 + > > > 5 files changed, 19 insertions(+) > > > > > > diff --git a/Documentation/arch/arm64/elf_hwcaps.rst b/Documentation/arch/arm64/elf_hwcaps.rst > > > index 448c1664879b..694f67fa07d1 100644 > > > --- a/Documentation/arch/arm64/elf_hwcaps.rst > > > +++ b/Documentation/arch/arm64/elf_hwcaps.rst > > > @@ -365,6 +365,8 @@ HWCAP2_SME_SF8DP2 > > > HWCAP2_SME_SF8DP4 > > > Functionality implied by ID_AA64SMFR0_EL1.SF8DP4 == 0b1. > > > > > > +HWCAP2_POE > > > + Functionality implied by ID_AA64MMFR3_EL1.S1POE == 0b0001. > > > > Nit: unintentionally dropped blank line before the section heading? > > Now there's only one blank line, I think > c1932cac7902a8b0f7355515917dedc5412eb15d unintentionally added 2 blank lines, > before that it was always 1! Hmmm, true. Not a big deal, I guess. Cheers ---Dave