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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 9A109C433ED for ; Mon, 12 Apr 2021 15:24:26 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 2209B61244 for ; Mon, 12 Apr 2021 15:24:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2209B61244 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ofzW11mx3WZjcLVrp53EvsM0a14SPVmy8SyVSXlJ07Y=; b=A+GvOrfc9+9+PipGnjL6qhvc2 80IZN0bADHNQOMdRvJdQZef0TwU4fWK81w3EBd4tp1n8l30am/afRihCVs1GZPws3EdpyrJlAm2iG pSUVJ9r+d/kOkKNyYFsIPMsjHLuKWtotc2oe5CwM4JBzM5s7ewSzjLG85XRhZxRtoye/GDlumiyjU WL3AayNNoe4cbRvTffhE12NL5YIIXriy4Uxcp2XG1Y8n8p/I1k4YIyYYOLqBahogg5YxuwuTm07rR edMepVCpKc4AJgsDue1pLvwhapQmidiDd2VThzaS+szbJoWX9xDpoQCs3g4d+6/tfxr+E0di39qsv 7tMBZpqNQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOd-0073q2-0C; Mon, 12 Apr 2021 15:22:39 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOK-0073mo-Ro for linux-arm-kernel@desiato.infradead.org; Mon, 12 Apr 2021 15:22:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=Ikqlwee0UHF0CGLZbhrL5HAWImfpkMuu9FHvLnrvtak=; b=ZYv5c0Jcv+040jMyo7ggFawh7h 62Q/YLreUDtoQVMTgPDi334jKP5Yktpl3dunbp7YWuO01wgiDoSDruOvy3CtwiUDQ/FmjGlPU8AYJ r+53NATGOIfpGmb+qevX4d02NSaM8GxpE6itPFiJWLRwidbaGCkGo77wlRE++tvmW8z1Dgs0z8Nd1 0j5y4g0pWeDI/bLGYwODk+XmoGqPwyK3jW1OIontpLAwJxrF+23ziksCtIJGVBCaipgFr8iaGQE9k iLFtNXExROHSmxdWvxafSMvu4wQIFrGwNs0iF5RWZEHYXD7uC6+2aKsfs05GZhN3BJt960nBGI0bL N1MqjRPQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOI-006L2m-GY for linux-arm-kernel@lists.infradead.org; Mon, 12 Apr 2021 15:22:19 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9A05361287; Mon, 12 Apr 2021 15:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618240938; bh=S0wyhnZu91n6wy5jb63iSBVBhxU0hbZCjemtxworkaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NI9wcLHPLgT+2TyC2EXdvQoysqy5eHYCSxSJ/JbXP7AwHLf9/iJ4LqWrZ3Lc8oVR3 ww7jQF9StKj+CWW12fou/M6KopzK4GFtLj2ZePYrrlYY9gXWbFIe2APWOGV6ZiHoa1 jgL+eAJ95rMfumVXG0Lb6UAYkABkC0EHrPtJVyTyixu+He1NQ/SzUhgepZq524AfRh eAC48dzBmHLfTqMhrsIgkajL54JoKWM9wtOlP4nOo1+bad6gSAwOdkB+mXJPvQqp+c oi4vcreZMs9+DxYavXntze2EciVJwKcfXaJTtJc0dKsk2zugSnTKlAPs59f120bndR k7mYazCmqcf3Q== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Marc Zyngier , Mark Rutland , Dave Martin , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 2/3] arm64: Explicitly require that FPSIMD instructions do not trap Date: Mon, 12 Apr 2021 16:19:54 +0100 Message-Id: <20210412151955.16078-3-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210412151955.16078-1-broonie@kernel.org> References: <20210412151955.16078-1-broonie@kernel.org> MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; i=tbu8ZOv/vvREgWuymJd6hzVN9H7G43mo0MGZMRJNLSA=; m=OjnRt4m5yJ32dQYV0aubksez0wwb7MSWVW7I3m7CU5A=; p=pzS7isiykaYQXgc0Rb/ITODMuWXOxI8AsWR6cGhttP8=; g=96a87ee27cb2864f8b3e88bc752a2f68d4d310c3 X-Patch-Sig: m=pgp; i=broonie@kernel.org; s=0xC3F436CA30F5D8EB; b=iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmB0ZRcACgkQJNaLcl1Uh9D6iAf/Vxk wOSH/WXQ4CtGmFNdYCdfAiIP6nEem8s7xI0//Qm9CGtwbx+tvS0ETwRnYFS39uXrPFQb05gIfZl1P Z8CyZSM4rRwBfBBdPH8/WScFY6d6KbeX4oEbu8rbvQ9cnjiT9+NSp7jLCR4ArQ3DAIUCNW/e+jDMu dIqGWrV3ddkvkyzB0+PTThzS+PbRTUubl7GJYvWIVjpEfvoBRSvgYZ4ARNna5pHAUvlzYHqGeyp/l HcKhJqAtIDejCksXdMQ4Rii1YiixNZfZVpq+7sP/dB+O2pRjOTsxm32lSri0lEZnnUI+fQRP3Slv0 WfM67VVsvMCX6y8/Wb5qadv27INRiKg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210412_082218_587758_F6426BB9 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We do not explicitly require that systems with FPSIMD support and EL3 have disabled EL3 traps when the kernel is started, while it is unlikely that systems will get this wrong for the sake of completeness let's spell it out. Signed-off-by: Mark Brown --- Documentation/arm64/booting.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index b21049ab6c69..4d0e323c0a35 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -277,6 +277,16 @@ Before jumping into the kernel, the following conditions must be met: - SCR_EL3.FGTEn (bit 27) must be initialised to 0b1. + For CPUs with Advanced SIMD and floating point support: + + - If EL3 is present: + + - CPTR_EL3.TFP (bit 10) must be initialised to 0b0. + + - If EL2 is present and the kernel is entered at EL1: + + - CPTR_EL2.TFP (bit 10) must be initialised to 0b0. + The requirements described above for CPU mode, caches, MMUs, architected timers, coherency and system registers apply to all CPUs. All CPUs must enter the kernel in the same exception level. Where the values documented -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel