Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16674464ybl; Wed, 1 Jan 2020 10:48:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzgS/Q9famg0yOtmpzZkFR7fKs3kROKZlODZ900awk+5s8GQSQ5tEIZOl0AtjU+kfbexZm4 X-Received: by 2002:a9d:7c8a:: with SMTP id q10mr82190631otn.124.1577904486883; Wed, 01 Jan 2020 10:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577904486; cv=none; d=google.com; s=arc-20160816; b=fyu70WvhjLIYG7QjpN9liNmUK+tRY1aiDy6A1B2SVZvkVNdQimEkCO9wRqFBcniTsI B5jacp6JL9CLelk0KfmYGDO8/BVRE+ArgUDq6XY1lbI8AAzsC/XJst/JOevX2qY3p/pX obSMUIgBZsbc0KUppfSWXNBhDVTiqsW/dKZqNYhQIhI0AfkGPH/wbjyeOnb2Rm75FiWV dh5/6ZfJ9/uREWYMQ9EF++t98GowH+rkZ/ifcI7sOypYuqeUiuUau1eHgu4HKowV1li9 wQniCnIIfctIOQ96G79bk6/eAg6JNL+HBkiqpMIJCSO1CRz5xLzzZoYo4RaX+HGU42VO YLvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=r8+LgrDTXxrAyzAw0RwZGEpTji/oOjaXA22yzdPDbF0=; b=weFgmSZSOnRYwyYypDTN/YYFZzTLVgKxb5VLkb6CbyDHwXBf7cJ0Fg7GU0+/5oZXpQ JfCj/s6QpE7GlF0Kzf8Kj1n6h/oOouQ1ouFNs2CGt4uDgatCC+HwJOOUwNxS6A/8X2K4 b3DaCtE83U85BnuwK5kvfq6VBuomNxesRH1vsbi/hgKTJbmsGoIYLHHzfTuG21/IQm7q BBw51hgMaNd733v1Au6xFpEceRAmhNUSQLHEM0tfJD2fj8uZMR8OPxWavy/qjw80oIQy +VYWKRPUNQnQw7qAY6BlE3MNPj+aeaNvK4q4phlNwFxcO5EKhX8UPLm1ifEZcvTz7WtF FMtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ER+E7dCH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v76si25005882oif.207.2020.01.01.10.47.53; Wed, 01 Jan 2020 10:48:06 -0800 (PST) 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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ER+E7dCH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbgAAShC (ORCPT + 99 others); Wed, 1 Jan 2020 13:37:02 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:40518 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727297AbgAAShC (ORCPT ); Wed, 1 Jan 2020 13:37:02 -0500 Received: by mail-ot1-f65.google.com with SMTP id w21so46329256otj.7 for ; Wed, 01 Jan 2020 10:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r8+LgrDTXxrAyzAw0RwZGEpTji/oOjaXA22yzdPDbF0=; b=ER+E7dCHHwS2LyjRD/sibbzhy4ilLrTDS0sxOpsAWtNtWZJIzJ4UsXI3Xuc0X39nFR G26VajH34OccYtdr+Spk/68MUyy6L3p5BLJ9hOzQd2yrRlszfiDp47kYOZaYTgEKf4os T4voUx1tZuDlevN8qv5QBHIjfqke6x6qv3H10OFOoCExN9dsWBS4BBZsYFLPPMO1Zkar nbwwUioLXnA/2pNkAakYWqCGgsqFk7LnlpZyEHUxuu7ebvKiM99vhN9fMMZbCV3a6XCN hIIp37SNuEpLr9F/Ypn7IhoqWkyhVkrYKWeb/1cuAT+i001byfj4LipH4tE5sGrd3Ypm a2KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r8+LgrDTXxrAyzAw0RwZGEpTji/oOjaXA22yzdPDbF0=; b=hOuXUU05EaMDOQx+vJAb10YKlHxn2SSAnViyfQyI03+OzBRR/b1fPeCYzbmwEsH2ES vwDXYC9cOV79OZ3FmGlJFex3PgilIIqZPeIQiEYdSZRMedFPXVhekuUECwp6a9VaSH1n i8gY4qLgpR5+OmAnIYuhtr0rxZv/1guX//T57FHJBbnybthsE8Nu+6TgF7lq70F38l7G YPm/EZmeo2JSQ5B364pUTsKiongo5tP4OEcWlp63HiKjArEeXBnx1rXyNtP1LKbAR4LN 17KWnn2fkpnqrGk6KRbvdGI4G5xI0madsOW49chapDw+r3JBp+PBsV70rs5ZG2jJz9lr tgUw== X-Gm-Message-State: APjAAAUzIW5TuaxxS/MQExDecHosvlmbDTPPV92udMEzE5oRtqZn/NiY fOQSVlL4TesbJO+8gfWlP7jDn1PmzrPYEZtYwjlL3Q== X-Received: by 2002:a9d:68cc:: with SMTP id i12mr50572049oto.207.1577903821166; Wed, 01 Jan 2020 10:37:01 -0800 (PST) MIME-Version: 1.0 References: <157782985777.367056.14741265874314204783.stgit@dwillia2-desk3.amr.corp.intel.com> <157782987865.367056.15199592105978588123.stgit@dwillia2-desk3.amr.corp.intel.com> <20200101045141.GA15155@dhcp-128-65.nay.redhat.com> <20200101061505.GA15717@dhcp-128-65.nay.redhat.com> <20200101062047.GA16393@dhcp-128-65.nay.redhat.com> In-Reply-To: <20200101062047.GA16393@dhcp-128-65.nay.redhat.com> From: Dan Williams Date: Wed, 1 Jan 2020 10:36:50 -0800 Message-ID: Subject: Re: [PATCH v2 4/4] efi: Fix handling of multiple efi_fake_mem= entries To: Dave Young Cc: Ingo Molnar , Taku Izumi , Michael Weiser , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Linux Kernel Mailing List , linux-efi , kexec@lists.infradead.org, X86 ML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 31, 2019 at 10:21 PM Dave Young wrote: > > > > Does kexec preserve iomem? I.e. as long as the initial translation of > > > efi entries to e820, and resulting resource tree, is preserved by > > > successive kexec cycles then I think we're ok. > > > > It will not preserve them automatically, but that can be fixed if > > needed. > > > > There are two places: > > 1. the in kernel loader, we can do similar with below commit (for Soft > > Reseved instead): > > commit 980621daf368f2b9aa69c7ea01baa654edb7577b > > Author: Lianbo Jiang > > Date: Tue Apr 23 09:30:07 2019 +0800 > > > > x86/crash: Add e820 reserved ranges to kdump kernel's e820 table > > Oops, that is for kdump only, for kexec, should update the kexec e820 > table. But before doing that we need first to see if this is necessary. We can cross that bridge later, but I expect it will eventually be necessary. The soft-reservation facility will become more prevalent as more platforms ship with DRAM differentiated memory ranges, like high-bandwidth-memory, and the system needs to reserve it from general kernel allocations. See commit 262b45ae3ab4 "x86/efi: EFI soft reservation to E820 enumeration" and commit fe3e5e65c06e "efi: Enumerate EFI_MEMORY_SP" for more details.