From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 00B90C2BA19 for ; Thu, 23 Apr 2020 09:49:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 955582077D for ; Thu, 23 Apr 2020 09:49:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="b1TATvuq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 955582077D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HvrTfdKGyxH8D9o4crXLAdGLwAHVMYVTBpVToxxJKMs=; b=b1TATvuqbiTEIS /cVpODa38qtjjZzcoY1utEAreJ3b4fTi45CtdNDw9uKoPrxRVtLP50hf1GYGFKEF1EQhlVAdLoRsO krCgOyYdyrhk2hTVEzl7exquG6Cyui+7zwT8dTAkUuhZOZ7RWQWjTmJfs7vLR1iTXZVLyPZFCXpS0 VlOP/1NcsynvlB11N5uYP+UQp3JY1G0Xi1n3HSNZZpawMetWRt02SJMqwWc4pJBeMBsmmORcMg2Hk VMy5iIu3xC/bltwKEAPwWrdbPqLjouzPCZO1pFPCcCVNwaGypghZprKrjCG0l7Kw/4ZV12rB9MbLK 7VZZ6qOyjw82W+OTrIRQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jRYTx-0007th-Mg; Thu, 23 Apr 2020 09:49:21 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jRYTt-0007su-NG for linux-arm-kernel@lists.infradead.org; Thu, 23 Apr 2020 09:49:19 +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 D937931B; Thu, 23 Apr 2020 02:49:16 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.30.95]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B18433F68F; Thu, 23 Apr 2020 02:49:15 -0700 (PDT) Date: Thu, 23 Apr 2020 10:49:04 +0100 From: Mark Rutland To: Will Deacon Subject: Re: [PATCH] arm64: docs: Mandate that the I-cache doesn't hold stale kernel text Message-ID: <20200423094904.GA45833@C02TD0UTHF1T.local> References: <20200423093658.10602-1-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200423093658.10602-1-will@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200423_024917_800346_09CAF57A X-CRM114-Status: GOOD ( 16.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , kernel-team@android.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Apr 23, 2020 at 10:36:58AM +0100, Will Deacon wrote: > Although we require that the loaded kernel Image has been cleaned to the > PoC, we neglect to spell out the state of the I-cache. Although this > should be reasonably obvious, it doesn't hurt to be explicit. > > Require that the I-cache doesn't hold any stale entries for the kernel > Image at boot. > > Cc: Mark Rutland > Cc: Catalin Marinas > Signed-off-by: Will Deacon This was certianly the intent, so: Acked-by: Mark Rutland Thanks, Mark. > --- > Documentation/arm64/booting.rst | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst > index a3f1a47b6f1c..d063c05d5fb0 100644 > --- a/Documentation/arm64/booting.rst > +++ b/Documentation/arm64/booting.rst > @@ -173,7 +173,8 @@ Before jumping into the kernel, the following conditions must be met: > - Caches, MMUs > > The MMU must be off. > - Instruction cache may be on or off. > + The instruction cache may be on or off, and must not hold any stale > + entries corresponding to the loaded kernel image. > The address range corresponding to the loaded kernel image must be > cleaned to the PoC. In the presence of a system cache or other > coherent masters with caches enabled, this will typically require > -- > 2.26.1.301.g55bc3eb7cb9-goog > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel