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 X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 801FDC64EB1 for ; Fri, 7 Dec 2018 10:12:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DFCF2083D for ; Fri, 7 Dec 2018 10:12:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4DFCF2083D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbeLGKMz (ORCPT ); Fri, 7 Dec 2018 05:12:55 -0500 Received: from foss.arm.com ([217.140.101.70]:40920 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbeLGKMy (ORCPT ); Fri, 7 Dec 2018 05:12:54 -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 8CC2CEBD; Fri, 7 Dec 2018 02:12:53 -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 6A23D3F5AF; Fri, 7 Dec 2018 02:12:49 -0800 (PST) Subject: Re: [PATCH v16 06/16] lib: fdt: add a helper function for handling memory range property To: Will Deacon , "AKASHI, Takahiro" 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 References: <20181115055254.2812-1-takahiro.akashi@linaro.org> <20181115055254.2812-7-takahiro.akashi@linaro.org> <20181206155424.GA4422@arm.com> From: James Morse Message-ID: <681e1265-2f0c-2a62-3778-09911b2be7fc@arm.com> Date: Fri, 7 Dec 2018 10:12:47 +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: <20181206155424.GA4422@arm.com> 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, 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). Without this kdump works, but the second kernel overwrites the first as those DT properties are missing. I'll post a patch momentarily, Thanks, James