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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1297BC433EF for ; Wed, 15 Jun 2022 10:04:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 482296B0073; Wed, 15 Jun 2022 06:04:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 409396B0074; Wed, 15 Jun 2022 06:04:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2130A6B0078; Wed, 15 Jun 2022 06:04:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id EFE446B0073 for ; Wed, 15 Jun 2022 06:04:14 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id CC19D1202AA for ; Wed, 15 Jun 2022 10:04:14 +0000 (UTC) X-FDA: 79580034828.25.024910B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf26.hostedemail.com (Postfix) with ESMTP id 4D1F9140096 for ; Wed, 15 Jun 2022 10:04:14 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7816960A6C for ; Wed, 15 Jun 2022 10:04:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD994C3411F for ; Wed, 15 Jun 2022 10:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655287452; bh=qMHUliC6OQhBo7q9WDQGe2cH8qdN+43JlMt46VgcPdI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=inngKeV84L6mA+JD2qGb722UFigKQYzoWeNAa0tIY+EH7zRT353YeRS2H2Injuqlp fic92xhifCj9qgL2P2YQ70f7SieAweiN4XM3j4R4U2QmjAW8gxbdS9PYQh2HWKNlXq 45ivDmjrnfaZSL9Q42PwwPnkqfLj2y+KjyPOij4fTEGl8ISMSmcoU1ojCaaZzAu1OY haQM03+RX/2wbKJeRAGnNKsNZVwobyozQSAP9TVuOqWhD7Hb3FRVWO+tudZGU2m6NZ 5ZxrKPxLxCcFZ8cMhMHh+4C41+fB7i0NxFE1WnUPSQCkv1/aRAqvGhdf+mXnxbrLUU a9DDvy7EceISw== Received: by mail-oi1-f174.google.com with SMTP id w16so14844762oie.5 for ; Wed, 15 Jun 2022 03:04:12 -0700 (PDT) X-Gm-Message-State: AOAM531RhNXHMfR0jvglE1JWgzNJHXIV9m1PkCaUIkAhrkXMabpa4YJg PBFvk5ycPJEulguE6nckp5oGSDKqI+kymewPFLQ= X-Google-Smtp-Source: AGRyM1uoryGCjOCIvlwgWz7+peQb+MFbP9xnQEX5bRMY6ahyU4equv8ziGQaSK27jXjDURN9dcuDuanaZNr23KVfwtM= X-Received: by 2002:a05:6870:e98b:b0:fe:219a:2449 with SMTP id r11-20020a056870e98b00b000fe219a2449mr5078024oao.228.1655287441873; Wed, 15 Jun 2022 03:04:01 -0700 (PDT) MIME-Version: 1.0 References: <20220614092156.1972846-1-mawupeng1@huawei.com> <20220614092156.1972846-2-mawupeng1@huawei.com> In-Reply-To: From: Ard Biesheuvel Date: Wed, 15 Jun 2022 12:03:50 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 1/5] efi: arm64: Introduce ability to find mirrored memory ranges To: Catalin Marinas Cc: Wupeng Ma , Jonathan Corbet , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , Darren Hart , Andy Shevchenko , Mike Rapoport , Andrew Morton , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Paul E. McKenney" , Kees Cook , songmuchun@bytedance.com, Randy Dunlap , damien.lemoal@opensource.wdc.com, Stephen Boyd , Wei Liu , Robin Murphy , David Hildenbrand , Anshuman Khandual , Zhen Lei , Kefeng Wang , gpiccoli@igalia.com, Huacai Chen , Geert Uytterhoeven , vijayb@linux.microsoft.com, Linux Doc Mailing List , Linux Kernel Mailing List , Linux ARM , linux-efi , platform-driver-x86@vger.kernel.org, Linux Memory Management List , linux-riscv Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655287454; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dRdg/ceaP2KIyHdiYXYWscgk/SU8ThHu4rxaq/GnDuk=; b=bUv4TrTj3ym3I07p67DxkdBj2ZEIvZSSS7QnClzYRfp48FYBiZo/yA9qMuHdqzE+VEZQX9 9dmOPYnlHKomGj0OdIZR4tdYAeLqCDHS4dq3UxG/1/Bp8L0HnKB80fvGT0Z4eg8HPpk9Au wyqjGpQNUqDfuECwXhBeOta/YjgfhNs= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=inngKeV8; spf=pass (imf26.hostedemail.com: domain of ardb@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=ardb@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655287454; a=rsa-sha256; cv=none; b=zW8yogzYxLV1O5+A0WMYqs2pvULBLEyun698O6Mtx9NKKArZCk9qUueF51MEcWG8QWrzxV iq3EpNkEHIpXF7Qh6R/Oz5rP/MZhu5Kwas4/MzUrEXYrGsxboGqEF26UmDGrdENMDM5dpc SAENuh3PRleSDgO8CiND4V+VagSgBr0= X-Stat-Signature: rupfthu7s1zgkwiyqntu5gtxajpq4gog X-Rspamd-Queue-Id: 4D1F9140096 X-Rspamd-Server: rspam11 X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=inngKeV8; spf=pass (imf26.hostedemail.com: domain of ardb@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=ardb@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1655287454-835043 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, 15 Jun 2022 at 12:02, Catalin Marinas wrote: > > On Tue, Jun 14, 2022 at 05:21:52PM +0800, Wupeng Ma wrote: > > From: Ma Wupeng > > > > Commit b05b9f5f9dcf ("x86, mirror: x86 enabling - find mirrored memory > > ranges") introduce the efi_find_mirror() function on x86. In order to reuse > > the API we make it public. > > > > Arm64 can support mirrored memory too, so function efi_find_mirror() is added to > > efi_init() to this support for arm64. > > > > Since efi_init() is shared by ARM, arm64 and riscv, this patch will bring > > mirror memory support for these architectures, but this support is only tested > > in arm64. > > > > Signed-off-by: Ma Wupeng > > --- > > arch/x86/include/asm/efi.h | 4 ---- > > arch/x86/platform/efi/efi.c | 23 ----------------------- > > drivers/firmware/efi/efi-init.c | 1 + > > drivers/firmware/efi/efi.c | 23 +++++++++++++++++++++++ > > include/linux/efi.h | 3 +++ > > The subject prefix says "efi: arm64: " but it looks like x86 diffstat > here. You may want to get an ack from the x86 maintainers. > This just moves efi code around, and this is going through the EFI tree, so that should be fine. I'll fix the subject in any case, though.