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 5ACE0ECAAA1 for ; Fri, 28 Oct 2022 18:52:49 +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=kyzj3Vn3u3QOyJsVTQePa8fStAdMu7sPnl1Ms4xEcgQ=; b=A8xJP0bRcnAioE wHHlve7LVwzLx0fnerpyliYFFtAfZhzs3xPv6BaDAK8DCLydS3pAfRgtDwSszJWigzPaexS9b0zmo bb2/UVVFsYAiTgCewYdnBiXpSIRucFj3TJ5bSDWUQPWxk/7JBjkP68ulG7Xe+j4/BfTgB3hNWTpje 0jVQXdUAM6H/G2Sq6E2TtObrL3bfUDMJkVH/Adl69KEthd7JH0zFVQ1+yqG75zw4ZmzkIVkZrM87M YmWMXRKxvz3grYJeDpLmXcF7mycIms1PqJGDfoYMiCLlVPoXVfnJPDjJg5VFw9OAxGUmYq/qTYTzY cKyPwZLYXZ/UkdRCqnHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooUSJ-001jFY-LU; Fri, 28 Oct 2022 18:51:47 +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 1ooUSG-001jDu-Qm for linux-arm-kernel@lists.infradead.org; Fri, 28 Oct 2022 18:51:46 +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 A4227B82C74; Fri, 28 Oct 2022 18:51:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7399C433C1; Fri, 28 Oct 2022 18:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666983101; bh=wkMDGWWN56ke3KUfTFDIC7z5j0hpr6fNkUwAHHtA+uA=; h=From:To:Cc:Subject:Date:From; b=rz1xvnMgxq+Anp+PRw21JNOhvgUvgQIQ7Fw3f4PknxxdD1we9gPRFq8SblCOkgAtB ZUBbLAOwrTTFTs3dyniXXQGMnL7s7ZfwoV95bJO47FZCgFbOvlpIDeLi/KDpzIcGO3 KkjRkdLKsG0BNniNC46zZVaUaYW7lhyQnVynoXSNGFXilk2flwrEgfpyghF4jHYftr cehgjaPYZIuPGFmszquYKzS1YZhM1asSVMhHfoFhfQm1mC37lOo2IvRDPqCXyXMOg9 uDsVbH0RddcPiz8pBbLBZ6IURxs14QdTgnbiQRKD3aZKnlh0GmJFmo4Fl3vKSYGocQ db0cXWaKxBdsg== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 0/4] arm64/signal: Support TPIDR2 Date: Fri, 28 Oct 2022 19:50:42 +0100 Message-Id: <20221028185046.1316730-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=1534; i=broonie@kernel.org; h=from:subject; bh=wkMDGWWN56ke3KUfTFDIC7z5j0hpr6fNkUwAHHtA+uA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjXCSCVrNKFuKRDBDopbbK7HYT+97WbeGlmxkJsYkk /cDeSwmJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCY1wkggAKCRAk1otyXVSH0AsAB/ 917widGSPKE/8L+7RBlKg1ZjO+Zv+qQjwDAHhRsEC3uFgUakMTTyVAfiJKmYcWOLxUUe7f6ODmp/ZT d2dGy0/HIkpO/YMd9jmldTFA8uwiTlateTu5QRuNUm4bkQ3Eme8oABtWtSZfgbg4pPsSRcz8qTXtmz Pyj68OJMc7leJMuboHzRpxMzuZbb8y2PJGJSgXvd7Lfgnm4lTs2OC5G8kR6ObygQ240HTClFXnJgXR SryfPh3nj1UVgcRctHuYb9dlgM5Jx4bSBzF7qx3QWSnb3spQQCAg7x6UWGgbaXqIPhsEGRrWtqIkxD NG8MGtATUGyHpo3lrALHj0CBiwpTWM 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-20221028_115145_029018_47B38B22 X-CRM114-Status: GOOD ( 12.29 ) 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 support was merged support for TPIDR2 in signal frames was omitted, meaning that it was not possible for signal handers to inspect or modify it. This will present an issue for programs using signals to implement lightweight threads so let's provide access to TPIDR2 in signal handlers. Implement a new record type for TPIDR2 using the same format as we use for ESR and add coverage to make sure that this appears in the signal context as expected. Due to TPIDR2 being reserved for libc we only validate that the value is unchanged, meaning we're likely to just be validating the default value of 0 on current systems. I have tested with a modified version that sets an explicit value. Mark Brown (4): arm64/sme: Document ABI for TPIDR2 signal information arm64/signal: Include TPIDR2 in the signal context kselftest/arm64: Add TPIDR2 to the set of known signal context records kselftest/arm64: Add test case for TPIDR2 signal frame records Documentation/arm64/sme.rst | 3 + arch/arm64/include/uapi/asm/sigcontext.h | 8 ++ arch/arm64/kernel/signal.c | 59 ++++++++++++ .../testing/selftests/arm64/signal/.gitignore | 1 + .../arm64/signal/testcases/testcases.c | 4 + .../arm64/signal/testcases/tpidr2_siginfo.c | 90 +++++++++++++++++++ 6 files changed, 165 insertions(+) create mode 100644 tools/testing/selftests/arm64/signal/testcases/tpidr2_siginfo.c base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780 -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel