Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1074644rdb; Fri, 9 Feb 2024 09:27:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IG28HUorta9BZKl8uo1pyPv23DbHj1Gn85TqskQ1l8EYxyCUN3ibesjgOLU3Al+3u0BR2X3 X-Received: by 2002:a17:902:e883:b0:1d0:b1f0:1005 with SMTP id w3-20020a170902e88300b001d0b1f01005mr2499804plg.63.1707499667401; Fri, 09 Feb 2024 09:27:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707499667; cv=pass; d=google.com; s=arc-20160816; b=v86HloscUwnBkURk+d1iLlxC79CfEJEy31MrcewML62vHAuedapI+GDUh9PZoTM38W AtHPca0P/aAw3QRTcCKR+of6IQ9IwOYc9pvb/uFJ0kAfTwmsTAQ21Mz5E3Ix9N1xbhK9 mplCg++GCDqFSuO6MuKH+A22beh5ZGqjhkRtIt5iCDXNbmAkm9+IZ7exYHxUeTFjJQW+ NiwII+2Ec47xxNV8nuT1ZsANHJeWH0g2IFlToLgyjIfHcw0/ppf8BlaJ/Bpp/JIlWUK6 7bC+YBkiAIeRalGg1AY3Cqfdgk+uNxLSUvHHPZ2deVHG6OhJuY6xfSXRAR9FpK/NS2rQ wRXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rjDRsF92jHkhCnkbaUrildcIJFAd2SprL1gSRWZpPko=; fh=/wuFcr5AVIuo3/1SVn8yo7We8hy130R1yRFHH39Bnow=; b=wsxxxS+sikoyImhzSxrZsY5JHcF64QhpQvJqRUKqpmmMLbQfc2JK73LizMrqh2d3os smhqXFfaiFuY/l3aXXg8teq3tELQL7haMv37lwldJ8wk4gjKqzJzJBZqnF1cKv8wwc/i LtG+9NUAe5Il3xDmgOpVDo2NrsbGvAJbqwWQB0xpkpCd7wEUAWzvgD1aIsCg7HNXe+y+ /LYvnWIdb51MTbDLbVxXt/bwv72kJxkfytdDeYLbnzNKFlrHVLm39WRBWzCcQokSy7te R/o7FGhcavRlLlJq2BHARIdy8Dom1ED7nuLB72sAg0aVsl34OcVeNmioiAXSFOTPHOBY s/rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lzZBu2fD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWAuq3TWSBUV74YV8wTHaBeWSveaCWDJo1NUDluLvq9Jra7mXjPJdyAXxD8E3JluqtdRGXJzcUJ8bL1KjjPpGqa/M/euoXC+htHLZrHHQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b2-20020a170903228200b001d9f88225e9si1977816plh.151.2024.02.09.09.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 09:27:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lzZBu2fD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59729-linux.lists.archive=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 90FF528865F for ; Fri, 9 Feb 2024 17:26:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80B127BB1E; Fri, 9 Feb 2024 17:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lzZBu2fD" 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 A9CB57AE7C for ; Fri, 9 Feb 2024 17:26:01 +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=1707499561; cv=none; b=swchSaWXpRrqnOMOLEoYNNoO0C1URKPODf2R67n7l1LMq9vDkaSTZ78o1b07CUHDGo6wRee9Gs6eqxb+MBCpqD+ojQNthMXP4lFyDVcYq5MOiyrqqwqSvTTyy8ru7CnYuJaMJRAgf9xP3VLSOdVFJyj9cEuabEnPe/xGLL8sFVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707499561; c=relaxed/simple; bh=SX7R0k7n31rJzoAWZU1A+fnnfBJtFHW537yR+c++CoE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L2/MoUIC9WebnKetpoYlY/t5PXdQ5IwP1BwQLUjHyBruAb9HM6kmN9ppFvt/b7QstCVEOqf0H/BOyZ/pdiCgtY7q0iAJkYxUGIo8LGcmujrL8g0RJw6nTdgAbeaH5VlpoXmga+Tq7nVXHK3r5vJj0hg26FAyvRp2urWjTk8OacI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lzZBu2fD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9569AC433C7; Fri, 9 Feb 2024 17:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707499561; bh=SX7R0k7n31rJzoAWZU1A+fnnfBJtFHW537yR+c++CoE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lzZBu2fD8obFCQzCEPEZofQwwlxFx36yXdrYgEmh6XN8j4P8ZEcqzJuS684vj9Wib 8FtIf3KH0jwxFDUZKI/BpEcsjo2rUwJERs2DbRHvqz2I4IaSKTynhMPLv/WjGlQJBd OxTEyhnm0a/s1+gzSDLNWoaevEDHlCcYGHF/NhvW42A1ivV8bVV1Ajh2VNBcHxdW/k JGqrkSfRDtVguloFAM9FULkUOLkv/BP4mTzZsSLrO5KSiVLda+8h+w9+th033TF5K3 A1C4N+Tjv+Kw/i3iKA3ja/G3GdxW6GSo4zH7MAK8EALOrwKzkr/wa2/uEH1BFFjGuV kaxi2ShJJsFXA== Date: Fri, 9 Feb 2024 17:25:57 +0000 From: Mark Brown To: Will Deacon Cc: Catalin Marinas , Dave Martin , Jackson Cooper-Driver , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] arm64/sme: Restore SMCR on exit from suspend Message-ID: References: <20240203-arm64-sme-resume-v2-0-a1fbaddc4425@kernel.org> <20240203-arm64-sme-resume-v2-1-a1fbaddc4425@kernel.org> <20240209164648.GA24829@willie-the-truck> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cgNJdvOI4EBBtGYb" Content-Disposition: inline In-Reply-To: <20240209164648.GA24829@willie-the-truck> X-Cookie: You might have mail. --cgNJdvOI4EBBtGYb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 09, 2024 at 04:46:48PM +0000, Will Deacon wrote: > Looking at the other places where we touch SMCR_EL1, it looks like we > always use a read-modify-write sequence. However, doesn't that mean we > inherit a bunch of unknown bits on cold boot? I'm basically wondering > whether we should be initialising these registers to a well-known value > earlier in the CPU init path, a bit like we do for the EL2 variants. That'd be safer from a future proofing point of view, yes - we've got a similar pattern with ZCR as well from the looks of it. I'll send a separate series. --cgNJdvOI4EBBtGYb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXGYCQACgkQJNaLcl1U h9D5bwf/QRbbYQHO+ijbviMUq6i2yZEnISNstcxLQJZc055HOhvmSYTDpZJu+1sE WTGEPvKgRLQ4/B8M8DmmWzXMVn9MtHLsuTbgrV4Aa8ipmCBWKLxhzlLyhVEl/i3Y d+i3NPvhAYfaCoteaQ/0XEn0YZsqOyengxmGxKLHLpGU1x7pCU6w/c8kJxWWtiNp yUIXD/yfrVkNDejzDN25m1v15seBALXjc1sO6cpt0ARYGue2XAa8qSKVcMQuG1hh Khx+BUT0/9FjuH/TZZIXlyhtG8OJReN/sT81hWhr5bdYWTlImr3e0jtqfoIH081t UpMe9g44ECHYky/i2CikaNahID6Y6Q== =Os+q -----END PGP SIGNATURE----- --cgNJdvOI4EBBtGYb--