Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11C2DC10F03 for ; Tue, 23 Apr 2019 16:29:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D0FB920645 for ; Tue, 23 Apr 2019 16:29:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OJvk3omD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0FB920645 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject: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=hMJ9cFXayRPmYrOJpYHR54KPzkVHcAaLMdNC88EjuV8=; b=OJvk3omDHDNBMX bP/FAB4VQIVWLG6TDZ5bhnBL17Th9bkKO85jVkFrzXIlKCExDnZKYpl2eSXPAzzJ5qaCcOyXDVk3/ 7dextXZ5UVOBYYCnfJQ5oI1WgLUIILqH+SSGA3FaeT6poeQiqL2Omf+D9A66vyXTs/KNPCWpxCQJ0 vDn4LkPx/WV22pxloylxfTnLTmgkYaRvPGA7q0flII+4gDAixth46Z3UG9uir/ZmmV8Qt1vP7Jex5 aR5G47YoCeAlyMdqAVnJhdfRIopcOc56NBxIL3xWYv9QAOdYQSWGblUTG9vTThL58Y07JIZPw0jd5 YoaiFz/r13IKZFtKiXsg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hIyI1-0002AB-0D; Tue, 23 Apr 2019 16:29:01 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hIyHx-00029r-Ly for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2019 16:28:59 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2256880D; Tue, 23 Apr 2019 09:28:56 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 075413F557; Tue, 23 Apr 2019 09:28:54 -0700 (PDT) Date: Tue, 23 Apr 2019 17:28:52 +0100 From: Mark Rutland To: Dave Martin Subject: Re: [PATCH] arm64: Expose SVE2 features for userspace Message-ID: <20190423162852.GF56999@lakrids.cambridge.arm.com> References: <1555609298-10498-1-git-send-email-Dave.Martin@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1555609298-10498-1-git-send-email-Dave.Martin@arm.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190423_092857_733833_598BBAA6 X-CRM114-Status: GOOD ( 20.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Andrew Murray Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Apr 18, 2019 at 06:41:38PM +0100, Dave Martin wrote: > This patch provides support for reporting the presence of SVE2 and > its optional features to userspace. > > This will also enable visibility of SVE2 for guests, when KVM > support for SVE-enabled guests is available. > > Signed-off-by: Dave Martin > --- > > This patch is based on > > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git > f645d37e281f ("Merge remote-tracking branch 'arm64/for-next/mmiowb' into for-next/core") > > (for Andrew Murray's HWCAP2 support). > > > Tested with the Arm Fast Model SVE2 plugin. > > For KVM, tested with: > > git://linux-arm.org/linux-dm.git sve-kvm-fixes/v2/head > http://linux-arm.org/git?p=linux-dm.git;a=shortlog;h=refs/heads/sve-kvm-fixes/v2/head > > (which is also now merged to kvmarm/next). > > Documentation/arm64/cpu-feature-registers.txt | 16 ++++++++++++++++ > Documentation/arm64/elf_hwcaps.txt | 24 ++++++++++++++++++++++++ > Documentation/arm64/sve.txt | 17 +++++++++++++++++ > arch/arm64/Kconfig | 3 +++ > arch/arm64/include/asm/hwcap.h | 6 ++++++ > arch/arm64/include/asm/sysreg.h | 14 ++++++++++++++ > arch/arm64/include/uapi/asm/hwcap.h | 6 ++++++ > arch/arm64/kernel/cpufeature.c | 17 ++++++++++++++++- > arch/arm64/kernel/cpuinfo.c | 6 ++++++ > 9 files changed, 108 insertions(+), 1 deletion(-) > > diff --git a/Documentation/arm64/cpu-feature-registers.txt b/Documentation/arm64/cpu-feature-registers.txt > index d4b4dd1f..4e47a01 100644 > --- a/Documentation/arm64/cpu-feature-registers.txt > +++ b/Documentation/arm64/cpu-feature-registers.txt > @@ -209,6 +209,22 @@ infrastructure: > | AT | [35-32] | y | > x--------------------------------------------------x > > + 6) ID_AA64ZFR0_EL1 - SVE feature ID register 0 > + > + x--------------------------------------------------x > + | Name | bits | visible | > + |--------------------------------------------------| > + | SM4 | [43-40] | y | > + x--------------------------------------------------x > + | SHA3 | [35-32] | y | > + x--------------------------------------------------x > + | BitPerm | [19-16] | y | > + x--------------------------------------------------x > + | AES | [7-4] | y | > + x--------------------------------------------------x > + | SVEVer | [3-0] | y | > + x--------------------------------------------------x Trivial nit: for consistency with all the other tables, please only use 'x' at the corners, and use '|' at the edges. Otherwise, this looks good to me; sorry for the late style nit! Thanks, Mark. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel