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 E71F1C43334 for ; Mon, 27 Jun 2022 17:05:54 +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=+0xLQSPshd6KhEdAZmoYBGIt6XmL+3qfJDtGQbGiH04=; b=xojgBwx7r0MX9kk7VzL6W+qnea x1rCGDiWdE3SVRWz6sdQ0oLez2QGRdcNyfcEiFtcTMwUACL7mZ0BtZYk8oj/NKQYGRQLFgVa3ZCPf d4EotqaqozjgaTIpFEFtZSLKfTuk2J9tDBiWplVLvCiMf6/GnnoFIV4+a0hz4gt2hBoCyyOrCjos+ 6Czf0hhU5teqMYX8vF08v13ji7rJ56vI5S58NQ85QwhmKGgw1NTK+dpn6g1s3w24tMQy3qhvIUCIv B8KbK3DfD8QavIR8mHaEHfz9XGW8thSQDmEPhUN8B8Wy7gAIOPXQU3y+bRkpo5a2bLTLICBFUPSYo xWxONr0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5s9x-0021hg-KK; Mon, 27 Jun 2022 17:04:28 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5s9l-0021eT-Ei for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 17:04:14 +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 ams.source.kernel.org (Postfix) with ESMTPS id D34D2B818E5; Mon, 27 Jun 2022 17:04:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E88DC3411D; Mon, 27 Jun 2022 17:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656349450; bh=pNeH5gjo1AlxrVNCF0OsxrzefCbSLtQg888zEwv1RXM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iZRQw3R9XQRzUn0RlpMNOTNtLJksvf4YLLrzQmf3m/eijS+bRzSY72hMvvQvo0YrD LxoKfrajrOpJavc3tQ+flijGh7FLMbInWHm5bizb6ycggs3Ro3dIn2hmGI0z+5AL6D e9B8Q0L6U7TL8ks+Ag4CA+2CGZ6YyuWAh7ETzy/BhpiC+OGVkXxKSTMEvCMl8x3BSR cSQL5PEql+wcztDO/cpmQ4GNE9kT691r2Sd4KhJVvvEpQht1k9BvP2Yf5zmXNVAdIU 0p0LqJc5n2hUCLz1JBzochEqX6xFrujoh4FXE9bK5TkAtq8bvauo2AOWGGRDQ6LMUj qR8wp1coCAqEA== Date: Mon, 27 Jun 2022 18:04:05 +0100 From: Mark Brown To: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Catalin Marinas , Mark Rutland , Ard Biesheuvel , danielmentz@google.com, saravanak@google.com, kernel-team@android.com Subject: Re: [PATCH 5/6] arm64: Add the arm64.nosme command line option Message-ID: References: <20220627151412.1496361-1-maz@kernel.org> <20220627151412.1496361-6-maz@kernel.org> MIME-Version: 1.0 In-Reply-To: <20220627151412.1496361-6-maz@kernel.org> X-Cookie: Your supervisor is thinking about you. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220627_100413_705806_84E30085 X-CRM114-Status: GOOD ( 14.08 ) 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="===============1687470261702889311==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1687470261702889311== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="41W+/npCUE1j4nsn" Content-Disposition: inline --41W+/npCUE1j4nsn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 27, 2022 at 04:14:11PM +0100, Marc Zyngier wrote: > +.Linit_sme: /* SME register access and priority mapping */ > + msr cptr_el2, x0 // Disable SME traps > + bic x0, x0, #CPTR_EL2_TSM > + msr cptr_el2, x0 Should the first msr there be a mrs? If not it should probably have a comment explaining what it's doing. > + mov x1, #0 // SMCR controls > + > + mrs_s x2, SYS_ID_AA64SMFR0_EL1 > + ubfx x2, x2, #ID_AA64SMFR0_FA64_SHIFT, #1 // Full FP in SM? > + cbz x2, .Lskip_sme_fa64 I'm sure any firmware authors who enable SME will remember to also enable FA64 if it's supported in their hardware! --41W+/npCUE1j4nsn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmK54wQACgkQJNaLcl1U h9Bdmwf/UOqzX6QT0sxbgXUn3D31yeBNO/gRk1Sk54GPi9OHZ46bNtNEixDF7R/S FT4pz+G3PJPUjgJW4MUn55WomDbBwiHfFcefICnl8BKZdpa+Y/zWJOZOJbnTzhku XjZizJSHymIJe/hFUYbLDmuz1TBfHi9oO0E/GXOEvbTPALe3eccVhB5eVFQHI5UT iyXe6/Rx668xI/jhc86HDNhWnjpqFUXG6zxllP7kns3wzyvUjL0nuwHOGN/hlVKI 97Imbkc94i4igZjOqM9vCXOl2MY/Kj4JfNDaKWDah0d0lrT2uYmBsAQuHkSs6TkR KPLaCy7/THMmBybsVXmdd1VpV0aIwQ== =pOog -----END PGP SIGNATURE----- --41W+/npCUE1j4nsn-- --===============1687470261702889311== 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 --===============1687470261702889311==--