Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1941036ybk; Thu, 21 May 2020 20:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhVWGiCuE/qgpo3H6qVxY4dS1GA5Gvk5JXvzpv1IqmxNGKap8HOcjjCANyT/Q5kh8OGB5p X-Received: by 2002:a17:906:1dce:: with SMTP id v14mr6660358ejh.244.1590117979013; Thu, 21 May 2020 20:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590117979; cv=none; d=google.com; s=arc-20160816; b=utw+zapWoPUqDIgIiI9YsKTvSIYXl4b2HL7JSGFu8Ksz0pillYZhajaCAuso1v4000 M5xCtYISamb+pQngjuY9ZU5K2DoUuSNw5+WRpLKzXVtQWPJx3InLCGnxDEB0koZ1lqqb GW9m6ckkKOKsKWhUchCo353i4ffUf+6f8Xm3XUg7ovrG8Qd0dsG6uBM6EVef2b4/ixuC mP5UipWVmT+OoqBZ1KJJcHHPYugKxqEiHZ0bOS5p08bGVQbgH1W40VqC5iljsQV2HUMV qv3wnS3ted/yfbuUd3lT+QMscSzwJ8/WaO3gE/7Ajv6onGWuoOZOcXrVcXb2zHP7XcAr t2FQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=LXKkaiSq6uw1Z1A8bYnlUUc+scjC3cYiApwNbTnu48k=; b=o7FEzrPiycUNiBK79ipHcG80qSlnUefcrhdoyQpG/zsW5KH3kWjLs5Ole5zq5m9oAw nVf7SCL8uxmlhz7CWMcAYwaWbOiD4erM9ayLOm+kM7gLpQzce43VAcs4R6SlrW+kR8G5 VxmkYd6g52oAYdvaUNMcQuMnGQhJdn5k9LxE9Ffe5PFPJ8PD+TWug151cokZ/Zjz1aam J/fCtfRNLDFJtBpkP64ZgJLzL8GP6jSsCGxciF0Pz7/29BvI30j+H0Seu8+F/1ENYRHn Uh3iYrYvFm4E0RXB+7eBOHcmumC+rV8AIODdD8uxq9ZTly5jHutQyus+jXZnwyalFZei BRvg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg13si4179596edb.330.2020.05.21.20.25.56; Thu, 21 May 2020 20:26:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727954AbgEVDYZ (ORCPT + 99 others); Thu, 21 May 2020 23:24:25 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5272 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727024AbgEVDYY (ORCPT ); Thu, 21 May 2020 23:24:24 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 51717A9057906BA0EFA3; Fri, 22 May 2020 11:24:22 +0800 (CST) Received: from [127.0.0.1] (10.166.213.90) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 22 May 2020 11:24:12 +0800 Subject: Re: [PATCH v8 5/5] dt-bindings: chosen: Document linux,low-memory-range for arm64 kdump To: Rob Herring References: <20200521093805.64398-1-chenzhou10@huawei.com> <20200521093805.64398-6-chenzhou10@huawei.com> CC: Thomas Gleixner , Ingo Molnar , Catalin Marinas , Will Deacon , , Baoquan He , Arnd Bergmann , , , "Simon Horman" , Hanjun Guo , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , , "Linux Doc Mailing List" , "linux-kernel@vger.kernel.org" , From: chenzhou Message-ID: Date: Fri, 22 May 2020 11:24:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.166.213.90] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 2020/5/21 21:29, Rob Herring wrote: > On Thu, May 21, 2020 at 3:35 AM Chen Zhou wrote: >> Add documentation for DT property used by arm64 kdump: >> linux,low-memory-range. >> "linux,low-memory-range" is an another memory region used for crash >> dump kernel devices. >> >> Signed-off-by: Chen Zhou >> --- >> Documentation/devicetree/bindings/chosen.txt | 25 ++++++++++++++++++++ >> 1 file changed, 25 insertions(+) > chosen is now a schema documented here[1]. Ok, that is, i don't need to modify the doc in kernel, just create a pull request in github [1]? > >> diff --git a/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt >> index 45e79172a646..bfe6fb6976e6 100644 >> --- a/Documentation/devicetree/bindings/chosen.txt >> +++ b/Documentation/devicetree/bindings/chosen.txt >> @@ -103,6 +103,31 @@ While this property does not represent a real hardware, the address >> and the size are expressed in #address-cells and #size-cells, >> respectively, of the root node. >> >> +linux,low-memory-range >> +---------------------- >> +This property (arm64 only) holds a base address and size, describing a >> +limited region below 4G. Similar to "linux,usable-memory-range", it is >> +an another memory range which may be considered available for use by the >> +kernel. > Why can't you just add a range to "linux,usable-memory-range"? It > shouldn't be hard to figure out which part is below 4G. I did like this in my previous version, such as v5. After discussed with James, i modified it to the current way. We think the existing behavior should be unchanged, which helps with keeping compatibility with existing user-space and older kdump kernels. The comments from James: > linux,usable-memory-range = . Won't this break if your kdump kernel doesn't know what the extra parameters are? Or if it expects two ranges, but only gets one? These DT properties should be treated as ABI between kernel versions, we can't really change it like this. I think the 'low' region is an optional-extra, that is never mapped by the first kernel. I think the simplest thing to do is to add an 'linux,low-memory-range' that we memblock_add() after memblock_cap_memory_range() has been called. If its missing, or the new kernel doesn't know what its for, everything keeps working. previous discusses: https://lkml.org/lkml/2019/6/5/674 https://lkml.org/lkml/2019/6/13/229 Thanks, Chen Zhou > > Rob > > [1] https://github.com/devicetree-org/dt-schema/blob/master/schemas/chosen.yaml > > . >