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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 11561C4332F for ; Mon, 14 Nov 2022 13:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=nwRrTjdkI17+rWKjiscxVKM5L9yKywRqmUGx2eSsyQc=; b=LWihQvTHVqtlkQ Lfu2/3zpr/HcHBAWyyvT9j+ZgCAJUmMUID9wDB2E2plwQt16hCqeDpkwIEgLNLjGgaNknL8H6WHnE tbeoaJBj6NE9fthbiR9Yf3oP37QniGL0qFl2fpK5MVxJcZipPhBUQ5aQDmTkx+kO1renx+JGE48wX 5cJxgiNUN+sFxH+8iR3dsgSFh1QY6rUqOLtPVheTpdfnQKKuhmSwNqiC3B8+H/0K1sq7d9wxUeRwA 6VRum5dINbCPtf6m7SA/A1cr+vrvLJ5WdOFvzydTNlP+vRW+OV1Hqhe8ZdnBURXcaf8CwuqREvWjR IGhA5DFZToDaGcnpd4FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouZif-001Kif-6g; Mon, 14 Nov 2022 13:41:49 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouZei-001I1h-Ji for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2022 13:37:46 +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 9056A23A; Mon, 14 Nov 2022 05:37:43 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.70.96]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2FCAA3F73D; Mon, 14 Nov 2022 05:37:36 -0800 (PST) Date: Mon, 14 Nov 2022 13:37:30 +0000 From: Mark Rutland To: Ard Biesheuvel Cc: catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, anshuman.khandual@arm.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] arm64: booting: Require placement within 48-bit addressable memory Message-ID: References: <20221114115810.1369005-1-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221114_053744_726230_A93B123A X-CRM114-Status: GOOD ( 17.54 ) 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 On Mon, Nov 14, 2022 at 02:33:52PM +0100, Ard Biesheuvel wrote: > On Mon, 14 Nov 2022 at 13:10, Mark Rutland wrote: > > > > On Mon, Nov 14, 2022 at 12:58:10PM +0100, Ard Biesheuvel wrote: > > > + Bit 3-4 Kernel physical placement > > > > > > 0 > > > 2MB aligned base should be as close as possible > > > to the base of DRAM, since memory below it is not > > > accessible via the linear mapping > > > 1 > > > + 2MB aligned base such that base plus image_size is > > > + entirely within the 48-bit addressable range > > > > This seems to assume text_offset is zero (which is the case today, but this is > > the first part of booting.txt that assumes that); as a matter of policy are we > > sure that we'll never use a non-zero offset again? If so, we probably want to > > mention that in the "header notes" section, or come up with some wording to > > include it here. > > > > How about: > > 2MB aligned base such that all image_size bytes > counted from the start of the image are within > the 48-bit addressable range > > ? Sounds good to me, thanks! Mark. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel