Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5908095rwr; Tue, 9 May 2023 07:49:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7UglFa58ZMz9yeKAsU0eP+BfvohUxAkIqNM8XZq+nxOufbCG0YPxCLBxavrF3NLgs0E2RZ X-Received: by 2002:a17:90a:a683:b0:23e:f855:79ed with SMTP id d3-20020a17090aa68300b0023ef85579edmr14539248pjq.28.1683643769625; Tue, 09 May 2023 07:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683643769; cv=none; d=google.com; s=arc-20160816; b=GmLgkVQbRMf76MuCsRosy4SwmV5ibsHmg+44PwqkvWZ++OhBxZeIPY27bV9voaXBQm NQXlHQerTwLcpfieQE6bUZGWb2jXWqSJ7luBsB6R7MR8CnVfvp1kQ6I8paT9pZukKtb+ C0v8azyCL06K/9uY7AE0icWxHV3Jl+angduJeNjg3EwRQnSFa8iLMGfj7owsyvjH3NAV NjHn3gKSWnbu3zWd71aNLy22q4GFkGSdKdeGbYcfiyYPOc743PALrxnZ2NOMOYrqR2S+ ASjC9nkXRLRkct9+cDLPTG8aecZZFw7GOX5Wxb0dshVLh446jvM9NZt5BDyT96QHeNCR QpZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=84gSo5Kml7TQ0BQ2eWPRyHcrwsTcR2eoov8E9V0qSLE=; b=Da7Ul++8tD8KW4UCl2TDSlICrMPPaJPHjsTOb+USZftiwRu2m4dtF9iR+iciUWDqYA 5/BJx1d53XbptmziPzsYvoon/dPDV/tovKnzihAr0bHsrmAaAAQn7vAHYyZx24ekfNLE yNeNvFRxUe3rGK72dzqXmNjq7m/7+W1dY600XWwk6wzZ5043fnHYOPtAYwEOr9MgM6b+ FtId4xqELHRfJwx7M5ELqHOmXzZSz7uz8KNAWS3YowT+ZOD5p8X6uqLfv3P42J6L5BR3 v9/buSZQokdvN0pDdJU8sWeelptD/tvEXvoXgu+H+SB2monB0C9EPLT4johnwoJLvopf qysw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o90-20020a17090a0a6300b0024e1ae3fb36si15168781pjo.128.2023.05.09.07.49.10; Tue, 09 May 2023 07:49:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235849AbjEIOXh (ORCPT + 99 others); Tue, 9 May 2023 10:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235837AbjEIOXb (ORCPT ); Tue, 9 May 2023 10:23:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B86C34C10 for ; Tue, 9 May 2023 07:23:28 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F3DBC1063; Tue, 9 May 2023 07:24:12 -0700 (PDT) Received: from e126864.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 74BA83F840; Tue, 9 May 2023 07:23:25 -0700 (PDT) From: Kristina Martsenko To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Mark Brown , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org Subject: [PATCH v2 04/11] arm64: mops: document boot requirements for MOPS Date: Tue, 9 May 2023 15:22:28 +0100 Message-Id: <20230509142235.3284028-5-kristina.martsenko@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230509142235.3284028-1-kristina.martsenko@arm.com> References: <20230509142235.3284028-1-kristina.martsenko@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FEAT_MOPS introduces new instructions, we require that these instructions not execute as UNDEFINED when we identify that the feature is supported. Signed-off-by: Kristina Martsenko --- Documentation/arm64/booting.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index ffeccdd6bdac..b3bbf330ed0a 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -379,6 +379,12 @@ Before jumping into the kernel, the following conditions must be met: - SMCR_EL2.EZT0 (bit 30) must be initialised to 0b1. + For CPUs with Memory Copy and Memory Set instructions (FEAT_MOPS): + + - If the kernel is entered at EL1 and EL2 is present: + + - HCRX_EL2.MSCEn (bit 11) must be initialised to 0b1. + 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.25.1