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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 0952EC433B4 for ; Thu, 1 Apr 2021 18:13:24 +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 9B45D60241 for ; Thu, 1 Apr 2021 18:13:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B45D60241 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=KSsx+sl9QHXRHhV98kqSRP2VPvG+7dght5p9GZEnEhU=; b=rOk6gUtaLFJHJFlgvF/kdei3NV TBqe9xV75gFxrwQVtrv5vq3vprlQ18P9PgiiOPC02wnw37dgTtP9T+0iJwrIl90sAq50EJUj3bW4c 1/VBDSg8g5UYWKHbEdJ1d7czm2VAk/x1U0ydHvowQFAWHYb31CH3m+Bi7UUV3+iTDlX7dlrc2L2F5 0TOSoe2BQqbH91C9bmLTRlfnoq9E08AFuadarE/kTZJQ2reNgIWfMP7AFNhAe+Mvv3VJDYH4PVEiA 3IE7+hu2xUfwHqNgoc0jKNUPCNzcsld13gl8poNkCWqd8gR9AtLRh5PlLX+1XegX2wGv/kXLyva5w lpkfZUvQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lS1nW-00Acvq-Ra; Thu, 01 Apr 2021 18:12:02 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lS1nQ-00AcuB-S3 for linux-arm-kernel@lists.infradead.org; Thu, 01 Apr 2021 18:11:59 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1BFA60FE6; Thu, 1 Apr 2021 18:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617300713; bh=aHsPNJptWOOd5ZEnQjaYIsO1s9LwcaEkNp+k7tOP9sQ=; h=From:To:Cc:Subject:Date:From; b=uBbw+2WIV0ZAA5RU4etqfEl5t2pumn1nuWqSuWAm4XAnPCTwQZAxip+bRNXx8NSFL tYT79acIKankOVOi4g1+NVkk3xNHKAYXG2FwsNCMnKSvln+iVGgDf0QsR0N7WhjKkG Bs2M5cWQSytjfOm/I+fPJmfuBLZh+zfJ92UTeG25EK2WMy030MPcaKA3AG9B4oRd+j JfQ8y5GcDLhU+s53O5WcO8p8NCEj5E+l+1ub8GHyOVmsCYVZeAJ5PJzD9vS5hIAq9X VLC4JrJrXnBUF4szmTE3DA3y4lsJmgQtp428rVM5+9uR4w86aok/WrHfvuGe03xLzC Cnlbs+TJN0mEw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Marc Zyngier , Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 0/4] arm64: Booting clarifications and fine grained traps setup Date: Thu, 1 Apr 2021 19:09:38 +0100 Message-Id: <20210401180942.35815-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210401_191157_775698_7C5B8D4F X-CRM114-Status: GOOD ( 11.26 ) 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 there are a number of areas where we are not explicit about how system registers should be configured when booting the kernel, provide more detailed guidance to help ensure people get things right. I'm not entirely happy with the wording on use of specified reset values so it is a separate patch at the end, I worry that the requirement is too strict. This was triggered by noticing that it was in spec to leave fine grained traps to EL2 enabled so explicitly disable them at boot, this is sent as part of the same series since doing so means we require that EL3 provide access to fine grained traps in the same document. v2: - Pull booting and FGT setup into a single series. - Require system registers at or below the level the kernel is entered to be initialised, not just those at that level. - Rather than documenting the desired EL2 setup for FGT add a general statement about how we expect registers to be set up. - Reorder register initialisation in el2_setup.h. - Document requirement for SCR_EL3.FGTEn to be 1. Mark Brown (4): arm64: Document requirements for fine grained traps at boot arm64: Disable fine grained traps on boot arm64: Require that system registers at all visible ELs be initialized arm64: Document values for system registers on boot Documentation/arm64/booting.rst | 15 ++++++++++++--- arch/arm64/include/asm/el2_setup.h | 21 +++++++++++++++++++++ arch/arm64/include/asm/sysreg.h | 6 ++++++ 3 files changed, 39 insertions(+), 3 deletions(-) base-commit: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0 -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel