Message ID | 20240130-arm64-sme-resume-v1-0-0e60ebba18df@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-43664-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp908532dyb; Mon, 29 Jan 2024 16:14:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSvWF5VTQSPuy6xx08bhW72EQ+1GdRkFYXUjxykRATSMuLLAjh0BQCOPyFnDNce/61re2p X-Received: by 2002:a05:6808:1314:b0:3be:bd8:31cd with SMTP id y20-20020a056808131400b003be0bd831cdmr9088933oiv.53.1706573686799; Mon, 29 Jan 2024 16:14:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706573686; cv=pass; d=google.com; s=arc-20160816; b=r8g2GH2tlAQ1FEM4V+lLKe0pHEGpSn+ok0ngSobqYJ57HfgDqjwyXqi05uNe0Z11++ oxVLULwoKX3RaSTCA57t0vXSxg+flPgIcCqnQyVbJj9wC5TrkBUBibtJ4XWFko6S4R9j uO4sqBWvzBlunfQdWZ2G0c44RSsAvTzpetljKM255i7e5PrOykXJ3n+P551uvi+ASa64 qugdeA5wgIllLzEe0wfkmjmmBZIhbE6apJm/bzo7AVFZs2ik0KDanmuNuGLEaoMc4dBa QMzb0bKiJAlYMr9brv9GL+h6yOHr/KLHAXBZr6X14tn4LT+qcVCwWoLoEQ9smQn6LGdx ocUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=zDN5BDnOCP/OleWwXLgOcXn1ow8DpRWFAE0nxNvKUU8=; fh=0mGf4Cbu606ATNCCcSl9jdUnQus/lINFItlNRZrR8jk=; b=ywVTUC5StUy0I5DIh4shWhOSApQFc44EGy6o+4qtQiaXAYxPGKTl7ysa7xN9z568tI TnA+klrikkEUQy7NBD4iB2xGXLzzXaSM3AwfdLuI2nqF7jKXSlZQIkDf7SNR5ZjY/Loe qvPlAZKpa5kDuf9nvzhVptbFVMEv+2OAWHOILRe22B0FjkMhRhxYcsE4Vdryazie3iae VBmc7r4v1GkDpuRiugHpgIwvvzeGfT6ssPOJgP84MjytiQAuHQZRKZ8A/TsLz5nt7Phy /VbFdvfLlyR6M1ALReNhdWHZQEy+G6ESoTij8zblMD7oOfk0xr2LvGJerNCecHYSp5MI V2tA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XDG1TiGZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43664-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43664-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y15-20020a62ce0f000000b006dde06c69c2si6552108pfg.189.2024.01.29.16.14.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 16:14:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43664-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XDG1TiGZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43664-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43664-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id ED0B0281183 for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 00:14:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 055C81DDCE; Tue, 30 Jan 2024 00:14:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XDG1TiGZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5533210FD for <linux-kernel@vger.kernel.org>; Tue, 30 Jan 2024 00:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706573669; cv=none; b=MBHcnK4ryEV6gIpWqWpn9diFvPPi5U7xQ2cSwYNs4QLM+QOoCtmxvQ1S/DVcxaSUyVeTvFFk/N+pKzVNQwA+/A7orjig/9uTgxuoLJAakrw6Y6e/EwVq0okZn4ChV5oGK9ZxmW3yCp15GjKdLmxggXbVl/G/UznVfOa3ZKKpz6E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706573669; c=relaxed/simple; bh=1NRtCpz4VPp/Yq/drptQbUJSG0OlGHk6ih4YpuLMwd0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ucUZ+sADR6HoyXdR8EuMdAVdlDovVgqwBLygZ2mPojw4OUwaI/zi+PDomPfpRviV9Vq9A8W+9s8JvXfunXd2GuypjCeulUmXaeZuKnRdgAyjL4Iq4u0hwgl5F2m7DqrED6ojhJ8hTskPibfe/90xVCh/iMBH3r7gMvWMpEu79b4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XDG1TiGZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77ADDC433F1; Tue, 30 Jan 2024 00:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706573668; bh=1NRtCpz4VPp/Yq/drptQbUJSG0OlGHk6ih4YpuLMwd0=; h=From:Subject:Date:To:Cc:From; b=XDG1TiGZnmqZRyhb3cWB5rG3jzsmmcFuKTGt63/+sUcWk78oP/QNRbVsWVp+IjQOj gFpIqiCLP3ocb8ntszPvAQOIFt+kNo530cuWCI6ex1kUUcmCcRoeMfIYs2VMHHSm4T t2WSCPLPM8oSD+vvafAuCk4agdr//p1TMi8nxR1MRRCn9hHtHM/FL7C4WaV4Nolb/m mWvpkmR/zBIxvuI9UHufQpl1mEaOTcpuvFdDV6MGWVYolv7zP4WQkB0JWZFYbArDK9 FcFpuU979ZLqr+d0VaipwRZby2DSgr5IMOchHhAZD2tYZ0VXoix6JNWiqYx/SIx7D1 4EtHQ8af5usvg== From: Mark Brown <broonie@kernel.org> Subject: [PATCH 0/2] arm64/sme: Fix handling of traps on resume Date: Tue, 30 Jan 2024 00:02:47 +0000 Message-Id: <20240130-arm64-sme-resume-v1-0-0e60ebba18df@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKc8uGUC/x2MMQqAMAwAvyKZLbRRC/Ur4lA1aoaqJCiC+HeL0 3HD3QNKwqTQFg8IXay8b1lcWcC4xm0hw1N2QIu1dRhMlORro4mMkJ4ZFXrvGosBBw85O4Rmvv9 l17/vB+H+GhhiAAAA 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=728; i=broonie@kernel.org; h=from:subject:message-id; bh=1NRtCpz4VPp/Yq/drptQbUJSG0OlGHk6ih4YpuLMwd0=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBluD9gOXKfNU7diV0+qg2AWrCO5D3yOccSHLyLgY29 UKDCaD+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZbg/YAAKCRAk1otyXVSH0NWoB/ 0cENzSwzeB6KXF8FRfTtKsaIGfrtYF+2QzNvfF8lfAlrXEbQZ7t98iXQufi6L2v6Sj4rIY4S2+mlbL e0JOuyAKEAh72fjtSXhe9Asp7vRhCeB3ewhqAwlFIIV7cWTeG7q+iGJQ8N0FUVRV5y+JYAwMKh2GAK TmIb6xrbP9jFsA1SGn6+bd6JQTvEGdG0ulnl4XXk+B0VCzxuCLW9oXaaIpenxj/OKhwfaz1IBCmfK4 ylPL18vJim5MjA8NhoqAmcHtGBaKsh64PdAweC3NPxwyeLjXcC7q4Qzm/b62qG/d5bVHqj5xx3yuxU U/IVpx/m3+Mz13pMHOQi1SvoLQR1Nc X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789472209818664381 X-GMAIL-MSGID: 1789472209818664381 |
Series |
arm64/sme: Fix handling of traps on resume
|
|
Message
Mark Brown
Jan. 30, 2024, 12:02 a.m. UTC
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>
---
Mark Brown (2):
arm64/sme: Restore SMCR 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 | 15 +++++++++++++++
arch/arm64/kernel/suspend.c | 3 +++
3 files changed, 20 insertions(+)
---
base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3
change-id: 20240129-arm64-sme-resume-3266150292b6
Best regards,