Message ID | 20240213-arm64-sme-resume-v3-0-17e05e493471@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 8790AC48260 for <linux-arm-kernel@archiver.kernel.org>; Tue, 13 Feb 2024 23:07:41 +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=p3DQ7hlAbV8KaDdV/f3frbtfRDxOojYeinACZgSF7XM=; b=SUmW1AxcOHZzud kw5R/gw+lkDHMq2xbOVBPfK5HKIgKdNXv12nycrZJ5/3XG9W+EnMu/5QngLhB7UBODbRN0dVnFBSD q7YhoDjlTOS2rpfVckxPtWt4ReBMHAkUNt9Xsb6Xunf0uxfbjHbE/niBR67b/hG67JfDmmX7ezJGE RtClggg7jbGh/l7Y4WRRXcVlo3WGiQFuN3p3xi3FfrBimR89BJoznM8HsjiZIp/YLxa5o3EH98zCZ w5+ZMI0unQJflLT5uS+Xb9wtQwtPCjWwi4jwnmCQV0dubPNjlxIZt6MP3UXfRRUEic00pXiH/M4N1 ijHWrt11Pf45AX2d9ThQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra1sB-0000000BBPn-0OPE; Tue, 13 Feb 2024 23:07:31 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra1s1-0000000BBLL-3wvC for linux-arm-kernel@lists.infradead.org; Tue, 13 Feb 2024 23:07:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E28E5CE1F39; Tue, 13 Feb 2024 23:07:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B45A0C433F1; Tue, 13 Feb 2024 23:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707865634; bh=f2Cdl3IDDtVePEix7n4iaiKSi9bMZGjncwLg38ulR7U=; h=From:Subject:Date:To:Cc:From; b=qOekE/Wg1oH05btXKZszw40TIAQU+iF2PFDcEq+hVEad1Nfkdq6i02JSUtVf256+H WKLoMOYOyUw74OSOnO6cPdFgaZtsqcSIEePdtyyBM0j0LrtMwqKoM4PfyAf+LfLAG1 7noTdNKjw7A6u/Mk/PRQKMiRfIVkhgTN6hiM1JZ6svoU6F+chPatQbF2GaQlAlH/Y9 P+KyWgm7KLQ8ZxVdkNkWiWequ2J0xmGIeiCzs1qqLo/Mex18HnwANbUTj/Lp0QGyVT Mswr6YIkirZgjgfbG5AElRUIBByqqSn7sqE/vlUV5DM8WVFEBn6FBuEPuvCpOW51ID zDgFM6eDAKulg== From: Mark Brown <broonie@kernel.org> Subject: [PATCH v3 0/2] arm64/sme: Fix handling of traps on resume Date: Tue, 13 Feb 2024 23:06:31 +0000 Message-Id: <20240213-arm64-sme-resume-v3-0-17e05e493471@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPj1y2UC/23NwQrCMAyA4VcZPVtp0644T76HeGjXbCu6TVIty ti72w1BRE/hD+TLxCJSwMj2xcQIU4hhHHKoTcHqzg4t8uBzMxCghYSKW+qN5rFHThjveSgwRpY CKnCG5bMrYRMeK3k85e5CvI30XD8kuWzfmBK/WJJccIFGoHNW7nxzOCMNeNmO1LJFS/ARQKg/A mTBysZZ72utofwS5nl+Af/ek9jzAAAA To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> Cc: Dave Martin <Dave.Martin@arm.com>, Jackson Cooper-Driver <Jackson.Cooper-Driver@arm.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org> X-Mailer: b4 0.13-dev-a684c X-Developer-Signature: v=1; a=openpgp-sha256; l=1028; i=broonie@kernel.org; h=from:subject:message-id; bh=f2Cdl3IDDtVePEix7n4iaiKSi9bMZGjncwLg38ulR7U=; b=owGbwMvMwMWocq27KDak/QLjabUkhtTT3+RCY892RR1RDYhT7W0o+B9V0yW9ViFhrZKzwr3K0r1f v57tZDRmYWDkYpAVU2RZ+yxjVXq4xNb5j+a/ghnEygQyhYGLUwAmMruR/a+sWoy8GPdVrq3axQx6MZ N/HFTmvrmtYqfFfqv7pYV2zmm5gckrtjG1Srxec+52/5Ylp+qqbi99csrZLWaBVdLkxn72o/s3BEau Xvqz+/9EieMhn5/Yr/18ZocUS/S5I70LhJ+857QS9gmvNrHJE3BK9mueH6QaXKA99xB/f0OqQITJTr lNsbN7bYptlPplCxeKeN56U5Soqbg9nn2uwqnYKrf/91ZX3NDNdPDlClZnM5zrbZ+xdoGfQK3RDkWR zROEE9RkiwQWWMRuYBF53VPrm6tTblbY0eXy/9iFRetEr996LtjnduaYYJKelP0/+1d/S6o2potZNO 5e6/k1UfHRvvA9ywx+/Tj7bcYbAA== 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-20240213_150722_200552_7B902092 X-CRM114-Status: UNSURE ( 7.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
arm64/sme: Fix handling of traps on resume
|
expand
|
On Tue, 13 Feb 2024 23:06:31 +0000, Mark Brown wrote: > The fast model was recently changed to reset system registers to 0 on > resume, exposing the fact that for SME we do not restore the > configuration of traps for extensions that add state. Fix this. > > Applied to arm64 (for-next/fixes), thanks! [1/2] arm64/sme: Restore SME registers on exit from suspend https://git.kernel.org/arm64/c/9533864816fb [2/2] arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspend https://git.kernel.org/arm64/c/d7b77a0d565b Cheers,
The fast model was recently changed to reset system registers to 0 on resume, exposing the fact that for SME we do not restore the configuration of traps for extensions that add state. Fix this. Signed-off-by: Mark Brown <broonie@kernel.org> --- Changes in v3: - Tweak commit message. - Link to v2: https://lore.kernel.org/r/20240203-arm64-sme-resume-v2-0-a1fbaddc4425@kernel.org Changes in v2: - Also reinitialise SMPRI_EL1. - Link to v1: https://lore.kernel.org/r/20240130-arm64-sme-resume-v1-0-0e60ebba18df@kernel.org --- Mark Brown (2): arm64/sme: Restore SME registers on exit from suspend arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspend arch/arm64/include/asm/fpsimd.h | 2 ++ arch/arm64/kernel/fpsimd.c | 16 ++++++++++++++++ arch/arm64/kernel/suspend.c | 3 +++ 3 files changed, 21 insertions(+) --- base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3 change-id: 20240129-arm64-sme-resume-3266150292b6 Best regards,