Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5699742ybc; Wed, 27 Nov 2019 08:07:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxleAv57ufOunpShzmnO42MI3XnVrWBtUIj143aYN9/miCSeVmmKI0GP1fdk5uz/tGxMGa/ X-Received: by 2002:a50:fb14:: with SMTP id d20mr31753445edq.190.1574870846994; Wed, 27 Nov 2019 08:07:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574870846; cv=none; d=google.com; s=arc-20160816; b=EAtE/+btxloijIWGViNVcmfOeTkgks/k6MdlRnm+b6p7vNiuOgyDfyJ/jBl7o0Wm1X YSbtqiXJtBjjaBIAT6gu6rlrmz0i7jvkTA6lnAPcesWZtREaHlzyxRjlzVIkZwK1OjsL hZ4X4w5sdq7TDt0mrNdkUp0cc8CxhjFMuG8KrRnkU8U468DGsGgiSYnusXEkrQ1Y4xOD 4BPpa2Z42kxFr8xziEX+wGm1Hs9kInHeBQ2To6N23Lph7EJwK2CEN9wLbft6mHDKGMO7 eNi9NAYZ0M/RgNuBTMGBcSa7AyUvbonvUPXFY3qiDq8zqT1S1YnH29fiOpPO0mEJ4Iwh Kxpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=SQOLF3ykNkrveKW6KClpSEdVv4H4XC7kgEsyp3VnWhI=; b=G41wBNbiQXrlsXeK8W/tHU6Rr+K2sREGQ7lNpYQujtCvQ4OZaxblSCT7RFxSX5HRgv IaI85aSqVpfqo76jUBAPlGO9918P67rBqyXMw4LrGZ4Qk30Jj/0LGxbH7333pyBS9bBs j6LwNrZRMHtUXtSw1JVz/TM5qE5selRffapIiLTaAxS6HeXgZ1iUITmvANsW05sswPal +i8wQqnQio1+gO9f1RxDmkX9/ZfIcHYPIsFO9P0FrvmJNrky7dHkdU5l++LivHW9BEFA h79XMJ6Q3gaW14oW0PV9KoQo1sz4mOghO/jc7wtp9eD5+pmCogoYttqJIMpoTfEwbUyL RsGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si9697812ejx.132.2019.11.27.08.07.01; Wed, 27 Nov 2019 08:07:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727111AbfK0QFI (ORCPT + 99 others); Wed, 27 Nov 2019 11:05:08 -0500 Received: from shelob.surriel.com ([96.67.55.147]:47274 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbfK0QFH (ORCPT ); Wed, 27 Nov 2019 11:05:07 -0500 X-Greylist: delayed 1090 seconds by postgrey-1.27 at vger.kernel.org; Wed, 27 Nov 2019 11:05:07 EST Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iZzWm-0000RJ-Dp; Wed, 27 Nov 2019 10:46:52 -0500 Message-ID: <8aadfbebed6502f21ba91a823e118770b84e31d2.camel@surriel.com> Subject: Re: [PATCH] x86/fpu: Don't cache access to fpu_fpregs_owner_ctx From: Rik van Riel To: Sebastian Andrzej Siewior , Barret Rhoden , Josh Bleecher Snyder Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov Date: Wed, 27 Nov 2019 10:46:51 -0500 In-Reply-To: <20191127124243.u74osvlkhcmsskng@linutronix.de> References: <20191126202026.csrmjre6vn2nxq7c@linutronix.de> <20191127124243.u74osvlkhcmsskng@linutronix.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-6EoG3tuvdYQ7otJGjpXm" User-Agent: Evolution 3.34.0 (3.34.0-1.fc31) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-6EoG3tuvdYQ7otJGjpXm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-11-27 at 13:42 +0100, Sebastian Andrzej Siewior wrote: > There is no Sign-off by here. Could this please be verified by the > reporter? Next time this is posted, feel free to add this :) Reviewed-by: Rik van Riel > diff --git a/arch/x86/include/asm/fpu/internal.h > b/arch/x86/include/asm/fpu/internal.h > index 4c95c365058aa..44c48e34d7994 100644 > --- a/arch/x86/include/asm/fpu/internal.h > +++ b/arch/x86/include/asm/fpu/internal.h > @@ -509,7 +509,7 @@ static inline void > __fpu_invalidate_fpregs_state(struct fpu *fpu) > =20 > static inline int fpregs_state_valid(struct fpu *fpu, unsigned int > cpu) > { > - return fpu =3D=3D this_cpu_read_stable(fpu_fpregs_owner_ctx) && cpu > =3D=3D fpu->last_cpu; > + return fpu =3D=3D this_cpu_read(fpu_fpregs_owner_ctx) && cpu =3D=3D > fpu->last_cpu; > } > =20 > /* --=20 All Rights Reversed. --=-6EoG3tuvdYQ7otJGjpXm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl3emmsACgkQznnekoTE 3oPklAf6Aybc6hqvWSIYKd0KqrHtRhyW0ibGiSXziJSYChlUaFy+3zFLwjES0ONN H8t7f0OSEINpN7OQt1LeWwCp9UHDIKqG3rv3jKdq+j/xrp7/D+4U5+cXtFlW+KIR lauargI7DEM+eyq5ASbiE5+2565cXD8gMKK+AMNJzPiCO3vi7SPkjm2P4MqQwC9G VUU+enJcP0WfDDaKCs5Bh2OseBAich72rXNKdiYEwMS70dUl0ofHzrj/LN+kh4OX fWksJcOv4BZP5BksB6yw3JBtTp9y5EAfnjYAAhWAiMijKTPRJ9UVOw+o+Km2bS8O e+Ildvuz9phtOdegUEtV8djdCzMelg== =xB4N -----END PGP SIGNATURE----- --=-6EoG3tuvdYQ7otJGjpXm--