Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27123238rwd; Mon, 3 Jul 2023 21:28:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlENsbotb9qsCrNH7leLlhUE5HF9PGXUR5KPL71yqPzIqErDBSX47l61TPb5oXBbs0uT9MFV X-Received: by 2002:a25:42c6:0:b0:c4e:f358:4dd6 with SMTP id p189-20020a2542c6000000b00c4ef3584dd6mr5157907yba.25.1688444890487; Mon, 03 Jul 2023 21:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688444890; cv=none; d=google.com; s=arc-20160816; b=N142gLu5ZB4y/081fAxZjr0CAv9w1INZFbQ9Ua5+qIA+ClVgenBHpp6eQ0n1OrW8V6 7kP9DmyDsjIRwlp+nwfdLFTiixfAVtj0deXONXJajbNezNcUwS0m7LydIWJFG5GzoG5e ZGyGdcY7DnbFeB9zVrxt02xHNkS+YLyvWLSSwuUO7qKJNO8hEiteyBrk3Jn6fwoVObit z+YattgNyLwxE5bSa+iiqXf4ol8et7pV4pC1iYy6bC9gnLlCIgh8K35T4Ns1aoDvgnz/ g5RWQPeRIfiQByd6di1cWHecG7SnYqgHnXq9AALwCotZ/52eih7NkLmHKqKoVP1ttlA0 +7Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=p1idL7zC+TeCiMn4gsWTIfn5c8kklAeTMRoCkx0bKCg=; fh=vw9u85W9WqbGbhgYgKqNJ9lNaY7+J+Ml+4iNcEZdfo4=; b=IsMp3slh5rX7FX7i03P05WByRTuExP4lxW2mZ0watHaULPy8z7OVb6Qu94j+kKwyCl pynLXJfDqZed0jqlLXLDLRkqRWknB8Hm/hbpqel/5HQx+zsc8Eeywkb0PYu8aE/RbQK3 bZUZPvTVWRSuXiL1TB4TmWxZQ8lKILlcflY3kyFiGq5zEXvmF3RcXGC2OzqEuNuPFGaM LWEYfmXEKrJZZP9nrzvP3jKGrwmNfZg/qgFNkTsURT/MEYRonriLl//MyYBU1uJIX3Eg 3yj8FvAWbZ0mWF+pa4BvuFxENCZuPbKgWLqLDSHNgZ4MH6de/P3ZfsE8BNXHMgpAEizk F7AQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u189-20020a6385c6000000b0055387ef9633si19738026pgd.804.2023.07.03.21.27.57; Mon, 03 Jul 2023 21:28:10 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230004AbjGDDvQ (ORCPT + 99 others); Mon, 3 Jul 2023 23:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjGDDvP (ORCPT ); Mon, 3 Jul 2023 23:51:15 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59A771B6; Mon, 3 Jul 2023 20:51:12 -0700 (PDT) Received: from dggpemm500016.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Qw82s464lz1HCqB; Tue, 4 Jul 2023 11:50:45 +0800 (CST) Received: from [10.67.108.26] (10.67.108.26) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 4 Jul 2023 11:51:09 +0800 Message-ID: Date: Tue, 4 Jul 2023 11:51:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH -next v5 1/2] riscv: kdump: Implement crashkernel=X,[high,low] Content-Language: en-US To: Baoquan He CC: , , , , , , , , , , , , , , References: <20230511085139.1039088-1-chenjiahao16@huawei.com> <20230511085139.1039088-2-chenjiahao16@huawei.com> <852b8777-3c6e-f76b-0413-1c66629f33cd@huawei.com> <5c80666c-e6e2-8fa6-50b6-89536315925e@huawei.com> From: "chenjiahao (C)" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.108.26] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2023/7/2 12:06, Baoquan He wrote: > On 07/01/23 at 05:51pm, chenjiahao (C) wrote: > ...... >> I have sent v6 patches, implementing the logic above. That fixes the >> retrying >> >> logic and should be aligned with Arm64 code. > Hmm, it has improved much, while there's still issue which need be > fixed. You missed the case that crsahkernel low is specified as zero > explicitly. Obviously your v6 is not able to handle that well. Means > your v6 is not aligned with the current arm64 code completely. > > crashkernel=xM,high crashkernel=0M,low > >> >> Please let me know if there is any problem remains. > Earlier, I posted below RFC patchset to try to unify the > crashkernel=,high support on x86, arm64 and risc-v, the generic arch. > Wondering what you think about it. risc-v can be added in with very few > change to get the crahskernel=,high support. > > [RFC PATCH 0/4] kdump: add generic functions to simplify crashkernel crashkernel in architecture > > Surely, the crashkernel=,high support can be added independently in > advance. Later my patchset can unify them and remove the duplicated code > in risc-v. It's up to you and risc-v maintainers/reivewers to take one. > Anyway, I will add comment to your v6 to point out the issue. It would be great if crashkernel parsing and reserving logic could be unified on multiple architectures, the code would be more straightforward and easy to use. I will have a more in-depth review of your RFC patchset later. Meanwhile, I will continue to update my patchset on risc-v, just wishing to complement this feature earlier. When your unify solution get applied, simply remove the duplicate part is OK. Before that, I will update my risc-v code and further align with the Arm64 logic. Thanks for your carefully review, I will fix the issue above and send v7 patchset soon. Thanks, Jiahao > > Thanks > Baoquan >