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 493A3EB64D8 for ; Thu, 22 Jun 2023 13:40:24 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=7+G35HjIIQPJWCMfjSqSRIV/X6qkj5OibK8cY/W9ZGA=; b=1hhMxCgV8Zl9jz 0KOoUCuYs3uzOUbpWtsC12yi6WzLCgTQEVAVdjchrVPbYG8vb6rmAZLiD3S0DAI5+XFb9/vVxpjwG 1RRe+CZtn/NYIhJCc3+3grOhocXZIVHerTEc+aOwwq86XCZnS+e0FDkwbl22egyw2Lw9CXv96L9ag Cw/fbR7PTp0MURZlC3gc8TwpjZsGG1Vv+C0U4OT3s+hJkwc5bDCnAVIRbxZ445Z8HpMq2NL3ng2ar Qff9HKKJZwHsc5+20ltb5ZRaClAPRhOkZU4Y2KMWc9330dJBPmGhs3Dyx2LC6+7IcGcXvtRTRcQp8 gxzqMhnuidfQBus3fjaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qCKXX-000oWH-09; Thu, 22 Jun 2023 13:39:59 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qCKXU-000oVV-1q for linux-arm-kernel@lists.infradead.org; Thu, 22 Jun 2023 13:39:58 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CF34161827; Thu, 22 Jun 2023 13:39:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B29DC433C8; Thu, 22 Jun 2023 13:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687441195; bh=NTMTlo3MOrDhWRxtZY/AwiKASNnml0gvHavM/MI6Gtg=; h=From:Subject:Date:To:Cc:From; b=gTfu5hHDs0sX1LrUVWOKsOgISBUMtYVXFEjMfcW5kBJ9nyzDasJzUmuwFqp/h21pt 59qnnXd2+SvThrHXgM6laCc4DsaTcu2StNtxvJ8hnw30XL0AmGiGjGj9Y1tNNrSpyL EBi806O81MIfUrJHlqubWB74v740ANkfo9vK25vB3cg1ncVeo5dc2SIrfkAlyaQKgh ftgawF3fhQdodE9pTdlHRu+3k3ugtFuMkH8TTj1trtZpJ+DVuMZKRSfTpQGJ9r5JC7 FnOD3o6i8TYv9HJUf/FF5P5iMcyZ3rhOgO2RuSyvxzqruoVkKN1cqfMPYVJlJ4+bcb SFHQzqTD+NdlQ== From: Mark Brown Subject: [PATCH v2 0/2] arm64/signal: Fix handling of TPIDR2 Date: Thu, 22 Jun 2023 14:39:44 +0100 Message-Id: <20230621-arm64-fix-tpidr2-signal-restore-v2-0-c8e8fcc10302@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACBPlGQC/42OQQ6CMBBFr0K6dgwUBOrKexgWhQ4wAVsyJagh3 N2WE7h8P/nv/114ZEIv7skuGDfy5GwAeUlEN2o7IJAJLGQq87SUGWh+lQX09IF1IcMSPA1Wz8D oV8cIVZYblVeq7pUSwdJqj9Cytt0YPW/HU4wXxuA4h59N4JFi/Xv+2LKY/j+5ZZBCWxqFt7owE vExIVucr44H0RzH8QPqp5xu5gAAAA== To: Catalin Marinas , Will Deacon , Shuah Khan , Szabolcs Nagy Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown , stable@vger.kernel.org X-Mailer: b4 0.13-dev-c6835 X-Developer-Signature: v=1; a=openpgp-sha256; l=1147; i=broonie@kernel.org; h=from:subject:message-id; bh=NTMTlo3MOrDhWRxtZY/AwiKASNnml0gvHavM/MI6Gtg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBklE8m9zIAmV2ipSkkPjReuNZtoff7N3ru3B4J+xCK RyvYQFKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZJRPJgAKCRAk1otyXVSH0AgVB/ 0Zn7LV/jry2iAEbh4LRlzN/OfSNA+OsY6A+YgSWvrYlA6Pw/Fw/cphg0nwoLfNPzFTSG0BQErObxlH vCOlsgQ3UGQdV2rSjOR/Yj3KPykzcWixRhaMqJXFLTPnYpmFNq3IyG99BTWT5xeL61pBuKwNBXVekB Xq1KuXcCCqX3wus71SITXH9Hb2iX/jG5pOedoDWl5ncr9BXpKhrPdqfSSmDaCls11YlDBtbjPeQXV4 t+ifE2G6M1zHsyajvSmCuJbhKnlB0wWrW+4U95Afb86uvpIsUnAsgGGAbVhNHBf3Ch8BQAS4hQegGR bb1b7PbLHQild8iBCHeZ1ZqLIQ6rQs 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-20230622_063956_783757_493FA6AE X-CRM114-Status: GOOD ( 11.05 ) 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 The restoring of TPIDR2 signal context has been broken since it was merged, fix this and add a test case covering it. This is a result of TPIDR2 context management following a different flow to any of the other state that we provide and the fact that we don't expose TPIDR (which follows the same pattern) to signals. Signed-off-by: Mark Brown --- Changes in v2: - Added a feature check for SME to the new test. - Link to v1: https://lore.kernel.org/r/20230621-arm64-fix-tpidr2-signal-restore-v1-0-b6d9e584d2ee@kernel.org --- Mark Brown (2): arm64/signal: Restore TPIDR2 register rather than memory state kselftest/arm64: Add a test case for TPIDR2 restore arch/arm64/kernel/signal.c | 2 +- tools/testing/selftests/arm64/signal/.gitignore | 2 +- .../arm64/signal/testcases/tpidr2_restore.c | 86 ++++++++++++++++++++++ 3 files changed, 88 insertions(+), 2 deletions(-) --- base-commit: 858fd168a95c5b9669aac8db6c14a9aeab446375 change-id: 20230621-arm64-fix-tpidr2-signal-restore-713d93798f99 Best regards, -- Mark Brown _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel