Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2623390pxb; Tue, 24 Aug 2021 03:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSGJXdv80mVsROrWQVgUMmkCuI//GuCQSqK5UwHePHcsvzuasf6h9jwcvOBfz/M1NBM+zT X-Received: by 2002:a92:c841:: with SMTP id b1mr26766184ilq.300.1629802244563; Tue, 24 Aug 2021 03:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629802244; cv=none; d=google.com; s=arc-20160816; b=KTqplFiLrkRyQBNhesTMmgFoIReBrdTtufsANyQiA1R80OmvYq9arPOaaj6ChglwBY Qt6OzTCkEflSAgTp96a/RNxUtqtfd2Q6DwpWqvBxQVMROulQP9Tjm4GYoUcykHdrZc31 HMxXRqF/+iTfGprhEF4Xsv2OwFi02q1FJxHAHky9Fz0UaEMFlPtA+ey/eGpAMIaSq4nv T/nt/7AX0nqnczcomprjlGkdv6zjjgoJRazinE7mXwdcMgd7PWke47aytq8Q9dI3DR+H hi2AwFAFh30qCypWJpJJrIb4uHJ7KRnVQvB+1UPNlWV+SlmaMu4z3L4eyHPyd6MOWkYH zuqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Xm3bX+5lNVV6V60w4xDm5n0ouJswyXiHAFGLvLHVKFo=; b=vVUHmxfy4LCYnpcXpsVHmrwmNedYXfHAa1oPZn56iB0myM6LnprLJIlMurxZEeErI0 /xNgIdGeKQEJESIHwdLd9PJjHs2LW462HTvpz2T0LFgFeKIYebAl5UEfprbfEqv0rfF6 l+0PVT2jpQLT/4Y78pdzT40/KTtnRkiha5GtrZcYQNcx+j+YA+QX8271D2MZHwod6yJE 9Wrz4fsHGs2NblbGXezmiCDBhySZfa2Yk+nB88IyGS6VUBySKaVzrkgH2vSNosH3yCwI y+aOOGup+9LWTRFzUsXbFh1wgzYUrSb+JtVbYCglFenVANfNdLGY1WZApXreels2LX9l j/zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si21431270ios.94.2021.08.24.03.50.32; Tue, 24 Aug 2021 03:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236379AbhHXKtu (ORCPT + 99 others); Tue, 24 Aug 2021 06:49:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:36980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236365AbhHXKtt (ORCPT ); Tue, 24 Aug 2021 06:49:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0597C61248; Tue, 24 Aug 2021 10:49:03 +0000 (UTC) Date: Tue, 24 Aug 2021 11:49:01 +0100 From: Catalin Marinas To: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Will Deacon , Mark Rutland , Ard Biesheuvel , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, kernel-team@android.com Subject: Re: [PATCH 5/5] arm64: Document the requirement for SCR_EL3.HCE Message-ID: <20210824104900.GB623@arm.com> References: <20210812190213.2601506-1-maz@kernel.org> <20210812190213.2601506-6-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210812190213.2601506-6-maz@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 12, 2021 at 08:02:13PM +0100, Marc Zyngier wrote: > It is amazing that we never documented this absolutely basic > requirement: if you boot the kernel at EL2, you'd better > enable the HVC instruction from EL3. > > Really, just do it. > > Signed-off-by: Marc Zyngier > --- > Documentation/arm64/booting.rst | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst > index a9192e7a231b..6c729d0c4bc2 100644 > --- a/Documentation/arm64/booting.rst > +++ b/Documentation/arm64/booting.rst > @@ -212,6 +212,11 @@ Before jumping into the kernel, the following conditions must be met: > - The value of SCR_EL3.FIQ must be the same as the one present at boot > time whenever the kernel is executing. > > + For all systems: > + - If EL3 is present and the kernel is entered at EL2: > + > + - SCR_EL3.HCE (bit 8) must be initialised to 0b1. > + > For systems with a GICv3 interrupt controller to be used in v3 mode: > - If EL3 is present: I'll queue this patch only for now. A nitpick, I think we should move "For all systems" and "If EL3 is present..." above the lines describing the SCR_EL3.FIQ requirement (I can make the change locally). -- Catalin