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 43282C43334 for ; Thu, 16 Jun 2022 11:29:12 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=v4rasu25BRGRU5V8xUc3POKqeVOJm4NgPjjk+r13NgI=; b=04OzWj4apM/w3e HVAEiH8fI7t6yVkFF3V5Z12q0D7GOsdkLft4SMo4i8UgwAM1LHTcUrthGGcJVAR4hw+1rlXSZMso9 tGCRL/c+ItvIhgcG+DD7Ims+REgLy869ntIhlU6qIdnUOTWv2lt9T5qGAx6uYykkhg3bXQMvf+MVL 28VbCjpCMUONEaIe6N7yjFyFi4XR1gh1FyHbN3oej9ezAlvXTs32yqRtk2tHbxkfvzw68DI8CEscj 8dM9j6KeJxb453si/8fN/dG6ewuS/MMSGqwidFX0tQGMTU/pzzWAGYEGHcX4NP+Gzi3Gxpflov5+p LcvgK9cFlcKqRuPMHcVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1nfV-0024h3-FV; Thu, 16 Jun 2022 11:28:09 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1nfS-0024g6-Hy for linux-arm-kernel@lists.infradead.org; Thu, 16 Jun 2022 11:28:07 +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 C6C7A61993; Thu, 16 Jun 2022 11:28:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCAC5C3411B; Thu, 16 Jun 2022 11:28:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655378885; bh=xI9l5MK+Mwvz7CknuoUW6YOfn8WEPa6y9NjbMoajG38=; h=From:To:Cc:Subject:Date:From; b=gAoIicgBsChjsYJEza5aRLcjh+Cix9cVF3n1gtPlfzItzYK6eWGaFV6Vfe8UQejFv jYGQVgAHn+lyvsLxa3JRt9/A4u4Gw559+P6dgSABxwP3qcEE+u6dTcnyH7CgmXHLMy g8Dm+AOz8Gbpq4Ml64o9FJmZHIAHU6Q2LM6UXKGVcaAdzGwwZITDu+zGc9aAYdomN/ xV7Me/PeYOtSxtPyZWEjHacau8ngrg5OVekp4QDXGTs7o088Jl+5KgPqhD0eAELRX5 /Riwu6wD0ONmtGoZSNx8PM8UTJUNJdql9eVhiwvpLQoys0ajMVkbaN6lpP4gDjQom8 MxOCZj6RI8WIA== From: Mark Brown To: Catalin Marinas , Will Deacon , Eric Biederman , Kees Cook Cc: Suzuki K Poulose , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 0/4] arm64: Add AT_HWCAP3 Date: Thu, 16 Jun 2022 12:18:14 +0100 Message-Id: <20220616111818.724230-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1447; h=from:subject; bh=xI9l5MK+Mwvz7CknuoUW6YOfn8WEPa6y9NjbMoajG38=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiqxFz8FpA4UDFgBTdP83Zr8/ZT+5EOYIclwNwXaML xyKtQ2SJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYqsRcwAKCRAk1otyXVSH0IcTB/ 96RyioEus947dD+UPfxBK9BNwV+S/2fGRvOar+aTCcmAWrMoAyl5Bx3FEeoO7PLYZbl9pAEbIvzgiS PqR+v4JXag7ZGmiz9XtFcfUufw3G3vGwobTko5/UJs01Qgs8yxR1RxLVtQL46VpDMYLjZwtUpz/Fc9 xqJ3V5ZRA2aDWlUi2aSS77/6QKiJ5KGMU8qkwoj3qeQCTVG99CRFQoaL8KsJC4DwF85rqRzVwFFIrR LmpB2VmqEpWvVPnViKjXn0DNjTA6cvCOl5gK46OUHBJx6aVprp1/6Dr9bPeY1O3BUm4Ik6pjD4a5n/ e28+xGIEjNfnnQORET15XT4JAWcN/7 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220616_042806_666413_9869AA01 X-CRM114-Status: GOOD ( 12.05 ) 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 Currently for arm64 we expose hwcaps to userspace using the low 32 bits of AT_HWCAP and AT_HWCAP2. Due to the ever expanding capabilties of the architecture we have now allocated all the available bits in this scheme so we need to expand, either using the higher bits or adding a new AT_HWCAP3. Discussions with glibc developers suggested that AT_HWCAP3 would be cleaner for them so the series adopts that approach. The final patch adds an initial value in AT_HWCAP3 reporting the presence of FEAT_EBF16, this will conflict with my series converting ID_AA64ISAR1_EL1 to be generated. I've got a version based on top of that which I can send if that's convenient. Mark Brown (4): arm64/cpufeature: Store elf_hwcaps as an array rather than unsigned long elf: Allow architectures to provide AT_HWCAP3 arm64/cpufeature: Support AT_HWCAP3 arm64/hwcap: Support FEAT_EBF16 Documentation/arm64/elf_hwcaps.rst | 10 +++++++--- arch/arm64/include/asm/cpufeature.h | 5 ++++- arch/arm64/include/asm/hwcap.h | 17 ++++++++++++----- arch/arm64/include/uapi/asm/hwcap.h | 5 +++++ arch/arm64/kernel/cpufeature.c | 28 +++++++++++++++++++++------- arch/arm64/kernel/cpuinfo.c | 1 + fs/binfmt_elf.c | 3 +++ include/uapi/linux/auxvec.h | 1 + 8 files changed, 54 insertions(+), 16 deletions(-) base-commit: f2906aa863381afb0015a9eb7fefad885d4e5a56 -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel