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 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 49BA7C433F5 for ; Mon, 11 Apr 2022 09:22:42 +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:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XHgln7UJkXUeLoElBddGnfAFFE4uy8Z8LdgaBAliPN0=; b=uglK/izNhTcRir 6o8rHPDy2WUEa3glhwsQJ38BGadwq+jr6kr/0pGNem7w2l8bH9+Z9rQ2Z2CO0txbQx/ywXMSeZ3Yt B8wG3cno1wjnreEQFeQ34l2Jd/AxFe65eYD14rd8j9IN3izEyMAZJDtJ85X6p5j803g9oogm9YQdx uAmMe1Cc5GoWif3CMsZP/KtU67RAK3fr+JxM/0twvLECbhnLEtGtkUSvMUHFziv+textB3br7iNaB y63NbDFNpIcsdKAOU4c6PPJlhGrgM3HXq1W0s4idUe1ABfIiQGKdOKBtkMMmWOp1ze0dTbcJdn7zZ 7MuWKmnKgDAt3Dz0MosA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndqEh-007s17-KA; Mon, 11 Apr 2022 09:21:28 +0000 Received: from szxga08-in.huawei.com ([45.249.212.255]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndq5p-007nnZ-GT for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 09:12:19 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220411_021217_789179_77C4BE30 X-CRM114-Status: UNSURE ( 7.36 ) X-CRM114-Notice: Please train this message. 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel