Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp288667ybz; Tue, 21 Apr 2020 09:04:01 -0700 (PDT) X-Google-Smtp-Source: APiQypK28CYtw7yLBiREPyrRyVaoIg1thycxIJkDmJcAajOpQabuSFG/Ph8FlUtBGk3mhOsi1F/l X-Received: by 2002:a05:6402:1f6:: with SMTP id i22mr19992351edy.271.1587485041342; Tue, 21 Apr 2020 09:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587485041; cv=none; d=google.com; s=arc-20160816; b=hYFrFGx7vTk0S2lgGbHCS/ub7jVK5k2oURhgg4GSjkpNScTAG3QBYYlTYp1ktyhgw7 n0FyO8slpd+lKWzl1iq1rWnKiH1tNaOeqQ9xbSYnuudNbLpZhLibCf+LhTY4lS8ZX7P7 yEM5DquVt1Cs/g8rI+QiPIi3kj3J2/940HBIVdk8gTuihejCF6mdzELHMpV9pKRMxdsN 47Cpxc7n1TO/jwOtsNXydyqRFOUoXieNf3nEu0MFNWxqgHTrJ91TlnOwoC++7nB8gBPh ZZTDZRPW/9eG7o47WRRQlqQWCb09Gim+LRYy6ddD/YHfEbaEELltjPHkbPJj7AyEWZJa 38nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FMOKi9JN1zmL3ex+upDVJ+JPiBtToBzeS9dSmqwVosg=; b=ithNXt8VjGaeLO+zIPQZzuxomD1Jl+NGJml/hck0f74uDabnpSYfyvmBMHd+0f+9OA QGqfCD/lShUeh9FipTPYQW2+4IBjtqlb5x35VhGPK9yB1lwmljSwGboJ0TIM6s7vIkEV zjcj7jX9DlWRvBwVV2XaQLy6bUlkpDFhQWRHXLRROd+h71wwQ2aMr0VL8PlL/DtIt7Ih 9PtNBbjU1Mg5/rNPjAqos1I387lCPmo3b/WaOWMVCQH9XNnANN9+E+3kcP80+LHphZNb lgNh2555dmPZ8MwzejB3D8TSS+zCYTlLvtBUF3cLfTl+ZTmd7ONAIKvCuTvpFklGXZ1O COuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="Wv6j/tRp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si1800547ejl.164.2020.04.21.09.03.23; Tue, 21 Apr 2020 09:04:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="Wv6j/tRp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726200AbgDUQCS (ORCPT + 99 others); Tue, 21 Apr 2020 12:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725930AbgDUQCR (ORCPT ); Tue, 21 Apr 2020 12:02:17 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1222C061A10; Tue, 21 Apr 2020 09:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FMOKi9JN1zmL3ex+upDVJ+JPiBtToBzeS9dSmqwVosg=; b=Wv6j/tRpqNiXWtF1allIjgglQ wCkIn+1dSOjzx9s33cJ53XlMgapGXUtnCb87O5un+VMg1aZajWfMzSGd2TLBW8Ha6HdyQFbcmaA+v tWr5M4uIJJL8JlK8h+oeULeBZkaTITb/e+qz/iY3KKQusbXCUnh0eQyPlKeifFOAIuLwgz6GrXi+A HPLTTUh3Jh80t9DHH3VzrBbmkW8I3f09LA/iFFNnaOrM+wJl3c7CNREETRaIphmZwgMZ87zjSdxEj CHV4voJDJ7W4lRx797+SBuXSukrYpeOouAJK0WPecaqpr/j2txC5GXfdYzeLjbT4xNEP9p0Mjkw9j i4qtFisaQ==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:41646) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQvLE-0002XX-Id; Tue, 21 Apr 2020 17:01:44 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jQvL7-00079R-7Q; Tue, 21 Apr 2020 17:01:37 +0100 Date: Tue, 21 Apr 2020 17:01:37 +0100 From: Russell King - ARM Linux admin To: Ard Biesheuvel Cc: Geert Uytterhoeven , Dmitry Osipenko , Nicolas Pitre , Arnd Bergmann , Eric Miao , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Marek Szyprowski , Chris Brandt , Linux ARM , Linux-Renesas , Linux Kernel Mailing List Subject: Re: [PATCH v5] ARM: boot: Obtain start of physical memory from DTB Message-ID: <20200421160137.GE25745@shell.armlinux.org.uk> References: <20200415153409.30112-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 05:19:40PM +0200, Ard Biesheuvel wrote: > On Wed, 15 Apr 2020 at 17:34, Geert Uytterhoeven > wrote: > > > > Currently, the start address of physical memory is obtained by masking > > the program counter with a fixed mask of 0xf8000000. This mask value > > was chosen as a balance between the requirements of different platforms. > > However, this does require that the start address of physical memory is > > a multiple of 128 MiB, precluding booting Linux on platforms where this > > requirement is not fulfilled. > > > > Fix this limitation by obtaining the start address from the DTB instead, > > if available (either explicitly passed, or appended to the kernel). > > Fall back to the traditional method when needed. > > > > This allows to boot Linux on r7s9210/rza2mevb using the 64 MiB of SDRAM > > on the RZA2MEVB sub board, which is located at 0x0C000000 (CS3 space), > > i.e. not at a multiple of 128 MiB. > > > > Suggested-by: Nicolas Pitre > > Signed-off-by: Geert Uytterhoeven > > Reviewed-by: Nicolas Pitre > > Reviewed-by: Ard Biesheuvel > > Tested-by: Marek Szyprowski > > Tested-by: Dmitry Osipenko > > This is ready to go into the patch system, no? > > The sooner Russell picks it up, the sooner I can respin my patches > that go on top. This seems to be a particularly risky change (it's already been subject to various failures for people) so I do not intend to rush to pick it up. In any case, Masahiro Yamada has resubmitted a patch to sort out the libfdt builds that he's been trying to get merged for some time now, so I'm going to be giving that priority. Your change conflicts with this libfdt build change. So, I think all in all, it needs to spend a bit longer being provenly tested before I merged it (and eventually fixed up for the libfdt change), and I don't think merging it so it appears in linux-next will help with that. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up