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 EBA07C433EF for ; Thu, 5 May 2022 20:04:14 +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=+oNo8sQF9nwThzZTdP8IGJVnqceFUxbgSRph1bWelJs=; b=XOXEWNTvgpFChl P9m6MkebdWeoHXlLYIUzv71ohsSFAnDeOT7DTwRa28lihF8pEBi6jgPnF3h/wDv+IzDDr8jlI8KEV 7ee96PeEiVQt/VZuN3/pFnochMQoQqo4pwPfktWESQjkTTQenXqFM5SgXTl3dvd3fJHuVRBrW/2T/ oyIm4/XXj5v9R7TmcwFZ1KRWYSw47qUO0VQk2rvQOZiR8Vxhd7NlHS0UUnS4Txu/7/Iy2oDOzTsI8 t6KnVZvndIJR8scBKwdOU991EpP4Q4Cvnxw4cdYHMlD+sxmAW1L/4p5g9owa3v3DchtWyrrJj5vCR c6XKLI/QtIBE2aeP2NPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmhgw-0005BK-5g; Thu, 05 May 2022 20:03:14 +0000 Received: from mail-ot1-f45.google.com ([209.85.210.45]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmhgr-00058n-6N; Thu, 05 May 2022 20:03:10 +0000 Received: by mail-ot1-f45.google.com with SMTP id z5-20020a9d62c5000000b00606041d11f1so3647529otk.2; Thu, 05 May 2022 13:03:06 -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=vVyaeCXZALXumBK2Gjrm94O8+EGJmAMA/020nM6YuQnJG+GuGVG3oKKyZPhi4dvVAO /IF6MwRTDM0H+SkPz5WifQVlsvgSkg7N5hjldHMPSCeC04CV7Z2ULbLx93mPUFD09qrJ Xq8d+bJEM9qUKGC8s9ZyLz/dKPg2CrRHLpmYwx79hPxNmdsZ/kMVFbnDUe4/TUvD3VAl GWjqaWG6gjZnKsH3SiWOj8Uah72tbP4fDAIh1JekIraP8AfrAgVmzC2NnPyt2i0/sMGA qyu3g/4NCn/klhL5Hkw39q9HCJaHmxOGsHAuM8i7ik/bpLKqW20cvgxbcTaec05OpuRd PUxw== X-Gm-Message-State: AOAM531fdSu+MvyMon0CtyT5fXu9Jh08VvqWaCBU9lQG3Y4oTbg3RYeA Pa0xmaQwAolcI0GOjpClsQ== 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-Disposition: inline In-Reply-To: <20220505091845.167-6-thunder.leizhen@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220505_130309_263549_50110541 X-CRM114-Status: GOOD ( 13.01 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel