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 01724C433EF for ; Mon, 11 Apr 2022 09:12:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245029AbiDKJO0 (ORCPT ); Mon, 11 Apr 2022 05:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233259AbiDKJOX (ORCPT ); Mon, 11 Apr 2022 05:14:23 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB8D3F892 for ; Mon, 11 Apr 2022 02:12:09 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4KcNQD4hVmz1HBkw; Mon, 11 Apr 2022 17:11:32 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 11 Apr 2022 17:12:05 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 11 Apr 2022 17:12:05 +0800 From: Kefeng Wang To: , , , CC: , , Kefeng Wang Subject: [PATCH v3 0/3] arm64: mm: Do not defer reserve_crashkernel() Date: Mon, 11 Apr 2022 17:24:52 +0800 Message-ID: <20220411092455.1461-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 031495635b46 ("arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones"), this lets the kernel benifit due to BLOCK_MAPPINGS, we could do more if ZONE_DMA and ZONE_DMA32 enabled. 1) Don't defer reserve_crashkernel() if only ZONE_DMA32 2) Don't defer reserve_crashkernel() if ZONE_DMA with dma_force_32bit kernel parameter(newly added) Here is another case to show the benefit of the block mapping. Unixbench benchmark result shows between the block mapping and page mapping. ----------------+------------------+------------------- | block mapping | page mapping ----------------+------------------+------------------- Process Creation| 5,030.7 | 4,711.8 (in unixbench) | | ----------------+------------------+------------------- note: RODATA_FULL_DEFAULT_ENABLED is not enabled v3: - renaming crashkernel_could_early_reserve() to crashkernel_early_reserve() - drop dma32_phys_limit, directly use max_zone_phys(32) - fix no previous prototype issue - add RB of Vijay to patch2/3 v2 resend: - fix build error reported-by lkp v2: - update patch1 according to Vijay and Florian, and RB of Vijay - add new patch2 Kefeng Wang (3): arm64: mm: Do not defer reserve_crashkernel() if only ZONE_DMA32 arm64: mm: Don't defer reserve_crashkernel() with dma_force_32bit arm64: mm: Cleanup useless parameters in zone_sizes_init() arch/arm64/include/asm/kexec.h | 1 + arch/arm64/mm/init.c | 60 ++++++++++++++++++++++++---------- arch/arm64/mm/mmu.c | 6 ++-- 3 files changed, 46 insertions(+), 21 deletions(-) -- 2.26.2