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 60918C43334 for ; Wed, 6 Jul 2022 17:55: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: 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=93bqBe3R+NdASq+rh/QAHNaa3EX36an5grne22M9lXE=; b=vf8+3yTDRE6ctt V+NPsu/JMEAa4vIhA8PU21uq3Ehz4o+1cvk/XXnWQ1StRMza5hBRa4qfhMbhmQkf0sRGpPZoRlwUY oykCQ53IcuiC/psiDncK9wYWNrzR/AE5g42fzGg/AAiqde/aZ/qg9LTBexeVDUrpHAfttwJPLPh2b 0vUZDaVu13/uNKTGIvZOoUHfkMnp88GfmtUTCl1PC6VpFPfd/uQOfuHFGDeCzXb/WzFXEmN9KtjuX K9F5ZSrnpCeLtqOTxcPwtJ4oOHcKCMBY394/cuFnciPbZRzjdl9UI+IWhTdZBuZN1i0WV5UlU6e8c vu51zzXsTW0iy9VMZ7mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o99EU-00Bqlk-JT; Wed, 06 Jul 2022 17:54:38 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o99Ds-00BqYu-Um for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2022 17:54:02 +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 904D5B81E68; Wed, 6 Jul 2022 17:53:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0F80C3411C; Wed, 6 Jul 2022 17:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657130036; bh=Clv1IUd99iZjr6+7kZ5um2xTSewk/zaXZZumA5UAMCQ=; h=From:To:Cc:Subject:Date:From; b=gBMMW2uzWPB+V5QBAazasWXFCaxfVarIFiAEelgqHO5kLBgrjk75r+X9U4rUn4ZTG cR/AsS23J83bFpEAybSlBYw/UoFHhGzjwztu6PgpfCRw5e6Rwm5uC8P8eQYcdcUAsy xE16ZyLnhMnht3NEyXSgmOlOcxZHLDUdX6Gd3Rk8MKaIa4GoO5nDZuA5PG2p32aWaM hU9gbccv27XAiwDgHX8LXuPoEU5jKvRi3aweC0pk4J4LBoj+gqZb0sTwTHe4IQhSix z7bmsoTHe0b3UyrwcqkB/A/ESTI3CdbJnsI+1W5VN3V+kYtoNsxC0bvRby7A5KhCKl lzXek4ekF3XAg== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Suzuki K Poulose , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v4 0/3] arm64: Start allocating upper bits of AT_HWCAP2 Date: Wed, 6 Jul 2022 18:52:53 +0100 Message-Id: <20220706175256.847703-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=1553; h=from:subject; bh=Clv1IUd99iZjr6+7kZ5um2xTSewk/zaXZZumA5UAMCQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBixcv0loTi9KMQsFlLC70sy7LNkjQ5Uq1L0mnj9hJm AXrFxQKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYsXL9AAKCRAk1otyXVSH0KuUB/ oD4JJPn8xEFyye4M4QWPGGnysdPAspzpOWGPj/pF25GU8TRem7pfqc0ZeOndOAEhDLk3SSL3Zkpz9N 9c+yzUEBi5wVPbEjLJ56mewyFaEzr3tzmsZV+KQcE9Nan/5Q6AoXIME9JnbZfvFbhhru3aL/CIZeyU wvJHZ8AkK0L35OM7ADwgBCZAmtkfBMUJQsP5X9qDHdLkZCUa/g9bRjAeS0mx+2up18zuGxj3DDYzbL /PhEPVa50sYV61FiRzF/mijPD2SOTgPrkmKzFnvL31nOF8pklftqM7ySjEE/Jf0ILniXtTiT1d8oeN cZTuHxKNnCrAxpGBY21ksuYMVLO+P0 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-20220706_105401_193201_DE4F1A74 X-CRM114-Status: GOOD ( 11.14 ) 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 suggest that the favoured approach for now is to start allocating the upper bits of AT_HWCAP2. The final patch starts allocating from the upper bits of AT_HWCAP2, 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. v4: - Document status of upper bits in AT_HWCAP. - Instead of creating AT_HWCAP3 just convert elf_hwcap to a bitmask and start allocating the upper bits of AT_HWCAP2. v3: - Expand comment on CPU_FEATURES_PER_HWCAP. v2: - Rebase onto v5.19-rc3. Mark Brown (3): arm64/hwcap: Document allocation of upper bits of AT_HWCAP arm64/cpufeature: Store elf_hwcaps as a bitmap rather than unsigned long arm64/hwcap: Support FEAT_EBF16 Documentation/arm64/elf_hwcaps.rst | 4 ++++ arch/arm64/include/asm/cpufeature.h | 2 +- arch/arm64/include/asm/hwcap.h | 3 ++- arch/arm64/include/uapi/asm/hwcap.h | 4 ++++ arch/arm64/kernel/cpufeature.c | 13 ++++++------- arch/arm64/kernel/cpuinfo.c | 1 + 6 files changed, 18 insertions(+), 9 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