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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83FA6C433F5 for ; Fri, 10 Dec 2021 16:43:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243869AbhLJQqx (ORCPT ); Fri, 10 Dec 2021 11:46:53 -0500 Received: from mail-ot1-f44.google.com ([209.85.210.44]:40727 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbhLJQqx (ORCPT ); Fri, 10 Dec 2021 11:46:53 -0500 Received: by mail-ot1-f44.google.com with SMTP id v15-20020a9d604f000000b0056cdb373b82so10173556otj.7; Fri, 10 Dec 2021 08:43:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZwDLkPobIqK5v1+DIR9VlqySsN5PRct8i+lUCHBrkFg=; b=kj/i9D9Y9/Vqdt/AWmRLtIUbAX2VDoQhZx1FmDC6n6EZM42M4fEg04w/HyBcuP/2QT I5cB4HOKdM7aFsNsTJ32al1ikLzIiesSfKJdzYQJeK0Vx18rtnfvf5YIR4qDjbf87OAy aiiToGuPvbe92orrXHFgSheUWhNhUA+E42/xHzKOd8kM2K5N0yMrs5lD8UpN5c840alr uKjY6Ktgwj/l7cuR93flIyfYSWf/O+a9JozwG/LJ/4Ex7f+LOiKQovQIbPwy0LShNBD1 yb0EH2EcClFVaqfET9PLEohq+XYUP1Vm9nkRHzA0q6p8Tv81H/vz7Jw2Ndnp24pFwmZi fzhg== X-Gm-Message-State: AOAM531Co40dOME/0V7V2lZ9JmD96rkTFsaTbJkVhPwX1clGD6Q+MPlY dMN2m2cMf8pqoAMhfaAf2w== X-Google-Smtp-Source: ABdhPJwdcBz7WV5SZemj6BK7U1UUeg/obVDS8OyD99mYsandiDs9PU4igyuiQc5l59usoJWA1UTy9Q== X-Received: by 2002:a05:6830:8:: with SMTP id c8mr11873067otp.115.1639154597413; Fri, 10 Dec 2021 08:43:17 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id a3sm571677oti.29.2021.12.10.08.43.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 08:43:16 -0800 (PST) Received: (nullmailer pid 1497925 invoked by uid 1000); Fri, 10 Dec 2021 16:43:15 -0000 Date: Fri, 10 Dec 2021 10:43:15 -0600 From: Rob Herring To: Zhen Lei Cc: linux-kernel@vger.kernel.org, Borislav Petkov , x86@kernel.org, Randy Dunlap , Feng Zhou , Catalin Marinas , linux-doc@vger.kernel.org, Kefeng Wang , Will Deacon , Chen Zhou , Eric Biederman , Rob Herring , "H . Peter Anvin" , Frank Rowand , kexec@lists.infradead.org, Baoquan He , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, Dave Young , devicetree@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Vivek Goyal Subject: Re: [PATCH v17 09/10] of: fdt: Add memory for devices by DT property "linux,usable-memory-range" Message-ID: References: <20211210065533.2023-1-thunder.leizhen@huawei.com> <20211210065533.2023-10-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211210065533.2023-10-thunder.leizhen@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Dec 2021 14:55:32 +0800, Zhen Lei wrote: > From: Chen Zhou > > When reserving crashkernel in high memory, some low memory is reserved > for crash dump kernel devices and never mapped by the first kernel. > This memory range is advertised to crash dump kernel via DT property > under /chosen, > linux,usable-memory-range = > > We reused the DT property linux,usable-memory-range and made the low > memory region as the second range "BASE2 SIZE2", which keeps compatibility > with existing user-space and older kdump kernels. > > Crash dump kernel reads this property at boot time and call memblock_add() > to add the low memory region after memblock_cap_memory_range() has been > called. > > Signed-off-by: Chen Zhou > Signed-off-by: Zhen Lei > Tested-by: Dave Kleikamp > --- > drivers/of/fdt.c | 33 +++++++++++++++++++++++---------- > 1 file changed, 23 insertions(+), 10 deletions(-) > Reviewed-by: Rob Herring 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34EA1C433F5 for ; Fri, 10 Dec 2021 16:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=45prS5whFtZGRtGqW5R7une4QHsYveZq0rDm2nmOXCY=; b=Drj3F28yCquqXu VTY+45Q9Lyl3/ZG2wL2pV8+G2HioHVw+8WTWUL9KC0VCRIB8FxlYeoDfNSbC1p2g3ucqts8oraVhC 6a/FO+WTEvgOyWwq1m2TpE0+ayIyN6dgATGGVt4IexB2Pcz1QA9sXxqMZPS0chl2Kls9+CTevWxIC IWaoMdEQYMDKaQMKSjmD28Y+R/PBQN1Pc28RbAqGK6ks3UjgQfgE6x+YwedhtjvyDCIN9HFRN97YZ tEdTnCK5ncZrJeBvuy7yRcqV1krjaQ6HZvh75ygvi5K6oZal5QqpEqOW0y6wlGje85kTHnjIiEqwE BvwP3dA7r+UsYhwmfg3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvizU-002cxk-Bk; Fri, 10 Dec 2021 16:43:24 +0000 Received: from mail-ot1-f52.google.com ([209.85.210.52]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvizO-002cw9-Oq; Fri, 10 Dec 2021 16:43:20 +0000 Received: by mail-ot1-f52.google.com with SMTP id x3-20020a05683000c300b0057a5318c517so10109917oto.13; Fri, 10 Dec 2021 08:43:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZwDLkPobIqK5v1+DIR9VlqySsN5PRct8i+lUCHBrkFg=; b=ezGW8bARGUKGU6nv6A0at5QvO5AcRiAFeSzoAeW9FZMehSgI0+i8Hn8K29w6IBL10s ovIZHz3bTe3/0EO6dnSmzjLzUKOIWNCtxpg9Zqrc2bsfKa8+ckcW7lpvGwW5spp4ONyE oR3ANZPP/K+Uv4G7xGYQAM/g55I2W2dM0BmSZy9fKH4+RQkMwW7N0mbXwwOscwqdUCzP pdMagZu2xujxist1R21GSIxhFHMwjI0T8T70fYoUAULJ5iJBpxCAQ/95b2pRxqUkGRAV NVhKt+jpSsnl2NMBPdE0rCaWCBdDMWgDJ3QiZYRoDET6ZdSsDMNcwZGcXSx6MfNdteHs PSzQ== X-Gm-Message-State: AOAM5304zHNJ887y5JRy6Q0BtNmvFVdaSMy4P+EdY/gh46qibgVsLHnV wGoCfH5YtSqbHf3ziTdcJhjGe7e2Gg== X-Google-Smtp-Source: ABdhPJwdcBz7WV5SZemj6BK7U1UUeg/obVDS8OyD99mYsandiDs9PU4igyuiQc5l59usoJWA1UTy9Q== X-Received: by 2002:a05:6830:8:: with SMTP id c8mr11873067otp.115.1639154597413; Fri, 10 Dec 2021 08:43:17 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id a3sm571677oti.29.2021.12.10.08.43.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 08:43:16 -0800 (PST) Received: (nullmailer pid 1497925 invoked by uid 1000); Fri, 10 Dec 2021 16:43:15 -0000 Date: Fri, 10 Dec 2021 10:43:15 -0600 From: Rob Herring To: Zhen Lei Cc: linux-kernel@vger.kernel.org, Borislav Petkov , x86@kernel.org, Randy Dunlap , Feng Zhou , Catalin Marinas , linux-doc@vger.kernel.org, Kefeng Wang , Will Deacon , Chen Zhou , Eric Biederman , Rob Herring , "H . Peter Anvin" , Frank Rowand , kexec@lists.infradead.org, Baoquan He , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, Dave Young , devicetree@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Vivek Goyal Subject: Re: [PATCH v17 09/10] of: fdt: Add memory for devices by DT property "linux,usable-memory-range" Message-ID: References: <20211210065533.2023-1-thunder.leizhen@huawei.com> <20211210065533.2023-10-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211210065533.2023-10-thunder.leizhen@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_084318_818860_16924378 X-CRM114-Status: GOOD ( 15.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 10 Dec 2021 14:55:32 +0800, Zhen Lei wrote: > From: Chen Zhou > > When reserving crashkernel in high memory, some low memory is reserved > for crash dump kernel devices and never mapped by the first kernel. > This memory range is advertised to crash dump kernel via DT property > under /chosen, > linux,usable-memory-range = > > We reused the DT property linux,usable-memory-range and made the low > memory region as the second range "BASE2 SIZE2", which keeps compatibility > with existing user-space and older kdump kernels. > > Crash dump kernel reads this property at boot time and call memblock_add() > to add the low memory region after memblock_cap_memory_range() has been > called. > > Signed-off-by: Chen Zhou > Signed-off-by: Zhen Lei > Tested-by: Dave Kleikamp > --- > drivers/of/fdt.c | 33 +++++++++++++++++++++++---------- > 1 file changed, 23 insertions(+), 10 deletions(-) > Reviewed-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Fri, 10 Dec 2021 10:43:15 -0600 From: Rob Herring Subject: Re: [PATCH v17 09/10] of: fdt: Add memory for devices by DT property "linux,usable-memory-range" Message-ID: References: <20211210065533.2023-1-thunder.leizhen@huawei.com> <20211210065533.2023-10-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211210065533.2023-10-thunder.leizhen@huawei.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Zhen Lei Cc: linux-kernel@vger.kernel.org, Borislav Petkov , x86@kernel.org, Randy Dunlap , Feng Zhou , Catalin Marinas , linux-doc@vger.kernel.org, Kefeng Wang , Will Deacon , Chen Zhou , Eric Biederman , Rob Herring , "H . Peter Anvin" , Frank Rowand , kexec@lists.infradead.org, Baoquan He , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, Dave Young , devicetree@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Vivek Goyal On Fri, 10 Dec 2021 14:55:32 +0800, Zhen Lei wrote: > From: Chen Zhou > > When reserving crashkernel in high memory, some low memory is reserved > for crash dump kernel devices and never mapped by the first kernel. > This memory range is advertised to crash dump kernel via DT property > under /chosen, > linux,usable-memory-range = > > We reused the DT property linux,usable-memory-range and made the low > memory region as the second range "BASE2 SIZE2", which keeps compatibility > with existing user-space and older kdump kernels. > > Crash dump kernel reads this property at boot time and call memblock_add() > to add the low memory region after memblock_cap_memory_range() has been > called. > > Signed-off-by: Chen Zhou > Signed-off-by: Zhen Lei > Tested-by: Dave Kleikamp > --- > drivers/of/fdt.c | 33 +++++++++++++++++++++++---------- > 1 file changed, 23 insertions(+), 10 deletions(-) > Reviewed-by: Rob Herring _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec