From patchwork Tue May 9 14:22:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristina Martsenko X-Patchwork-Id: 91625 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2965847vqo; Tue, 9 May 2023 08:18:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gLWe8S9EPZcU8/LoKAPPAxWO5k/ZDzSwTQaDsVZNHD3wamuEbHiKYLr2nWZiIr9GWM3Sp X-Received: by 2002:a05:6a20:938b:b0:f8:a481:a952 with SMTP id x11-20020a056a20938b00b000f8a481a952mr19094902pzh.1.1683645483782; Tue, 09 May 2023 08:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683645483; cv=none; d=google.com; s=arc-20160816; b=eozdrW/wjAEDXdHTUqqicfWKnujVaM3mm73t7mvuY6aE2oFrN1mqkhdylTvwgllEdQ dukn48ky6lgxp5qxzRXUr4d7hCLDmbsKWA0m3QJ0CqgB5lsiaS171VP0ghQF/pg+4g4e 7D65Zj1NIkc2ZUSbadEIW3/X2kqMvrOOcUnV+1DaHyxfJ3vyzyhAYTedL1KrRi+wrihr rYednSzLsVsc7Nj88+NGHgRVyNqlUS5LabnuCnheje+8RJRDr5UQUJy6aVUdv7q7eXQJ +3wWcEyUJsiimXxFLD/gB4Qwxtg4Rvkh+DcltLEP7n5O/C/FpAmuom1d+R2cwUAgd59T HBFg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k124-20020a628482000000b0064327a34c1csi1349242pfd.225.2023.05.09.08.17.50; Tue, 09 May 2023 08:18:03 -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 S235851AbjEIOXh (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765430246728537142?= X-GMAIL-MSGID: =?utf-8?q?1765430246728537142?= 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