Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1792533imm; Fri, 6 Jul 2018 06:39:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpftwuxs2pSgBVqGSYJuU3W7h6nGzobMoxbPWCmc66dOZ/wWeaJRnQU+hRXYnErTNKrKkhL7 X-Received: by 2002:a62:d1b:: with SMTP id v27-v6mr4535098pfi.87.1530884389755; Fri, 06 Jul 2018 06:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530884389; cv=none; d=google.com; s=arc-20160816; b=XpTHEEJ/i208PIxRYXSzHN6ZxHZhVPDRzaMAni62+kJrMSJsTR9JVlExgu6IFhKwI0 lSh1Y0D+k0vFzBcOV604Qk2nXVwu2Sh4g1RZDv/83DOXvCTBaw69dH1yXKc62tXcjBPo BMH9DG9DX2Ze1Ztn92OWa2ktvrmlTHSQMsuVAU7UHUaqSoByez6f2GB7ZOgJTnb9MyY+ HW4iZeWQ85qXXTh0b6yOrlFMVzTyxPs6X0ghZQFQ0fR+2MlAKpaaisyKa7N/ccC7WIv8 o8BTq2ggwkNRiPufj9snYYHg8RboHwt9e0L9SwVTBpsAeqhkWDRRvZWcTFmvRESaj2ap pQHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:arc-authentication-results; bh=3aEHwWjhgXQBBbqq6F04QtEx3xq09q0GNAVgYXHKgF4=; b=sYOPezgloRZJNyZ8oymDUl+8yhiLBPCnNiuQXBmpg+UvIGhEqa48bNUrhVRYLSh94Z Ry7UU839/2kPAQjBf0lbWR9V6k1VRXWP6Nznw1RhqarncBmG8f/Pih1Ok+a8sTTy+3JL yL8X7ylhkRQ6LCfjK8clEQ0D+M5afJ0P6oPSR78nImdR2bJOXo3+dUR8wreiDwWNi1Td GNAdQ26HzldZwxGr69lsCzfg1XjPGVy4JUUGw0laCQW1AMN2+vK1wj3YEzDQRUKF327V iqdAPMQ0XdxLsPdlJC+RqXjj2kAL80iR1HUsOfD4MHIuCQs6Rr8s6oVlZdcMvHo94yIw iVfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26-v6si7853072pgf.10.2018.07.06.06.39.31; Fri, 06 Jul 2018 06:39:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070AbeGFNhW (ORCPT + 99 others); Fri, 6 Jul 2018 09:37:22 -0400 Received: from foss.arm.com ([217.140.101.70]:36908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932851AbeGFNhT (ORCPT ); Fri, 6 Jul 2018 09:37:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1A455ED1; Fri, 6 Jul 2018 06:37:19 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DEDD83F5BA; Fri, 6 Jul 2018 06:37:18 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 6BF101AE3105; Fri, 6 Jul 2018 14:37:59 +0100 (BST) Date: Fri, 6 Jul 2018 14:37:59 +0100 From: Will Deacon To: AKASHI Takahiro , Ard Biesheuvel , James Morse , Catalin Marinas , Andrew Morton , "Baicar, Tyler" , Bhupesh Sharma , Dave Young , Mark Rutland , Al Stone , Graeme Gregory , Hanjun Guo , Lorenzo Pieralisi , Sudeep Holla , linux-arm-kernel , Linux Kernel Mailing List , Kexec Mailing List Subject: Re: [PATCH v2 3/4] efi/arm: map UEFI memory map earlier on boot Message-ID: <20180706133758.GB11172@arm.com> References: <20180619064424.6642-1-takahiro.akashi@linaro.org> <20180619064424.6642-4-takahiro.akashi@linaro.org> <20180704170655.GD8370@arm.com> <20180705094313.GL28220@linaro.org> <20180705164824.GA7445@arm.com> <20180706004226.GO28220@linaro.org> <20180706013311.GP28220@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706013311.GP28220@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Akashi, On Fri, Jul 06, 2018 at 10:33:13AM +0900, AKASHI Takahiro wrote: > On Fri, Jul 06, 2018 at 09:42:28AM +0900, AKASHI Takahiro wrote: > > I almost believed that my patch#2 was just a preparatory one for patch#3 > > where arm_enable_runtime_services() is moved aggressively forward. > > But acpi_os_ioremap() is not a __init function and I can now agree to > > keeping patch#2. > > > > Meanwhile, the consequent code with Ard's patch would look like: > > ---8<--- > > static int __init arm_enable_runtime_services(void) > > { > > ... > > efi_memmap_unmap(); > > > > mapsize = efi.memmap.desc_size * efi.memmap.nr_map; > > > > if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { > > pr_err("Failed to remap EFI memory map\n"); > > return 0; > > } > > ... > > } > > --->8--- > > It seems to me that it makes no sense. > > Oops, it does. Comments at efi_memmap_init_late() say: > ---8<--- > * The reason there are two EFI memmap initialisation > * (efi_memmap_init_early() and this late version) is because the > * early EFI memmap should be explicitly unmapped once EFI > * initialisation is complete as the fixmap space used to map the EFI > * memmap (via early_memremap()) is a scarce resource. > --->8--- > > > Is it okay to take them out? > > Never mind. I'm struggling with your monologue... Please can you send a v3 of the series, containing the patches that you think are necessary, along with the Acks you've collected? Thanks, Will