Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2667202pxb; Sat, 26 Mar 2022 01:09:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn4MoR1ndN2a0FUpJCTMgMSCV75Kxs4ykczKfS+rpLBBYAvr+g4iP7JGaeNmfF+AJMEFMz X-Received: by 2002:a17:90b:384b:b0:1c7:41fd:9991 with SMTP id nl11-20020a17090b384b00b001c741fd9991mr29804572pjb.199.1648282153497; Sat, 26 Mar 2022 01:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648282153; cv=none; d=google.com; s=arc-20160816; b=pbcGpwWi4jN4sUzvMEOJ1Fr36SWdnB+/0vJxy786QBCR1uPIQ7EcZMJOw0c4H7U5a+ s6eVsE4fGmxBgTXW9Yb0ONDBSiqinrgI8ky/B9L+1IIMv+OcVBx23cEXA5XTVXvQtUMN fQS69DUq6x+rvWX8ZIVLc7xinW87I855q4GjVyZbSnHtPyxd1iSVRTCFnn9Vt0bOFBVJ QXqnsCdej4JuIzkAP5bWZpkL0xdbJorSvV2grkh5QLcmBpB3T9j4Vwxj+TXhEWqfKo7A ufRwWx+5F3Bq5yon61X6Q95zODc3tFrJT3+ejFCSGlXoIISXMY5luZpmbmJbMJqoX3zs 4PHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=WCc7nGeok6tT6faoI84fEgk7Z3waw87W5MnbZ7Wr8+Y=; b=zS9ldAwlJ5DyYuO6qyjIP1Y3iP08Z5aknOf5CVzx/Jp4tpblDWB24C5rSjM7IZyh7j O09uQoIVCWQ4Pk0NLLfHkD1Wg1QhWGzfhElIFnB+7iHbsuX6swQMyW08plq8jmFMF7lV bQBhl+3tq1snXiUQaJ0iuAQH8o79/3wsoKikwgU3vAAdTFw8/8b1dOYADHkviB5/SqV7 S9rJg+yyl+/EQH6BD+duVQ92sO6XDZ0iTpnt5CcaG4gEn2Zbo/EzAApxJjrpFgNw4GZX 2OMxYBw6c2+dkR0hwySMzQ87UoYV1TL5WWwypgoORGLuzke5Q4mjLCcAWvzFwqZXQXGD j8fQ== 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 c189-20020a624ec6000000b004fa7bbf2aefsi4924037pfb.304.2022.03.26.01.09.01; Sat, 26 Mar 2022 01:09:13 -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 S231459AbiCZG3N (ORCPT + 99 others); Sat, 26 Mar 2022 02:29:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbiCZG3M (ORCPT ); Sat, 26 Mar 2022 02:29:12 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC58127B; Fri, 25 Mar 2022 23:27:34 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KQTVY1fcfzfZgr; Sat, 26 Mar 2022 14:25:57 +0800 (CST) Received: from dggpemm500014.china.huawei.com (7.185.36.153) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sat, 26 Mar 2022 14:27:32 +0800 Received: from localhost.localdomain (10.175.112.125) by dggpemm500014.china.huawei.com (7.185.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sat, 26 Mar 2022 14:27:31 +0800 From: Wupeng Ma To: , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH 0/9] introduce mirrored memory support for arm64 Date: Sat, 26 Mar 2022 14:46:23 +0800 Message-ID: <20220326064632.131637-1-mawupeng1@huawei.com> X-Mailer: git-send-email 2.18.0.huawei.25 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500014.china.huawei.com (7.185.36.153) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 From: Ma Wupeng Commit b05b9f5f9dcf ("x86, mirror: x86 enabling - find mirrored memory ranges") introduced mirrored memory support for x86. This support rely on UEFI to report mirrored memory address ranges. See UEFI 2.5 spec pages 157-158: http://www.uefi.org/sites/default/files/resources/UEFI%202_5.pdf Arm64 can support this too. So mirrored memory support is added to support arm64. Patch #1-#2 introduce efi_fake_mem support for arm64. Patch #3-#4 introduce mirrored memory support form arm64. Patch #5-#7 fix some bugs for arm64 if memory reliable is enabled. Patch #8 disable mirror feature if kernelcore is not specified. Patch #9 remove some redundant code in ia64 efi_init. Ma Wupeng (9): efi: Make efi_print_memmap() public arm64: efi: Add fake memory support efi: Make efi_find_mirror() public arm64/mirror: arm64 enabling - find mirrored memory ranges mm: Ratelimited mirrored memory related warning messages mm: Demote warning message in vmemmap_verify() to debug level mm: Calc the right pfn if page size is not 4K efi: Disable mirror feature if kernelcore is not specified ia64/efi: Code simplification in efi_init .../admin-guide/kernel-parameters.txt | 4 +- arch/arm64/kernel/setup.c | 3 ++ arch/ia64/kernel/efi.c | 37 +----------------- arch/x86/include/asm/efi.h | 5 --- arch/x86/platform/efi/efi.c | 39 ------------------- drivers/firmware/efi/Kconfig | 2 +- drivers/firmware/efi/efi.c | 26 +++++++++++++ drivers/firmware/efi/memmap.c | 16 ++++++++ include/linux/efi.h | 4 ++ include/linux/mm.h | 2 + mm/memblock.c | 4 +- mm/page_alloc.c | 4 +- mm/sparse-vmemmap.c | 2 +- 13 files changed, 60 insertions(+), 88 deletions(-) -- 2.18.0.huawei.25