Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp13686rwe; Tue, 30 Aug 2022 19:36:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR46CZ6Aq+F3LZRlREwfYF588j7KqfwTH0bl0ogl/Z8DUu9DGcr65C2CeJn1sQW9vUU0dQ9t X-Received: by 2002:a05:6402:14c6:b0:448:e27:5974 with SMTP id f6-20020a05640214c600b004480e275974mr16386313edx.53.1661913391946; Tue, 30 Aug 2022 19:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661913391; cv=none; d=google.com; s=arc-20160816; b=OGhV2qTti11xfWEtOo4AD3StTWqTvxNcvnHxDI/JJeichq1256jR1OnVP/mIQKU6pa swey9Z6RUyf1ejR00J+itJYWkMQyMX3PL1JGybg7FwjcmkEkgphA+oaCGmvgXNNi4kcn vTmWEfiE+PJqxeTtivefzikxIsMLmMMHM4IQxuAT//fEU6MVAuMmX8ozyRvT+bXydHzv 99I+d0bcVTWK1BajtqrZ0mIkbpYdJjxYW/WUEvvY/ZMukNOmip45ltvlelWz8Cbojb0t zE3yRCCWwcOoDkT+Ow6lRvhSp/pkU//SUd0OluNME6cC2qNmjrQ+twStP+dTS7DZmnTL OSuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=2FlBkbWPhluINltE5HHP6ruPhpef9sot+YuX0+uaPWI=; b=GXnNTPc5rt1clr+NjQEry6Hvrl/xh+QzzQTn5P6+GUv2iiXZwI4K3NxqU4T6sVlSEj QBVwsK0cgrj9pYXdVTJgho2Kg89GtOlbw0dnGnlpS1KNuDkmrmx2dxTvV0XhPkL6yNpt uZKOYlP1g0K/x0bzPPC356U7f7xAkaGjywU9KDO4FGRJQcKvnSrm0lY0tPz2gTbF5Nw5 eLZjMp/ENORo5Cq9JDcj6xMwULls9/SHSlOx45MyVgbTyE9+80PEiyVb/Yra2B1uMHBS DU58/LE0DDZnDNE710LibED56ia9BRDOdRkriK6VpGWsOlsGKW1pBzT1gFLlO2V2gzd0 cByg== 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 ne20-20020a1709077b9400b0074164fd241esi3540817ejc.230.2022.08.30.19.36.06; Tue, 30 Aug 2022 19:36:31 -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 S230039AbiHaBvt (ORCPT + 99 others); Tue, 30 Aug 2022 21:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbiHaBvn (ORCPT ); Tue, 30 Aug 2022 21:51:43 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B110AE874 for ; Tue, 30 Aug 2022 18:51:42 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MHRrx33CVz1N7hL; Wed, 31 Aug 2022 09:48:01 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 31 Aug 2022 09:51:27 +0800 Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 31 Aug 2022 09:51:26 +0800 Subject: Re: [PATCH 2/2] arm64: remove unneed defer_reserve_crashkernel() and crash_mem_map To: Baoquan He , CC: , , , , , , , , , References: <20220828005545.94389-1-bhe@redhat.com> <20220828005545.94389-3-bhe@redhat.com> From: "Leizhen (ThunderTown)" Message-ID: Date: Wed, 31 Aug 2022 09:51:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20220828005545.94389-3-bhe@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 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 2022/8/28 8:55, Baoquan He wrote: > Now they are not needed any more, clean them up. Reviewed-by: Zhen Lei > > Signed-off-by: Baoquan He > --- > arch/arm64/include/asm/memory.h | 5 ----- > arch/arm64/mm/mmu.c | 15 --------------- > 2 files changed, 20 deletions(-) > > diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h > index 9dd08cd339c3..b9e71583c9cb 100644 > --- a/arch/arm64/include/asm/memory.h > +++ b/arch/arm64/include/asm/memory.h > @@ -363,11 +363,6 @@ static inline void *phys_to_virt(phys_addr_t x) > }) > > void dump_mem_limit(void); > - > -static inline bool defer_reserve_crashkernel(void) > -{ > - return IS_ENABLED(CONFIG_ZONE_DMA) || IS_ENABLED(CONFIG_ZONE_DMA32); > -} > #endif /* !ASSEMBLY */ > > /* > diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c > index cdd338fa2115..c3f8f426c3d8 100644 > --- a/arch/arm64/mm/mmu.c > +++ b/arch/arm64/mm/mmu.c > @@ -502,21 +502,6 @@ void __init mark_linear_text_alias_ro(void) > PAGE_KERNEL_RO); > } > > -static bool crash_mem_map __initdata; > - > -static int __init enable_crash_mem_map(char *arg) > -{ > - /* > - * Proper parameter parsing is done by reserve_crashkernel(). We only > - * need to know if the linear map has to avoid block mappings so that > - * the crashkernel reservations can be unmapped later. > - */ > - crash_mem_map = true; > - > - return 0; > -} > -early_param("crashkernel", enable_crash_mem_map); > - > static void __init map_mem(pgd_t *pgdp) > { > static const u64 direct_map_end = _PAGE_END(VA_BITS_MIN); > -- Regards, Zhen Lei