Return-Path: 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 41C13C433EF for ; Wed, 13 Jul 2022 18:43:19 +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-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HGedxLmbiHtLsLQD3OQ+4wY4eJBeZF7Uxex8I86UGdY=; b=YX/2+9ra7vId2nCMllo6Bi0CGt oy2Nk4nk2hE8UrV7wsxgpi4fpYg/ItXnsgdzhP8PzVziAbuZ1BwV6CdVl1QqhIGBSYa7xJOTlOkWF sE4bAvYl3Du3rD5W2XaJQAR/NWmF7I+EBP3Cz7l5cYOJp4H9JswIoysaT2AoxUwHcRgFoMT9jzHcz 9a6TL5Jz7D9g23WW8K0J4NApsXx0GjSooBa0/bfTBLquW6OUoen0gibzdsRWfNUzYoLWFO0nTguRK m5DMr5jlkeTbFddIgQ3Gzazk0oLyaRH0nDYQ2UfoY+0OTCExgCdnfpu0w6kkBxoDGKQp9/VGmDtZx Yv5o9Tdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBhJF-006tcS-0W; Wed, 13 Jul 2022 18:42:05 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBhJC-006ta7-C2 for linux-arm-kernel@lists.infradead.org; Wed, 13 Jul 2022 18:42:03 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C47FB61DA9; Wed, 13 Jul 2022 18:42:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2971CC34114; Wed, 13 Jul 2022 18:41:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657737721; bh=t6Y72gED/fTl04btERtJ3dMn6ILSAxDzRCSzKEtTzbw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V7caJ923Fxp8z+9fbfsfVBRc+ZVX1FPZV8uMhX+uWOG4+aX15qNTRLOgm/jU4CC9w KUr/7bxMDM2U8OFuX9c5a/MEpXBbEEI9YB6jjwCGKBTzMVEyaD4BLg3SQLV5d9fvrp EWJTs+sgMHD+zq7jLwc6nxSqjhA5iSV9LhdV1wayf1ILNJLcJdo+1ZGZknbxmVC/3C Hpb9Xvhq8yvrXNRsGlDjA8R7KcC7LbqOOq4GVpuARmvmrnv6h3NiQDSd680vT4nVPy jMVr36d0cfBbg5u/e8DjTTSxPQW5xKITZVKdSnP5EGFjH/Mo2+pNKWYkM3CuA2KTtX Dcpu82/SZ8n/A== Date: Wed, 13 Jul 2022 19:41:55 +0100 From: Mark Brown To: Peter Collingbourne Cc: Marc Zyngier , linux-arm-kernel@lists.infradead.org, Will Deacon , Catalin Marinas , Mark Rutland , Ard Biesheuvel , danielmentz@google.com, saravanak@google.com Subject: Re: [PATCH] arm64: use sanitized feature registers for conditional ZCR_EL1 and SMCR_EL1 reads Message-ID: References: <20220713181852.3652212-1-pcc@google.com> MIME-Version: 1.0 In-Reply-To: <20220713181852.3652212-1-pcc@google.com> X-Cookie: Positively no smoking. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220713_114202_465123_A9100907 X-CRM114-Status: GOOD ( 13.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5540472450409624113==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5540472450409624113== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wjFaMIDl9otYnPZu" Content-Disposition: inline --wjFaMIDl9otYnPZu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 13, 2022 at 11:18:52AM -0700, Peter Collingbourne wrote: > With arm64.nosve we would still read ZCR_EL1 in __cpuinfo_store_cpu > because the condition for reading it was based on the unsanitized feature > register value info->reg_id_aa64pfr0. Fix the problem by moving the reads > to init_cpu_features after we have computed the sanitized value. Fix > the SMCR_EL1 read for SME similarly. Reviewed-by: Mark Brown --wjFaMIDl9otYnPZu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmLPEfMACgkQJNaLcl1U h9A8jwgAhLELtQ3Gck1r401dchDAfIUDaQch9ciBp+m53DiXv9+1sGo6FhnPN9Yo hjVgz9wyIuOeVeSuIPDIrPL3mkz4h/z8ZxyYuPy80nW3qyEGcfG3Zgnp8I94azso gNhHEcQnohIaMzpMPr3DpcfoDdESiVkHqByS8JEhYXi/zKE13BlMuyKYjZHJ+1lC BoYRmrNgnT0Ox+rPRmv3b1v7ZOvaCBWREy9EwIwbdITNt0s15KYavwGTXKcq+3TX LaQNsuXu4sd4537EIFgS6+kgeWwDWo+aRkda4hw5P+XlGhErbCz+Ol4ErtqxxuZc 6/c0/FI/caMpMSY1B6moSKWFfFZojQ== =yvv3 -----END PGP SIGNATURE----- --wjFaMIDl9otYnPZu-- --===============5540472450409624113== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5540472450409624113==--