Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp312749imu; Mon, 10 Dec 2018 22:36:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/UU7ox9ChKjkKs/eBHyBkmK4ShfCL1Uo5Me5kTE2jjdjbld3od3rCahXuY53LZuL55p117l X-Received: by 2002:a17:902:8641:: with SMTP id y1mr14886907plt.159.1544510206617; Mon, 10 Dec 2018 22:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544510206; cv=none; d=google.com; s=arc-20160816; b=riVuEPT2lIa2Y4vr37rJM/7MLfX3Ol6TiB2jJEy3ywZ0SvSSkQWqrTwP6u8rjp6atb zXFohdD4nuOGtL/yxJehi1FnVnkfRSTFKvhTr7G/uVpcizqaKzN+ahGEz520+tobFRAW bS4XE6lYSEzP5TifTl+1DIDXlFoZZOV85OK4IPMVnzjRb2oJpjNWhhptJfK5kdRAwIiN 6oSVbXlhtCiAkHAGbA3U8+64IVRaHAqJLpis4DwMfAqL3rcZuPv80Txr6La8HpA0vAxP zug334x3ipWo9sytohXUFsFME0aJHNjRQePF/a45cWhPun1b1a/E2d1Mz1LjRi6rYg+v DMgg== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Ygsu3tUgZUUY5/uDHXTU/n86CTw4PpyergSMBneeTmM=; b=QdS5Oq0DC/f0lEFUd5UXRUxdSlrK48R7H5+B7hDvyYfLSKd7Op7C+aCwpZTzrmPka5 n/3eI92AMAA3VveGwOFqCA+E6RRw4JDAiwLTd/68SGt9vctWAUXBAKqvdFsS9Cv7dTEJ CFFQs4mdEw3LwISgwF+AejMnWowKboR0bF0rage4RsSC5lPxnXAHSjODmi/CFEGBG0wT sRt1zrCgA6qvB4sW8g3n1gi4Zr13snqq/KwtOPHWer29InKLcO84p2AsM5056P4Hk2fT sLfeil0Doh1dENRLSoiUCMScC+lllbD2usGDzeZdeDVcNUokiYIlBGxFHT2vrs01oxZ9 kSzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W9oPWpRk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si11341893pgk.445.2018.12.10.22.36.30; Mon, 10 Dec 2018 22:36:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W9oPWpRk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728777AbeLKGOI (ORCPT + 99 others); Tue, 11 Dec 2018 01:14:08 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:50324 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726699AbeLKGOH (ORCPT ); Tue, 11 Dec 2018 01:14:07 -0500 Received: by mail-it1-f196.google.com with SMTP id z7so1899488iti.0 for ; Mon, 10 Dec 2018 22:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ygsu3tUgZUUY5/uDHXTU/n86CTw4PpyergSMBneeTmM=; b=W9oPWpRkSetpvqu2JArL5IJBL+9XepYEAjTCTvmqSm4ceHKoC5yRRsJfOT+a7pl7CZ E8n2NRXFGHCRap+GCN3HgBr1xCy2gvFFGlIN9tn+k80yJUvwdO2oPhVZaxrYpnJfZb+3 OJJ1OHehxBR9+TE1JoZ0Op5/u0P2z2xNW1f2c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=Ygsu3tUgZUUY5/uDHXTU/n86CTw4PpyergSMBneeTmM=; b=fmUMMTcjKxXs4TCt9b+yQ09SdK3WFClc1IBqu9RjxY/8mug/4ck6NMXjDr+D0qHdU0 sixend4jshtBdEtgSsUjInrdeBZK0jYjvBFhsO0clXapd1e2g5d5Nf5LQZrkMfCXt9v/ KurmnnAlfISou9hC6VyoceGHLAeZ/JwlyodVQbvKX/JJf78AWlFv3tOpsV0qSniksCiH UM3rTtvWSxFi+98KOAoeci+HMzb+ojMx7CblLoQp+xbh9QhAHxGbNqfzxQA2dcii1oYT YpaLJF0RPwDHQ/tShwe7jGR72TwAco8z+9g+xOL5GT90EiJuH0GU5oh7Qc3YTvCZqFhm agxg== X-Gm-Message-State: AA+aEWZkfJ2UtYOi4cClG/KCgaVbKUxNMqCmcp57TwILyxFxcNKvFYKz wkkaRoPgW2ojs56ZVBhWD6XXOw== X-Received: by 2002:a24:9fc1:: with SMTP id c184mr1162993ite.8.1544508846272; Mon, 10 Dec 2018 22:14:06 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id 196sm669244itu.37.2018.12.10.22.14.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 22:14:05 -0800 (PST) Date: Tue, 11 Dec 2018 15:17:16 +0900 From: "AKASHI, Takahiro" To: James Morse Cc: Will Deacon , Rob Herring , Catalin Marinas , David Howells , Vivek Goyal , Herbert Xu , David Miller , dyoung@redhat.com, Baoquan He , Arnd Bergmann , Martin Schwidefsky , Heiko Carstens , prudo@linux.ibm.com, Ard Biesheuvel , bhsharma@redhat.com, kexec@lists.infradead.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , Frank Rowand , devicetree@vger.kernel.org Subject: Re: [PATCH v16 06/16] lib: fdt: add a helper function for handling memory range property Message-ID: <20181211061715.GF21466@linaro.org> Mail-Followup-To: "AKASHI, Takahiro" , James Morse , Will Deacon , Rob Herring , Catalin Marinas , David Howells , Vivek Goyal , Herbert Xu , David Miller , dyoung@redhat.com, Baoquan He , Arnd Bergmann , Martin Schwidefsky , Heiko Carstens , prudo@linux.ibm.com, Ard Biesheuvel , bhsharma@redhat.com, kexec@lists.infradead.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , Frank Rowand , devicetree@vger.kernel.org References: <20181115055254.2812-1-takahiro.akashi@linaro.org> <20181115055254.2812-7-takahiro.akashi@linaro.org> <20181206155424.GA4422@arm.com> <681e1265-2f0c-2a62-3778-09911b2be7fc@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <681e1265-2f0c-2a62-3778-09911b2be7fc@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org James, On Fri, Dec 07, 2018 at 10:12:47AM +0000, James Morse wrote: > Hi Akashi, Will, > > On 06/12/2018 15:54, Will Deacon wrote: > > On Thu, Dec 06, 2018 at 08:47:04AM -0600, Rob Herring wrote: > >> On Wed, Nov 14, 2018 at 11:52 PM AKASHI Takahiro > >> wrote: > >>> > >>> Added function, fdt_setprop_reg(), will be used later to handle > >>> kexec-specific property in arm64's kexec_file implementation. > >>> It will possibly be merged into libfdt in the future. > >> > >> You generally can't modify libfdt files. Any changes will be blown > >> away with the next dtc sync (there's one in -next now). Though here > >> you are creating a new location with fdt code. lib/ is just a shim to > >> the actual libfdt code. Don't put any implementation there. You can > >> add this to drivers/of/fdt_address.c for the short term, but it still > >> needs to go upstream. > >> > >> Otherwise, the implementation looks fine to me. > > > > I agree, but I don't think there's a real need for us to hack > > drivers/of/fdt_address.c in the meantime -- let's just target upstream > > and not carry this in the kernel. > > > > Akashi -- for now, I'll drop the kdump parts of this series which rely > > on this helper. The majority of the series is actually independent and > > can go in as-is. > > > > I've pushed out a kexec branch to the arm64 tree for you to take a look > > at: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=kexec > > I gave this a quick spin. Without the elfcorehdr/usable-memory-range arm64 needs > to explicitly forbid kdump via kexec_file_load. (like powerpc does already). Thank you for pointing this out. > Without this kdump works, but the second kernel overwrites the first as those DT > properties are missing. > > I'll post a patch momentarily, Fine, but anyhow I'm going to submit a new version (*without* kdump), I will fix the issue along with others. -Takahiro Akashi > > Thanks, > > James >