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 2494FC433F5 for ; Thu, 5 May 2022 20:03:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385537AbiEEUGu (ORCPT ); Thu, 5 May 2022 16:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244961AbiEEUGr (ORCPT ); Thu, 5 May 2022 16:06:47 -0400 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD895EDF4; Thu, 5 May 2022 13:03:07 -0700 (PDT) Received: by mail-ot1-f44.google.com with SMTP id m6-20020a05683023a600b0060612720715so3632937ots.10; Thu, 05 May 2022 13:03:07 -0700 (PDT) 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=Pyq/2vKiCJeafLAKrLbpew+3CjQ+qVQC3K8MNbXKH7s=; b=R9OswNI/bjFONSGVJ3EPs/rftmN7CfKjqkvnGdapZ3Yt76VwIySaNj1j26EsqRicsc c7JkMC71ipXEveZ7ee6YjS7YK0NxvDDVjxw67hf3TtBK57qgMCsw79Hu0TMfPUGmT58S j3CHsdYOKd52+QfXaXJV+i5KKEKQAymILzykTBBgTz+zkoVaWCMm+3/Sd/89if7iSn61 RbNBZ5NWNT696fQungArPHZU6hYMQcA4O6U2btd3ZUP/ymzFbyvdL1llisNrZ3ygGptI /GbdY4wEIFz4VqE9KMaDY0r2nb9LqyJSUMyNNQOk+CBRqD883s/KxOuQUkuiQxlJLZiI hEow== X-Gm-Message-State: AOAM5338TbvCu9kfb+M+MCvbjDNFcM36aSd6b9sKQvHPitpqJs3w0VoR Ka7/9qMniJZyB3laSqLgLwZbyvmVrw== X-Google-Smtp-Source: ABdhPJzs1asTZTmKLXNMh0PXTiEvLAWMuCmzpJCTeiBCudCzgeCyMfW7UzBRQJMYiJSe1XEvIayZnQ== X-Received: by 2002:a9d:6ac7:0:b0:5e6:ec48:d882 with SMTP id m7-20020a9d6ac7000000b005e6ec48d882mr9872300otq.274.1651780986171; Thu, 05 May 2022 13:03:06 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id a32-20020a9d2623000000b006060322123csm935981otb.12.2022.05.05.13.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 13:03:05 -0700 (PDT) Received: (nullmailer pid 100851 invoked by uid 1000); Thu, 05 May 2022 20:03:03 -0000 Date: Thu, 5 May 2022 15:03:03 -0500 From: Rob Herring To: Zhen Lei Cc: Catalin Marinas , Baoquan He , devicetree@vger.kernel.org, Jonathan Corbet , Rob Herring , linux-kernel@vger.kernel.org, Will Deacon , Randy Dunlap , linux-doc@vger.kernel.org, Vivek Goyal , Frank Rowand , Chen Zhou , kexec@lists.infradead.org, Feng Zhou , Borislav Petkov , x86@kernel.org, Ingo Molnar , linux-arm-kernel@lists.infradead.org, Eric Biederman , Thomas Gleixner , Kefeng Wang , Dave Young , John Donnelly , Dave Kleikamp , "H . Peter Anvin" Subject: Re: [PATCH v23 5/6] of: Support more than one crash kernel regions for kexec -s Message-ID: References: <20220505091845.167-1-thunder.leizhen@huawei.com> <20220505091845.167-6-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220505091845.167-6-thunder.leizhen@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Thu, 05 May 2022 17:18:44 +0800, Zhen Lei wrote: > When "crashkernel=X,high" is used, there may be two crash regions: > high=crashk_res and low=crashk_low_res. But now the syscall > kexec_file_load() only add crashk_res into "linux,usable-memory-range", > this may cause the second kernel to have no available dma memory. > > Fix it like kexec tool do for option -c, add both 'high' and 'low' regions > into the dtb. > > Signed-off-by: Zhen Lei > --- > drivers/of/kexec.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > Acked-by: Rob Herring