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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 E69CCC433ED for ; Tue, 20 Apr 2021 07:27:25 +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 76C4661154 for ; Tue, 20 Apr 2021 07:27:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76C4661154 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com 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: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:In-Reply-To:References:List-Owner; bh=OJu4PYgesD9M9zOxECGP1HXLX/UOFwCuI75YP+8wJ3M=; b=jUcErJ/ALz+PPnwzyigpyCPTNl XQLLOQ7VdaIlH9AHDjDDqfEoJHWUh8AUSFYw4yEw5DLbBashT2KTGdlCCYvWuOUlokcMjSXu2zHCn FeGFfNMXQDuAinpm7klW8f6OQ1hxLei1H/FGXj27CIc3zwlYG79BArFuXv2JP7IDF3aFXXf/IjO8N o++VPwxo9JkW+kh72gVEMt3edPZfA+8GL77AfhcvjP7O2zsyDE7vhCesaWxZdoDGxqP8ebMZicwLZ kfAiThWskHMq8PnmWau270a2QN4AZF7PtXepqHxItAG032PdmBKU341Wn/3YCyJ8zdf4gMnTEu8lp p2hx4yVg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYkl5-00BSQ0-3e; Tue, 20 Apr 2021 07:25:19 +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 1lYkks-00BSOR-Oc for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 07:25:06 +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:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=0IcJdBA49EWERA5RhKxSR3Np6xAuJtmub2ZLXW2kmkY=; b=Gh/2o0IVLFEAoauQzz+yMs6OHP rJkTIUKv4GPh5nvKVupjGuaRLEyiUV8aae4Nn9Yjx2oL/8LCFFR+7n5L7JvAD9iyC0aHz//YeTuHE 2CNl1idTX8mDGsDVccJUtkVa7s59lUV3WErTztz1qL5F/Aw+69DjZYpCk5G7lu6OVVl+i9l58X8rF GdBUKE7xK2cwCDnW7YC0r9BNIsupTsTe1iznglcWEFxpYD0FAUsNphwx3N9PNiE8Xs0u654Kzh+05 7qVQKLkp+wY9NxLDnfbk9eBzvm7t300D48wWLekHD1h2K+a+VWE5ul06Qav0AKdxt/Ax14FHtXAIX iuqt3I9w==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYkkn-00BsTV-Gi for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 07:25:05 +0000 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 8129D1435; Tue, 20 Apr 2021 00:24:52 -0700 (PDT) Received: from optiplex-7070.shanghai.arm.com (optiplex-7070.shanghai.arm.com [10.169.188.115]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AC8F13F85F; Tue, 20 Apr 2021 00:24:50 -0700 (PDT) From: Jaxson Han To: mark.rutland@arm.com Cc: linux-arm-kernel@lists.infradead.org, wei.chen@arm.com, andre.przywara@arm.com, jaxson.han@arm.com Subject: [boot-wrapper PATCH 0/5] Add Armv8-R AArch64 support Date: Tue, 20 Apr 2021 15:24:33 +0800 Message-Id: <20210420072438.183086-1-jaxson.han@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_002501_620583_56CDBF9F X-CRM114-Status: UNSURE ( 8.52 ) 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 Currently, we cannot boot Linux with boot-wrapper on Armv8-R AArch64: 1. The Armv8-R AArch64 profile does not support the EL3. 2. The Armv8-R AArch64 EL2 only supports a PMSA, which Linux does not support. So it's necessary to drop into EL1 before entering the kernel. 3. There is no EL2 booting code for Armv8-R AArch64 and no configuration for dropping to EL1 in boot-wrapper. These patches enable boot-wrapper booting Linux with Armv8-R AArch64: Patch 1 allows boot-wrapper to boot on more platforms. Patch 2 renames some labels as preparations for booting from lower EL. Patch 3 prepares for GICv3 initialization with EL2. Patch 4 adds necessary EL2 registers. Patch 5 adds auto-detection for Armv8-R AArch64 to drop into EL1 before entering the kernel. Refs: Arm Architecture Reference Manual Supplement - Armv8, for Armv8-R AArch64 architecture profile [https://developer.arm.com/documentation/ddi0600/latest/] Jaxson Han (5): Decouple V2M_SYS config by auto-detect dtb node aarch64: Rename labels and prepare for lower EL booting gic-v3: Prepare for gicv3 with EL2 aarch64: Prepare for booting with EL2 aarch64: Introduce EL2 boot code for Armv8-R AArch64 Makefile.am | 2 +- arch/aarch32/include/asm/gic-v3.h | 7 ++ arch/aarch64/boot.S | 105 ++++++++++++++++++++++++++---- arch/aarch64/include/asm/cpu.h | 3 + arch/aarch64/include/asm/gic-v3.h | 38 ++++++++++- arch/aarch64/psci.S | 13 ++-- arch/aarch64/spin.S | 8 +-- arch/aarch64/utils.S | 10 ++- gic-v3.c | 2 +- platform.c | 4 ++ 10 files changed, 162 insertions(+), 30 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel