Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp469414imu; Tue, 11 Dec 2018 02:10:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/XqvVf2zrJvT//5/DH9qA9SRB9p7evx/a9XqgaGJWMuNb0X7BM3EZbuz4lqavtcurVIS4jA X-Received: by 2002:a63:f111:: with SMTP id f17mr14037134pgi.236.1544523039121; Tue, 11 Dec 2018 02:10:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544523039; cv=none; d=google.com; s=arc-20160816; b=0T3NRbr6oyDJisgueuwM7VcbIB50ll4vzzZJbZToXcaK6lESSSUswbBzBU8HrlJoKq w8nE6OG+6haA4kWSe9Kf0RNLx06Ke4D1l18LUfyM9m48fVphoMPdVQoC7CwlZn0mRLdn Lj93UDA/6NfuZTacBECql9TFu3ZR5f4Kcrx3JjCrW4d1ayE/yfUyIvNmQjSoc4svMXMo IwX3FwYTPYHQBZ8qmG7gj3sDkBeZDZq+f37OqIGWDiAwbWWpP28ljZ3W+KnfxMtUKwzJ w+jYgNZ4hT0W0e+0WV07DbTMKjSSH388LT0TRf/02f9nyMBNJiM8OlRfzcxIWrow5WxG MdKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject; bh=HEBxnwefysrOhT7+/H8q3b4hbYY2XtgYDn7kyHXFs5I=; b=tkh3qikirZtUKTIsTZ+eKR/UfMHJqNgJduNZJu1IFez5c+bIu2yw7AlKjLSebZTes1 oJMAXeDDBCOxuIvEQOBLIns8NTNF3kfSY14gcmxAaPfCJrgHpXFMZ2gc9SQ6ZEVhIhmE gtUFgchD7LKO4xdWY+ivsyb2qyzhYDGee/4ejI7+wJD/gz70XHBE+MnqKqzUMlOWOY/v bsat7t54NIliEBgE6w/J701bxjoj76n1BJFPvBev7MpzksDSs0Y3a5hmHGFdkVpA6khW R5Mq+upw7ujB4oAi/pNXauk/FDtBejmXoqR9zMAZdgZ5fAPCiAkkGBeu9jbbqSDTFMnR BMBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 133si12703319pfc.61.2018.12.11.02.10.23; Tue, 11 Dec 2018 02:10:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbeLKKJT (ORCPT + 99 others); Tue, 11 Dec 2018 05:09:19 -0500 Received: from foss.arm.com ([217.140.101.70]:43072 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbeLKKJO (ORCPT ); Tue, 11 Dec 2018 05:09:14 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EAFEF15AD; Tue, 11 Dec 2018 02:09:12 -0800 (PST) Received: from [10.1.196.105] (eglon.cambridge.arm.com [10.1.196.105]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 71C973F59C; Tue, 11 Dec 2018 02:09:09 -0800 (PST) Subject: Re: [PATCH v16 06/16] lib: fdt: add a helper function for handling memory range property To: "AKASHI, Takahiro" , Will Deacon 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> <20181211061715.GF21466@linaro.org> Cc: 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 From: James Morse Message-ID: <654bffae-7edb-bda4-d01d-99a8b455b186@arm.com> Date: Tue, 11 Dec 2018 10:09:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181211061715.GF21466@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Akashi, On 11/12/2018 06:17, AKASHI, Takahiro wrote: > On Fri, Dec 07, 2018 at 10:12:47AM +0000, James Morse wrote: >> 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. I had a quick look at the arm64 for-next/core branch. Will has queued the non-kdump parts of this series. If you have changes, they need to be against the arm64 tree. Thanks, James