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 1A348C433EF for ; Thu, 7 Jul 2022 10:38: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=0Q99+07HHQb7993dP1r1ivEgTgSefcHiWxxbHGjO0Qc=; b=eqR2fIOmDq29F3 GnCB3bvB/hERas3PxKDqjsVQrIUJURht7QllDDIy6NiYEJYg6tlb6Ql/sp5A5hxkyy5LuHJix83EB q+89pLkHJKPMD0q43JWOxyW25WucydIr+xnjEJtmmtnw9B/jKofgQgHCdUNLLhsZO5m+nOiiqAcFG wb8vo0GK28P5zu8TFGZ4ASWQPnW5N0fYsHDkx4xWq3k1ExYxAQGGnIdhJ0+0raBkqPyQjM84Ew5qI hS0zoO68kEdfgWyxkAxEKRkkbpjuPsgc4raCGSdaDBSpqn4ig/qwAQfGkUSKbt506CyrqApItD8iP EXb6yEd7qDGY0LYfo7pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9Ot9-00FbJB-Dl; Thu, 07 Jul 2022 10:37:39 +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 1o9Ot6-00FbHc-58 for linux-arm-kernel@lists.infradead.org; Thu, 07 Jul 2022 10:37:37 +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 726F9B82125; Thu, 7 Jul 2022 10:37:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B12FEC3411E; Thu, 7 Jul 2022 10:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657190253; bh=my6Z93PEjENmqtbHiIjmNhySUVULL7hQahMgf5NpkHo=; h=From:To:Cc:Subject:Date:From; b=H5l5PuAlf/bXwbiwq7Jvgvg8d4km97zCHqeOg7WSvwTGQvnHfJVpt5pjocBb54PdJ R2dM5tbNmpISUTdfK4RC3tHUeXxN6rxDwpY7BpiKRpabvQ024FsALkSLUqcfrBqctc rpXc/jNxJ+jzqovkEWy0DYlheANy0+nl71erTP1cMNH/hyrFGPwlIelEz675QxEXyc ICkE7XkkKv+izU2tEgOxaw+b4pAdTzdrDGXeGh8bcPwzQdf0XhFSi3eStKubhuaSTf d0IANVpsGwxI4R+6ZcoO8HEDXGLlgiY5l8DLsDG3t7Yv1YQdA4r7O20pbyk9UT661f 3BLxKT1DCQJiw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Suzuki K Poulose , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v5 0/3] arm64: Start allocating upper bits of AT_HWCAP2 Date: Thu, 7 Jul 2022 11:36:29 +0100 Message-Id: <20220707103632.12745-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=1604; h=from:subject; bh=my6Z93PEjENmqtbHiIjmNhySUVULL7hQahMgf5NpkHo=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBixrcrHJ192bOx3Y8B7RDyHLEPDv7uD/kMzZ+6Izwf SvnvCOaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYsa3KwAKCRAk1otyXVSH0IvSB/ 9akNcxgkCYkg73TtaSsvadSErg6Nr7QfnK7W8++6ibIvqdNs/oAmYAfjCvYH5JdKLS5jPcXGJEsA1m bip2P1nc6PKYC54G8ZR9WssQvbwPihOirBYLyeVLYKK4UckIkI34poMwSLGz74KF2HiG+H52n1zozs 21kHT3fxDsSc1Cxfi9dyX6op7mgchxBYHXIxX+oJS6kPor6LxCWzC8aVax9ORyxAvrD2MWqoObFkIX yLYKG5V8zI0eKwmJ6zlQGfC3UmoD93xyCbKtyeRX2kXDMYt55Pgn2HY/THFfrfq+rjgWT9URMvYT60 iFb4DlmpXZVypMORZD0GygPL+jDumS 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-20220707_033736_379708_6DF21B9C X-CRM114-Status: GOOD ( 11.55 ) 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. v5: - Correct bit ranges for glibc reservation. 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