From patchwork Thu Aug 19 15:53:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Hoyes X-Patchwork-Id: 1518735 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gr8TB592Mz9sRK for ; Fri, 20 Aug 2021 01:54:05 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 23BB580725; Thu, 19 Aug 2021 17:53:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id E59908032E; Thu, 19 Aug 2021 17:53:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 5B4518032E for ; Thu, 19 Aug 2021 17:53:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peter.hoyes@arm.com 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 390861042; Thu, 19 Aug 2021 08:53:26 -0700 (PDT) Received: from e125920.arm.com (unknown [10.57.88.64]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8C23D3F70D; Thu, 19 Aug 2021 08:53:24 -0700 (PDT) From: Peter Hoyes To: u-boot@lists.denx.de Cc: patrick.delaunay@foss.st.com, sjg@chromium.org, andre.przywara@arm.com, diego.sueiro@arm.com, Peter Hoyes Subject: [PATCH v2 0/6] Armv8r64 + BASER_FVP board support Date: Thu, 19 Aug 2021 16:53:08 +0100 Message-Id: <20210819155314.1787973-1-peter.hoyes@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Peter Hoyes Add support for the Armv8r64 architecture and the BASER_FVP, which uses the Armv8r64 architecture. The Armv8r64 architecture has the following features: * No non-secure exception levels * Highest exception level is always S-EL2 * There is only a PMSA at S-EL2, which requires new MPU initialization logic * The VMSA at S-EL1 may not be enabled by default * We boot Linux at S-EL1, so a mechanism is required to boot other systems (e.g. Xen) at S-EL2 The BASER_FVP board config is implemented on top of the BASE_FVP and Juno "VExpress" board configs. The Armv8-R64 architecture reference manual supplement can be found at https://developer.arm.com/documentation/ddi0600/latest/ Peter Hoyes (6): armv8: Disable pointer authentication traps for EL1 armv8: Ensure EL1&0 VMSA is enabled armv8: Add ARMv8 MPU configuration logic vexpress64: Add BASER_FVP vexpress board variant arm: Use armv8_switch_to_el1 env to switch to EL1 doc: Add documentation for the Arm vexpress board configs arch/arm/Kconfig | 7 ++ arch/arm/cpu/armv8/cache_v8.c | 96 ++++++++++++++++++- arch/arm/cpu/armv8/fsl-layerscape/spintable.S | 2 +- arch/arm/cpu/armv8/transition.S | 2 +- arch/arm/include/asm/armv8/mpu.h | 61 ++++++++++++ arch/arm/include/asm/macro.h | 28 +++++- arch/arm/include/asm/system.h | 39 ++++++++ arch/arm/lib/bootm.c | 40 +++++--- board/armltd/vexpress64/Kconfig | 5 +- board/armltd/vexpress64/vexpress64.c | 22 +++++ configs/vexpress_aemv8r_defconfig | 18 ++++ doc/README.semihosting | 2 +- doc/arch/arm64.rst | 3 +- doc/board/armltd/index.rst | 9 ++ doc/board/armltd/vexpress64.rst | 57 +++++++++++ doc/board/index.rst | 1 + .../{vexpress_aemv8a.h => vexpress_aemv8.h} | 63 ++++++++---- 17 files changed, 408 insertions(+), 47 deletions(-) create mode 100644 arch/arm/include/asm/armv8/mpu.h create mode 100644 configs/vexpress_aemv8r_defconfig create mode 100644 doc/board/armltd/index.rst create mode 100644 doc/board/armltd/vexpress64.rst rename include/configs/{vexpress_aemv8a.h => vexpress_aemv8.h} (83%)