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 B055EC00140 for ; Thu, 18 Aug 2022 17:05:29 +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=6JQ8vTHbvi5NUbHhfWu+Wvw0tp6Kl+7sYp6xnrSRq/Y=; b=TYnkBMNGaLy38v S430W3DBcs+A7aNQhfLLVjKDbNLyA5rpWMgcfLhN1h72yWiq0aSe9MYw/ONQxbvlo46UnwCLuJ/iz lauzo8l2uij4AGXKQA6APJBPpb4OErzSoHq2NFs6PYHf6/3iyt4IFknI+fBBhAKaRnYV9cBrhT7Lc d4TGGlxDqRSnKRCpldbO2elYHyJD1aQ2hYU97lCihBzidrmxBTysVD8DTzLsasnlNlMSOx5rbejYN UbO7vhuZ/0j9VYkt2Lchv4CI/oS3KuUh6VvdV5EJqcYRTga5kOCA2bZMTHAO9AdN5exJ6wyJbCqUD fxma6EDZIbr7AbLVIqoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOiwI-007OmA-1H; Thu, 18 Aug 2022 17:04:14 +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 1oOiu3-007N5J-J9 for linux-arm-kernel@lists.infradead.org; Thu, 18 Aug 2022 17:01:58 +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 33C44616D7; Thu, 18 Aug 2022 17:01:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98354C433D6; Thu, 18 Aug 2022 17:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660842112; bh=LbiGsvCrcjxKaot3ZWZbctBJ4WOVBeDJbpRTvOjY/3s=; h=From:To:Cc:Subject:Date:From; b=BoSpNlOSsO/BTkwPd1ZHlzg8od0G3UegVHhFtA5G+WP1/IM630Fat7dse5bwmG15b ZIpaCdWHvJG4KM6f2uEkFKlaysH3s6WfD6rcjRyIjdhA9yiqtzxdKWoPCNDcCk+JwH 5v1eirCKu6ZnuHBe76ppYR02yVK7wU0bAFDcOASJJ66HJHu9ld7okuRvZAWDI6RgPH NrGzPa92L1GM9iUI7meFf5WNURSIvnzhtlrZalRxsodm8gVEfZg4DwT65nrJBzVn+o WJLJ9r6QtYEWL5f+jrqSo4u5/HPyKQkD1v2aOZxuAagpeJRr3sF2DhWCLivPn/vXFV e/KtxNamm4daw== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 0/4] arm64/sme: ptrace support for TPIDR2_EL0 Date: Thu, 18 Aug 2022 18:01:07 +0100 Message-Id: <20220818170111.351889-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; i=broonie@kernel.org; h=from:subject; bh=LbiGsvCrcjxKaot3ZWZbctBJ4WOVBeDJbpRTvOjY/3s=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBi/nBSSY+IZEhiVzX1rpQh7oRfCQMkCNM52E+Ho936 /z8OXgGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYv5wUgAKCRAk1otyXVSH0IZBB/ 9Q4fUGGxtlxOHHoCiyujsB7a4I4XH1dgGY0VGE/xRLJ/ZQCbr4e4UKiWu+YDBhInht5xtyrps0W/zQ xMozWgKy5ZyPYsTI70cC0dBhVgVu1MV6ZK9q4uH84mrgGWsVak/zdFcpohvaHkluxnowK/122+6vjb qjya0UPk57Eah7rl0XujcqazKaE6Y1SXVdKQIfSBxfLaloKhaimtcDjL6rIM6BO3/8+UiW2p3d/0Z7 lqOQCtVgS5xZmyKAwkTmI3cSRYD+Go3Fb4pExVuIQqsuThkviv3/5EObwFww7SiX5+3WpMHb4KCmpH FmoZ0EiVsyTr/iuEVeOllJgIWT62/2 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-20220818_100156_611069_DD65FF43 X-CRM114-Status: GOOD ( 12.49 ) 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 When SME was initially merged we did not add support for TPIDR2_EL0 to the ptrace interface, creating difficulties for debuggers in accessing lazy save state for ZA. This series implements that support, extending the existing NT_ARM_TLS regset to support the register when available, and adds kselftest coverage for the existing and new NT_ARM_TLS functionality. Existing programs that query the size of the register set will be able to observe the increased size of the register set. Programs that assume the register set is single register will see no change. On systems that do not support SME TPIDR2_EL0 will read as 0 and writes will be ignored, support for SME should be queried via hwcaps as normal. v3: - Fix copyright date on test program. v2: - Rebase onto v6.0-rc1. Mark Brown (4): kselftest/arm64: Add test coverage for NT_ARM_TLS arm64/ptrace: Document extension of NT_ARM_TLS to cover TPIDR2_EL0 arm64/ptrace: Support access to TPIDR2_EL0 kselftest/arm64: Add coverage of TPIDR2_EL0 ptrace interface Documentation/arm64/sme.rst | 3 + arch/arm64/kernel/ptrace.c | 25 +- tools/testing/selftests/arm64/abi/.gitignore | 1 + tools/testing/selftests/arm64/abi/Makefile | 2 +- tools/testing/selftests/arm64/abi/ptrace.c | 241 +++++++++++++++++++ 5 files changed, 266 insertions(+), 6 deletions(-) create mode 100644 tools/testing/selftests/arm64/abi/ptrace.c base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel