Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1414888rwl; Fri, 24 Mar 2023 10:10:35 -0700 (PDT) X-Google-Smtp-Source: AKy350a2/84GCbWJW4SQ8Rs5iuYavuItd4dtIOqOg7P4ILMhLUF2XtA5JX42w/EwJdnZiEoMcBGf X-Received: by 2002:aa7:9ece:0:b0:627:f9ac:8a31 with SMTP id r14-20020aa79ece000000b00627f9ac8a31mr3609811pfq.2.1679677835431; Fri, 24 Mar 2023 10:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679677835; cv=none; d=google.com; s=arc-20160816; b=ibuf0REx03pmAfKmRQXa7Uw3skn9tvHKkDgaoHPIIacjAmdFPXY20zbhc2NycJMf8t D/cjqKRDx+jikuwcbupwYTd0q+bxAaZq3TEHit2NpHS33AbfBnGqjl1CCkazSD+Vz4YT 3NcYM5xxZSf5/XUITSpiowTDZ4g0/zar/tc0OHNadUYC70RHwcLodGKZdGAFQdG8jhqO wm1geydVu0CYpdkQ7yrFQmzgmdlDHjXI9y4qbflRxYPyw0XB7jUa5MIWcsuE7PNOJMfD 6AikJytyuXDqsyQws2qWJRCo5/eZ2cHIf71AbeSIpB7hI3Z1oRN9ye0dTTtPQsXg6evQ ZypQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=MJ9jufQAdM4CBlGA0y08NGLgIhZU+8122Y/eoz2ZmXI=; b=lmjiDnyJH6JHvqEVUpR7hemt9/dgrXl2fKRZ3bSXGS7CXfCoa94VQWNKeBa4a8KW+y 8Ime5hKYxrj9zmivqucTo8jzv7JiT6kJOwovoqjhPE570dXdEjPSFPdhpOYOxHTsjfnf l/1M2EZZrvEE5SpfWS4ZgfqVKIjCQi3npHO/OcAjs5pT/yTYKJx9uvKDm9MF2reAM5W6 raYMMIlTYh8MfmQky1fEiW40Y5z0grJ6Po1xPd5dWrB/p5iTddbgPVCEBviCqjZXusMh /CFjVvm7NlpE2PTK32YWcr/jnBU6rr0OHfPoHJ0mOjKhkj/ES8eGXjfUwI13SOWa42y5 HOgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u21-20020a056a00159500b00626094fcb58si22896061pfk.86.2023.03.24.10.10.16; Fri, 24 Mar 2023 10:10:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231968AbjCXRIn (ORCPT + 99 others); Fri, 24 Mar 2023 13:08:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjCXRIk (ORCPT ); Fri, 24 Mar 2023 13:08:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5391C1A973 for ; Fri, 24 Mar 2023 10:08:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 03C88B825B3 for ; Fri, 24 Mar 2023 17:08:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3361AC433D2; Fri, 24 Mar 2023 17:08:35 +0000 (UTC) Date: Fri, 24 Mar 2023 17:08:32 +0000 From: Catalin Marinas To: Baoquan He Cc: linux-kernel@vger.kernel.org, horms@kernel.org, thunder.leizhen@huawei.com, John.p.donnelly@oracle.com, will@kernel.org, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4] arm64: kdump: simplify the reservation behaviour of crashkernel=,high Message-ID: References: <20230306084124.300584-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2023 at 10:08:17PM +0800, Baoquan He wrote: > On 03/23/23 at 05:25pm, Catalin Marinas wrote: > > On Mon, Mar 20, 2023 at 09:12:08PM +0800, Baoquan He wrote: > > > crashkernel=size > > > 1)first attempt: low memory under arm64_dma_phys_limit > > > 2)fallback: finding memory above 4G > > > > (2) should be 'finding memory above arm64_dma_phys_limit' to keep the > > current behaviour for RPi4. > > Then for RPi4, with case 2), it will find memory above > arm64_dma_phys_limit, namely 1G. Then it will get two memory regions, > one could be in [1G, 4G], another is below 4G. I am fine with this, as > long as it won't cause confusion that people may think two low memory > regions you mentioned earlier. Please help confirm if I understand your > suggestioin correctly. I will start making patch with this clarified. Yes, you understood correctly. While it may still be slightly confusing, if the user is not specific about high and low on the cmdline, we just allow the kernel to find the best places. I assume distros will just use ,high and get a consistent behaviour on all platforms. -- Catalin