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 103C3C433EF for ; Wed, 29 Jun 2022 12:23:52 +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=kC/eY/I53jmP0h3eFmXfxwwcKuZ6B9MLMbL4jc077D0=; b=jv0enp4lUHTzs4 +oqr5Ye7JiYBC1M3+KBKIKhm3yy3cUo2lPwetR3hfCci4TVSm6xpo4PWRfCGYlCZY5ePjaMd6iopz 2gh/rb3q/i8ycxul9YOxzleWoC5f2hQeNC8U6mEVTLA7B7h0gaAz0d9ln/Ns/3nvoOTk2bC7vS73G ST0vp/ki4CeqAEpG7yINQywDNmd6/g60W/SwnXEyD0AlrTFw3lKkEnnPjM6KMTyyNVvJdF9tWcOJ+ 8lE/f/xs7Xs/3OMhrf1J/xQ6nlS96mWWJbUHviX/9wsY9RekWDMYcMvGJu6yvy9XldXfLr8hZDo9z kWrXdmXsR1kqUgYyS5mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6WiR-00Bm9P-Tb; Wed, 29 Jun 2022 12:22:44 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Whj-00Bltw-CS for linux-arm-kernel@lists.infradead.org; Wed, 29 Jun 2022 12:22:04 +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 ams.source.kernel.org (Postfix) with ESMTPS id AADE9B823C1; Wed, 29 Jun 2022 12:21:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92758C34114; Wed, 29 Jun 2022 12:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656505316; bh=50RkWIcYIqb/XjFxM+YfOdksGNgRvnXihS6IxtSHpgM=; h=From:To:Cc:Subject:Date:From; b=m2b/DqWWnaoEuCAXmzbL5xIL4CqZoxgLilNezH0Ds63Y+38lG3IQb1z7pZpjDvXLz Otocp3PzjqNLs9isBAp/sLoywQGG4XsoY49KJJQ2Pvgcemt4S4Zno88yLl0sa3vQqR 0CytqfWj5CvWQySvYlGWCTs8VcbBvEXPdE3kh1U+zyRv6UZZIta3D9SCG5BIv84FrE oaWQT/oRr8uElQpraRcHFhcRRW4+etwZerLDiNLgDi6nUqD8Ik6QZ+lHCEdpmGLOHY qHjhZsso1exgtpzZOkvP9Pyzzz4lsY2JrA3fSrnef2TVABgNiH2cS/RP6sNP7oBsUz az5fyg3Wtha2A== 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 v3 0/4] arm64: Add AT_HWCAP3 Date: Wed, 29 Jun 2022 13:20:43 +0100 Message-Id: <20220629122047.799324-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=1536; h=from:subject; bh=50RkWIcYIqb/XjFxM+YfOdksGNgRvnXihS6IxtSHpgM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBivEOaCfH+geh1mfozulbC422f3SGcIXfn09Tbq9DX uaFjR8eJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYrxDmgAKCRAk1otyXVSH0D0zB/ wKsfxlTJ10OrrVsO6R8/rv/eTf8Nr8yog75C3O3GkBPpXGF0pB48xTkgj7bryL/LvmrFnCV5TdB+sn SxPnRzSRdIksrvMV/u5lkOxHdj/0SX2EQxsUbvEaGiCCq4U5SF1LaaM0Nem7QVtEZpjrTWGEiAdwz1 iF4iks26yC/VXyl/tQbjbB+cjHwoUA2e5DwbaTI4/LHjdjr7E4RMyY0IRdxVCWXX3KKwcNGkUlR0mN uLpff4UtSkZwwVZrnfFXzl2gI2zfTlDVKlZMqh4ocFQepvJPmlC1cSHdBvJG2He5WP89mvw0kjXoki 0/Ke1v6nRNf2/nJf0K53z3gdx+XUvL 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-20220629_052159_626919_4CA5B2A7 X-CRM114-Status: GOOD ( 12.90 ) 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. v3: - Expand comment on CPU_FEATURES_PER_HWCAP. v2: - Rebase onto v5.19-rc3. 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 | 9 ++++++++- 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, 58 insertions(+), 16 deletions(-) base-commit: a111daf0c53ae91e71fd2bfe7497862d14132e3e -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel