From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A52EDC433DB for ; Mon, 22 Feb 2021 09:36:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6394664E41 for ; Mon, 22 Feb 2021 09:36:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6394664E41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=posteo.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject: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=RueV+8DsCMUkd0mZcx4zyYANFuoi0m/+gCkA7Dpr7F8=; b=mJtygqAX5okNEBadMkSiAF1sj cg/yG2zqYKAJUcbozjOyccdrPqa2byoc19/Yzo7slz76dQyJuj+wbZpm98vx6Uuw+NmP1JTUcK26x hLP3Wke1sPV/+Uh7PA9o3X/osEV8VRJJ6Nd2roUo7wm/hdb+LtPq/kdP2As7X52Ow4RduBJ+hqv6g +xY6skzs8Zf1p0wggJQvdOvsyiti3T8qVhLcUQ2Sx2l0B8MmYDQtTHReEv9RFIg50FV+8tpjXnL6V 7t8oL+y2ihmRevsmwLoCac5Yg5cLqezJB7A0uj3cGnJi7ce42D9AVPmQLM08STubAbcJg94yMHDJt Ub9v15iIw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lE7cz-0001LW-HO; Mon, 22 Feb 2021 09:35:41 +0000 Received: from mout02.posteo.de ([185.67.36.66]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lE7cu-0001Kr-Mc for linux-arm-kernel@lists.infradead.org; Mon, 22 Feb 2021 09:35:39 +0000 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 64F5F2400FF for ; Mon, 22 Feb 2021 10:35:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613986531; bh=VPHrBPyLWdSROwekyI2lxigDlO6mhV3Y1pk0vkdayCs=; h=Date:From:To:Cc:Subject:From; b=EqkMZQKE0UAmOy+siB5MRgQRhiRt6i4xGvFQS/dixsGmZiX43Ovx3sO3+EZI0sVfm HxfWU3mEi+yLUhJaykhfy9shnjL3oXLRvS+tKP3dG4a/VCgnrnqB3z+AWmgvhHW1v5 U/gBNDeCg3GWyYgka4JzEOdWl+7pUdnmf262WmFOxl3N5oln69E5GSrcGfMsmVKncm HWsgdWfCYSsPmrG4mZ/YTi/tSFEx9izUPAZNJmWXH3/gkIBKHhOaWpxcahh4rsKyRs 6KF/Vdq6EFDcQdpjQ44yZK8fQ5cD59dsQz5RUnVCy+ERDMOazQ4hJFCiiMBfKkH9N9 A1kC7kNXldKiw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DkcVP5xZcz6tml; Mon, 22 Feb 2021 10:35:25 +0100 (CET) Date: Mon, 22 Feb 2021 10:35:25 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Marc Zyngier Subject: Re: [PATCH v7 23/23] [DO NOT MERGE] arm64: Cope with CPUs stuck in VHE mode Message-ID: References: <20210208095732.3267263-1-maz@kernel.org> <20210208095732.3267263-24-maz@kernel.org> MIME-Version: 1.0 In-Reply-To: <20210208095732.3267263-24-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210222_043536_948754_AC3295D9 X-CRM114-Status: GOOD ( 13.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Srinivas Ramana , Catalin Marinas , Hector Martin , linux-kernel@vger.kernel.org, Ard Biesheuvel , Will Deacon , Ajay Patil , Prasad Sodagudi , kernel-team@android.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============8129150145086136717==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============8129150145086136717== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="b/B7fiZwBVN17PG/" Content-Disposition: inline --b/B7fiZwBVN17PG/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Feb 08, 2021 at 09:57:32AM +0000, Marc Zyngier wrote: > It seems that the CPU known as Apple M1 has the terrible habit > of being stuck with HCR_EL2.E2H=3D=3D1, in violation of the architecture. Minor nitpick from the sideline: The M1 SoC has two kinds of CPU in it (Icestorm and Firestorm), which makes "CPU known as Apple M1" a bit imprecise. In practicality it seems unlikely though, that Icestorm and Firestorm act differently with regards to the code in this patch. Best regards, Jonathan Neusch=C3=A4fer >=20 > Try and work around this deplorable state of affairs by detecting > the stuck bit early and short-circuit the nVHE dance. It is still > unknown whether there are many more such nuggets to be found... >=20 > Reported-by: Hector Martin > Signed-off-by: Marc Zyngier > --- > arch/arm64/kernel/head.S | 33 ++++++++++++++++++++++++++++++--- > arch/arm64/kernel/hyp-stub.S | 28 ++++++++++++++++++++++++---- > 2 files changed, 54 insertions(+), 7 deletions(-) [...] --b/B7fiZwBVN17PG/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmAzet0ACgkQCDBEmo7z X9vfWRAAgmO7sXidDBGjzOX7cP0Tb4rOOlQY06r6tQhTtim1xJkOSpzsGJTepdaD 9hZXErHxdvCEZY/QrxZW0VpZ1W4IEDXZBvGXcfvxL7JPvbbt+mZ4QD9zZa4ue8ZJ 9LKcRSFfjsKh0+Llu+PFyqe09XqAjtRDEv0QWsyC7HYRNHmVy2lMop8IiMLcVrM3 8t3UUsflQpMQr4nFRBqgvOxK5ydrDSP8R1v6HBOVEp3FH4X/FOPO8Mbo/zcXHSMX LOvj0dCmQt9Rnm7wPkp1xbVTTD7MngQO5Df1DRm1o1lx9mxGQcIDerAoI1GRRNiA WHXO3EqxEaZAkMa08bAZzBMGARpVk9YukqQOAwiWVzpH5/YRuSGDqufzV5e2Z37J 00e1wX501ZgcduRiO+MlDD88PBPAF8ok8zm3ZwvXSs5FQr88kLGGmmiGlIe2VMNF MYt0P3j6g/Fnv7bXd8PlXohjIPVd5w0pIUm/AYqBVTmgSchP3he1CfJzQy5ICQlh +svzK/vxqI19FibpUjZ3t8qsiLmlyHoeA1KwQwbueMbxs76QqDMA0ZuvVN6Xt3ot BBAP/EcFvrFw55KxIMEPhxYsPT/OoG78RFhq0hVe7ht/8q0UF6gcFvUFla0T39oK JmKkQSqicoo79PtzMMcKUigpmrkt3NgSgNy4o+70oYnFRVpm2g4= =mdQE -----END PGP SIGNATURE----- --b/B7fiZwBVN17PG/-- --===============8129150145086136717== 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 --===============8129150145086136717==--