From patchwork Wed Mar 11 16:00:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 45686 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 81BE7214BF for ; Wed, 11 Mar 2015 16:00:53 +0000 (UTC) Received: by lbvn10 with SMTP id n10sf7507520lbv.1 for ; Wed, 11 Mar 2015 09:00:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=3aTNxvIKynaYfw34++RZIcWV+L8F/M31QLZa31lzQho=; b=QVe6AmskY0CsfkjJo17yPHxVeFVva7J63IWZou7iwuVdUnRm0HX8hLtqiSFc28Ys3K IIJsjk2W0U4F/Ccx4x6NBk03y46s5Ah7y7IteYGHfp7JXSB3dQK3TNwYsl6jb/Ckb/Xz NQjxM07IQ7/2JKqVgwEE3yMrBgjfoMSsSykWTar1o2Kj3u/q1bfaUoXomjdAq+zfW72G m58JD3SBKOUhEHqNk6cXRux2qJH/Oiiao3lfnA/qS07tRYH5zCfUvvqlG0OIOpq+rD4D d+yg1H8ThPCPPuFy36jRgNLlyw4G16OP+cG5b6Nr20+d4npEug2NWmovf4PuvZH98O2I oQlw== X-Gm-Message-State: ALoCoQnuIiGpB0MFxH1tzQ2W/vl1nusc2Os880UF6gAE+E51BQCtQd10us02lJFXBflHDWPn7z0s X-Received: by 10.112.40.81 with SMTP id v17mr1706867lbk.5.1426089652500; Wed, 11 Mar 2015 09:00:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.82 with SMTP id u18ls190815lal.79.gmail; Wed, 11 Mar 2015 09:00:52 -0700 (PDT) X-Received: by 10.112.39.69 with SMTP id n5mr35255342lbk.1.1426089652359; Wed, 11 Mar 2015 09:00:52 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id o3si2637027laf.47.2015.03.11.09.00.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 09:00:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labgd6 with SMTP id gd6so9786024lab.6 for ; Wed, 11 Mar 2015 09:00:52 -0700 (PDT) X-Received: by 10.152.197.34 with SMTP id ir2mr35169127lac.36.1426089652092; Wed, 11 Mar 2015 09:00:52 -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.112.35.133 with SMTP id h5csp2869367lbj; Wed, 11 Mar 2015 09:00:51 -0700 (PDT) X-Received: by 10.202.9.132 with SMTP id 126mr28938147oij.77.1426089640153; Wed, 11 Mar 2015 09:00:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cm5si6042889pdb.228.2015.03.11.09.00.39; Wed, 11 Mar 2015 09:00:40 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752074AbbCKQAi (ORCPT + 5 others); Wed, 11 Mar 2015 12:00:38 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:39713 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbbCKQAi (ORCPT ); Wed, 11 Mar 2015 12:00:38 -0400 Received: by wiwl15 with SMTP id l15so40270975wiw.4 for ; Wed, 11 Mar 2015 09:00:37 -0700 (PDT) X-Received: by 10.180.77.110 with SMTP id r14mr58947266wiw.89.1426089636309; Wed, 11 Mar 2015 09:00:36 -0700 (PDT) Received: from ards-macbook-pro.local ([213.143.60.209]) by mx.google.com with ESMTPSA id l6sm5990041wjx.33.2015.03.11.09.00.33 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Mar 2015 09:00:35 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, robh@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, linux@arm.linux.org.uk, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org Cc: Ard Biesheuvel Subject: [PATCH v2 3/5] arm64: Documentation: clarify Image placement in physical RAM Date: Wed, 11 Mar 2015 17:00:18 +0100 Message-Id: <1426089620-9459-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1426089620-9459-1-git-send-email-ard.biesheuvel@linaro.org> References: <1426089620-9459-1-git-send-email-ard.biesheuvel@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The early init code maps the kernel image using statically allocated page tables. This means that we can only allow Image to be placed such that we can map its entire static footprint using a single table entry at all but the lowest level. So update the documentation to reflect that the Image should not cross a 512 MB boundary, which ensures the above on both 4k and 64k pages kernels. Reviewed-by: Mark Rutland Signed-off-by: Ard Biesheuvel --- Documentation/arm64/booting.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/arm64/booting.txt b/Documentation/arm64/booting.txt index ab5a90adece3..5949bdbe7aac 100644 --- a/Documentation/arm64/booting.txt +++ b/Documentation/arm64/booting.txt @@ -115,8 +115,9 @@ The Image must be placed text_offset bytes from a 2MB aligned base address near the start of usable system RAM and called there. Memory below that base address is currently unusable by Linux, and therefore it is strongly recommended that this location is the start of system RAM. -At least image_size bytes from the start of the image must be free for -use by the kernel. +The physical memory region consisting of image_size bytes counting from +the start of the image must be free for use by the kernel, and must not +cross a 512 MB physical alignment boundary. Any memory described to the kernel (even that below the 2MB aligned base address) which is not marked as reserved from the kernel e.g. with a