Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2454375rbb; Wed, 28 Feb 2024 02:14:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyJJclyckbCUQ5mkll1ab2YRSIkxVxpFpybrXmCXbEXaXBlN06BogjMhBsJv8IhOv5bV02Rm4sQG/0qLc+hKEC4kOzyYt2FH6zv5MtRQ== X-Google-Smtp-Source: AGHT+IHLXvCvm+FtTnoCySDX/tp8FI4JhGxXNdmP12I0Hmw0hWRM36GBB1xDMNCvU+FRqlZYufgD X-Received: by 2002:a05:6a21:3115:b0:19e:a1a2:60f6 with SMTP id yz21-20020a056a21311500b0019ea1a260f6mr5235132pzb.57.1709115281333; Wed, 28 Feb 2024 02:14:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709115281; cv=pass; d=google.com; s=arc-20160816; b=tqFlgMmDKBg4Hm8SOoMXWivTRdglhMPXXdwjYMpiUZ+kNfuJbaUO6xuj87pxuiS3i9 K+ZQ1vCO8BljjZpT6w4xhhbYVqll5myT9rogEc3pMrJK4BR/O7GGVxEO0wOm4NIFs+D5 hMywvaHV3NZkWOSWiFt/Jyji8WSwGPXIzP1kBOI60vE8E5FFIpVKJUDQLxOne+Lf5cD0 +AK4W1mzZht90WJ2qnxbtlKpoEuCEDTtpk92mVmJhvHqgaUaRZ7F8xFeKIJxtnZ8sZQK TlUVw7QAXYCoIZK+06KrnRXWTl9VuapBMnSBc8FJXRgFPju2tJBe5X0RxJ3j7nrvbuuH rYqA== 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=LlpIsPA3s5JjEM2+9kxgL/praNsrMawFqUk7o7+/NC0=; fh=dNHEob+bPyHqVeQ1oUD388nSgpOj7iNkwk5N0s1uYoE=; b=nM7qLwWq1TwLJ9kriWMDjEiFRQ0KAv3Q8+2Cg5VsnFwpZMkJHhdrxVBaiBe7USgQlS HnF9m1rl3djjlGlv2dRhi6wNn4IKYQuCdwWHl6DST3LRXYbDCMhVE5D3bOVb5ISj7OE5 Tv+fdj0LMXvcVKTo9O3uezxM2B9V18KxOjc3zkUP8QdJxeGMvHbmZXZjBDAjQU0pC54/ PKB3GPOY1ff/R52R0jsg1fcFZhAXKoY8IW3AxSY+v0iEzXXawxBWNXeQ2tKbwRZgIZYC V5aziovSTBTSfiF3irPq32R7+DMy+4nyfKhzYsOmW7i7OEe6knFEFplWKK0+NH/U1Qpt 0caw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jpBkus9W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84819-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84819-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id hk12-20020a17090b224c00b00299b3588831si1109867pjb.58.2024.02.28.02.14.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:14:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84819-linux.lists.archive=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=jpBkus9W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84819-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84819-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 0CDBF2823FB for ; Wed, 28 Feb 2024 10:14:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CF36381B0; Wed, 28 Feb 2024 10:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jpBkus9W" 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 8521B364BF; Wed, 28 Feb 2024 10:14:34 +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=1709115274; cv=none; b=NGkhiD/gG0eJuT6GnpGXguuXBQDWU8tY5bCYiJMaW7A68b5QILElNsXJztczSClSy4NK07jb/CK0HzEB9C8vD4GMqR+K4Go4wxWHh7ZaUM9EzAVOWNyWeSg6H7xecbWkxXyW1B3qPwLn8m2hGqTWq8Zr6zssoRdVu2jqBq2Hwyo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709115274; c=relaxed/simple; bh=LlpIsPA3s5JjEM2+9kxgL/praNsrMawFqUk7o7+/NC0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s3QNOIH1SN77BHtOxQ6LnMhz4dfNO7Ezjm6h4xseS8bqhIiVoGLwEAAUcC8CWLtfxr03+/QKSBRCOmKjnWihHFkXBKZyzUNf6PSKjTqNDvUt3vraNeS3yTqB8YG6SD0ZUSutRKzCsaHcaa6RNPGR8wt77faE5SKufa3v/847NQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jpBkus9W; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63737C433F1; Wed, 28 Feb 2024 10:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709115274; bh=LlpIsPA3s5JjEM2+9kxgL/praNsrMawFqUk7o7+/NC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jpBkus9WxLeKhaE00DYuxkdmEei5yuSfeL/vxQLSjUEn+6DIxN+B43J2E6fIXKE5s WRC7wO5ureHOEm0e/AAxdRXMJSXiTCxhY6Pi2mfvSHj5QYSjkMBcznvx2ItcwNHEom 2wOYtKwluzAMEuASXHbs8//Dl4nEF6QWYtaUQ1m0HxioDx9JKTQW0KZnocp8rq1wSw VTU/204MmfG0LXiy/RgmnNmYnhkCxGI+tBsICIhD4CgqmrN7uW/FPIAUrKxmcdVo7i pi59kp74fst/qX240lSCzDyyZTrDhZz9YST2HmzuZjjwCFwX9PJb+x6AWI+7ifjBAs SXtA9asVcQ2BQ== Date: Wed, 28 Feb 2024 10:14:30 +0000 From: Conor Dooley To: Samuel Holland Cc: Palmer Dabbelt , Andrew Jones , linux-kernel@vger.kernel.org, Alexandre Ghiti , linux-riscv@lists.infradead.org, Stefan O'Rear , stable@vger.kernel.org Subject: Re: [PATCH -fixes v4 3/3] riscv: Save/restore envcfg CSR during CPU suspend Message-ID: <20240228-persuader-dehydrate-549097aafac1@spud> References: <20240228065559.3434837-1-samuel.holland@sifive.com> <20240228065559.3434837-4-samuel.holland@sifive.com> 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-sha256; protocol="application/pgp-signature"; boundary="oQj8PrQtimAkDfFE" Content-Disposition: inline In-Reply-To: <20240228065559.3434837-4-samuel.holland@sifive.com> --oQj8PrQtimAkDfFE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 10:55:35PM -0800, Samuel Holland wrote: > The value of the [ms]envcfg CSR is lost when entering a nonretentive > idle state, so the CSR must be rewritten when resuming the CPU. >=20 > Cc: # v6.7+ > Fixes: 43c16d51a19b ("RISC-V: Enable cbo.zero in usermode") > Signed-off-by: Samuel Holland Reviewed-by: Conor Dooley Cheers, Conor. --oQj8PrQtimAkDfFE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZd8HhgAKCRB4tDGHoIJi 0oltAQCyAW4xl4lPxjiVe7khhMrXdeuIuR7yGDqAKXKQJo1wkQEAuUcPMOTpBetT Cp57UO+aOEO8qN+j2x5dwcZuPd9BSw0= =nH9F -----END PGP SIGNATURE----- --oQj8PrQtimAkDfFE--