From patchwork Wed Mar 18 17:05:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 45978 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3E4532153C for ; Wed, 18 Mar 2015 17:09:37 +0000 (UTC) Received: by widex7 with SMTP id ex7sf8874383wid.2 for ; Wed, 18 Mar 2015 10:09:36 -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 :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=8ytlYjJFAgvvlKxFLpLm86Vt4e26yMEs8KiT2fIXxvk=; b=jHRQXsaIJkAvhhw0ePH1IYuQXLEz1o2tUpqdittL68WoRnl7ZJtnvhwzyHQI6hW3Hh S2HYFf/iBphGGb0wPCfiakQgZ4WoCRczMnWIlRMc8VTq2kEENr579l99Kd4LA9cA92IN uSQZlfTYSmxJlO7LxXZ0MSXi9AyaHhuzM4Cbp/0lVz1hjMWd52LhJVUQjlusfv3pAIwN VmU6Kn+UWliYOmRTCIieF0GbxRzd5ZKZhj0eD9Tigrs9UdG1i1c2ReoiDB1GRV6tv6Jv 9No4D2iPWxD30ldtgiv7+JO1QZZMLDsVnQock86s6cwX4rkuYuf+7OqKUpt2XrJ/raXk GXzQ== X-Gm-Message-State: ALoCoQkHE9s0o3KFqbwJZw9jzEL0LXZUPQuoVpedaS4oaRXuSPy6n7CdTEXodBNHPm7crEO9JhIP X-Received: by 10.152.87.141 with SMTP id ay13mr7188094lab.3.1426698576507; Wed, 18 Mar 2015 10:09:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.135 with SMTP id t7ls180269lag.45.gmail; Wed, 18 Mar 2015 10:09:36 -0700 (PDT) X-Received: by 10.152.28.233 with SMTP id e9mr65185929lah.3.1426698576229; Wed, 18 Mar 2015 10:09:36 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id z9si13341385lbw.159.2015.03.18.10.09.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 10:09:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbbsy1 with SMTP id sy1so34626853lbb.1 for ; Wed, 18 Mar 2015 10:09:36 -0700 (PDT) X-Received: by 10.112.130.195 with SMTP id og3mr64150649lbb.112.1426698576086; Wed, 18 Mar 2015 10:09:36 -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 h5csp1287404lbj; Wed, 18 Mar 2015 10:09:35 -0700 (PDT) X-Received: by 10.66.150.165 with SMTP id uj5mr123572352pab.54.1426698574147; Wed, 18 Mar 2015 10:09:34 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id i7si37232206pat.6.2015.03.18.10.09.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 10:09:34 -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 1YYHR7-0000Yg-Ku; Wed, 18 Mar 2015 17:07:17 +0000 Received: from mail-wi0-f182.google.com ([209.85.212.182]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YYHPn-0008Fa-Nh for linux-arm-kernel@lists.infradead.org; Wed, 18 Mar 2015 17:05:56 +0000 Received: by wixw10 with SMTP id w10so45613100wix.0 for ; Wed, 18 Mar 2015 10:05:32 -0700 (PDT) X-Received: by 10.180.13.146 with SMTP id h18mr8418146wic.73.1426698332316; Wed, 18 Mar 2015 10:05:32 -0700 (PDT) Received: from ards-macbook-pro.local ([84.78.25.113]) by mx.google.com with ESMTPSA id dc9sm3972217wib.9.2015.03.18.10.05.30 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Mar 2015 10:05:31 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, will.deacon@arm.com, mark.rutland@arm.com, catalin.marinas@arm.com, robh@kernel.org Subject: [PATCH v3 3/5] arm64: Documentation: clarify Image placement in physical RAM Date: Wed, 18 Mar 2015 18:05:06 +0100 Message-Id: <1426698308-726-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1426698308-726-1-git-send-email-ard.biesheuvel@linaro.org> References: <1426698308-726-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150318_100556_059101_FC972B99 X-CRM114-Status: GOOD ( 13.06 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.182 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.182 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel 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: 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.217.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 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