From patchwork Mon Jun 30 15:01:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 32746 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EAAA1203F4 for ; Mon, 30 Jun 2014 15:04:34 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf53553594oag.1 for ; Mon, 30 Jun 2014 08:04:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=fUnjU2tDt19LWS4gblcVPaIzyFeiRh/ZGa6s1YKLEU8=; b=GyJw3pbSNJdxuoeXI6cIHJjiNlm/QrmHPNCLAnXHV+78291X+JsuKUrX0hck3xe4gS 1QyLxoBm/UBXTvRQR3559gfQEPuGgphhSTw0y1MFfaYSgnpGaZw3l1X/FMp6tKf8JvuW DjgQ0Nd1nmOnTA8mVz3ZtNbk2xa9ye/jxol8npTWbpOb75w+av90knoN1Y22y9BHFBqy joO1+Mym4fos+lOZXPubtw9YeGCO6WseF2tquebLcg7OT64wk/qp/+9o26HmosCyBuWk oCyuZ5fNXrhlJ0wYux5jqtmOlrnfwTZ6Kt9TYNq3ocEzVya5N5KsZAag0f+R7fm9QzFm +PmA== X-Gm-Message-State: ALoCoQlrsVkvAXTXIrQNGcth8kM7B2xB3JBB8Z5UimOfsLzjbw1ebD49ITTKpDpIjyC8VVGUheSI X-Received: by 10.43.114.138 with SMTP id fa10mr20559920icc.17.1404140674540; Mon, 30 Jun 2014 08:04:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.166 with SMTP id d35ls1529087qge.3.gmail; Mon, 30 Jun 2014 08:04:34 -0700 (PDT) X-Received: by 10.58.29.16 with SMTP id f16mr39661310veh.23.1404140674289; Mon, 30 Jun 2014 08:04:34 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id b5si10151505vec.50.2014.06.30.08.04.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 08:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id lf12so7690844vcb.32 for ; Mon, 30 Jun 2014 08:04:34 -0700 (PDT) X-Received: by 10.58.182.234 with SMTP id eh10mr1350633vec.41.1404140673745; Mon, 30 Jun 2014 08:04:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp146683vcb; Mon, 30 Jun 2014 08:04:33 -0700 (PDT) X-Received: by 10.68.193.100 with SMTP id hn4mr52268488pbc.50.1404140673016; Mon, 30 Jun 2014 08:04:33 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id kr6si23466552pab.60.2014.06.30.08.04.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jun 2014 08:04:33 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X1d6w-0004HX-Pz; Mon, 30 Jun 2014 15:03:14 +0000 Received: from fw-tnat.austin.arm.com ([217.140.110.23] helo=collaborate-mta1.arm.com) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X1d65-0003jl-BD for linux-arm-kernel@lists.infradead.org; Mon, 30 Jun 2014 15:02:22 +0000 Received: from e102391-lin.cambridge.arm.com (e102391-lin.cambridge.arm.com [10.1.209.143]) by collaborate-mta1.arm.com (Postfix) with ESMTP id EF45413FABF; Mon, 30 Jun 2014 10:01:57 -0500 (CDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH v6 04/21] arm64: boot protocol documentation update for GICv3 Date: Mon, 30 Jun 2014 16:01:33 +0100 Message-Id: <1404140510-5382-5-git-send-email-marc.zyngier@arm.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1404140510-5382-1-git-send-email-marc.zyngier@arm.com> References: <1404140510-5382-1-git-send-email-marc.zyngier@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140630_080221_471021_EE2D379B X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: mark.rutland@arm.com, Catalin Marinas , Will Deacon , Christoffer Dall X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: marc.zyngier@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Linux has some requirements that must be satisfied in order to boot on a system built with a GICv3. Acked-by: Christoffer Dall Signed-off-by: Marc Zyngier Acked-by: Mark Rutland --- Documentation/arm64/booting.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/arm64/booting.txt b/Documentation/arm64/booting.txt index 37fc4f6..da1d4bf 100644 --- a/Documentation/arm64/booting.txt +++ b/Documentation/arm64/booting.txt @@ -141,6 +141,14 @@ Before jumping into the kernel, the following conditions must be met: the kernel image will be entered must be initialised by software at a higher exception level to prevent execution in an UNKNOWN state. + For systems with a GICv3 interrupt controller: + - If EL3 is present: + ICC_SRE_EL3.Enable (bit 3) must be initialiased to 0b1. + ICC_SRE_EL3.SRE (bit 0) must be initialised to 0b1. + - If the kernel is entered at EL1: + ICC.SRE_EL2.Enable (bit 3) must be initialised to 0b1 + ICC_SRE_EL2.SRE (bit 0) 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.