public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat•com>
To: linux-kernel@vger•kernel.org
Cc: linux-hyperv@vger•kernel.org, Michal Hocko <mhocko@suse•com>,
	"Michael S . Tsirkin" <mst@redhat•com>,
	Jason Wang <jasowang@redhat•com>,
	Dave Hansen <dave.hansen@linux•intel.com>,
	Heiko Carstens <heiko.carstens@de•ibm.com>,
	Pingfan Liu <kernelfans@gmail•com>,
	virtualization@lists•linux-foundation.org, linux-mm@kvack•org,
	Paul Mackerras <paulus@samba•org>,
	"K. Y. Srinivasan" <kys@microsoft•com>,
	Dan Williams <dan.j.williams@intel•com>,
	virtio-dev@lists•oasis-open.org, Wei Liu <wei.liu@kernel•org>,
	Stefano Stabellini <sstabellini@kernel•org>,
	Dave Jiang <dave.jiang@intel•com>, Baoquan He <bhe@redhat•com>,
	linux-nvdimm@lists•01.org, David Hildenbrand <david@redhat•com>,
	linux-acpi@vger•kernel.org, Wei Yang <richard.weiyang@gmail•com>,
	xen-devel@lists•xenproject.org, Len Brown <lenb@kernel•org>,
	Nathan Lynch <nathanl@linux•ibm.com>,
	Stephen Hemminger <sthemmin@microsoft•com>,
	Pavel Tatashin <pasha.tatashin@soleen•com>,
	Vasily Gorbik <gor@linux•ibm.com>,
	linux-s390@vger•kernel.org,
	Haiyang Zhang <haiyangz@microsoft•com>,
	Leonardo Bras <leobras.c@gmail•com>,
	Boris Ostrovsky <boris.ostrovsky@oracle•com>,
	Michal Hocko <mhocko@kernel•org>,
	Christian Borntraeger <borntraeger@de•ibm.com>,
	Oscar Salvador <osalvador@suse•de>,
	Juergen Gross <jgross@suse•com>,
	Pankaj Gupta <pankaj.gupta.linux@gmail•com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation•org>,
	"Rafael J. Wysocki" <rjw@rjwysocki•net>,
	Thomas Gleixner <tglx@linutronix•de>,
	Eric Biederman <ebiederm@xmission•com>,
	Vishal Verma <vishal.l.verma@intel•com>,
	Andrew Morton <akpm@linux-foundation•org>,
	linuxppc-dev@lists•ozlabs.org
Subject: [PATCH v2 0/3] mm/memory_hotplug: Allow to not create firmware memmap entries
Date: Thu, 30 Apr 2020 12:29:05 +0200	[thread overview]
Message-ID: <20200430102908.10107-1-david@redhat.com> (raw)

This is the follow up of [1]:
	[PATCH v1 0/3] mm/memory_hotplug: Make virtio-mem play nicely with
	kexec-tools

I realized that this is not only helpful for virtio-mem, but also for
dax/kmem - it's a fix for that use case (see patch #3) of persistent
memory.

Also, while testing, I discovered that kexec-tools will *not* add dax/kmem
memory (anything not directly under the root when parsing /proc/iomem) to
the elfcorehdr, so this memory will never get included in a dump. This
probably has to be fixed in kexec-tools - virtio-mem will require this as
well.

v1 -> v2:
- Don't change the resource name
- Rename the flag to MHP_NO_FIRMWARE_MEMMAP to reflect what it is doing
- Rephrase subjects/descriptions
- Use the flag for dax/kmem

I'll have to rebase virtio-mem on these changes, there will be a resend.

[1] https://lkml.kernel.org/r/20200429160803.109056-1-david@redhat.com

David Hildenbrand (3):
  mm/memory_hotplug: Prepare passing flags to add_memory() and friends
  mm/memory_hotplug: Introduce MHP_NO_FIRMWARE_MEMMAP
  device-dax: Add system ram (add_memory()) with MHP_NO_FIRMWARE_MEMMAP

 arch/powerpc/platforms/powernv/memtrace.c       |  2 +-
 arch/powerpc/platforms/pseries/hotplug-memory.c |  2 +-
 drivers/acpi/acpi_memhotplug.c                  |  2 +-
 drivers/base/memory.c                           |  2 +-
 drivers/dax/kmem.c                              |  3 ++-
 drivers/hv/hv_balloon.c                         |  2 +-
 drivers/s390/char/sclp_cmd.c                    |  2 +-
 drivers/xen/balloon.c                           |  2 +-
 include/linux/memory_hotplug.h                  | 15 ++++++++++++---
 mm/memory_hotplug.c                             | 14 ++++++++------
 10 files changed, 29 insertions(+), 17 deletions(-)

-- 
2.25.3


             reply	other threads:[~2020-04-30 10:32 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 10:29 David Hildenbrand [this message]
2020-04-30 10:29 ` [PATCH v2 1/3] mm/memory_hotplug: Prepare passing flags to add_memory() and friends David Hildenbrand
2020-04-30 10:29 ` [PATCH v2 2/3] mm/memory_hotplug: Introduce MHP_NO_FIRMWARE_MEMMAP David Hildenbrand
2020-04-30 15:38   ` Eric W. Biederman
2020-04-30 15:52     ` David Hildenbrand
2020-04-30 16:04       ` Dave Hansen
2020-04-30 16:33       ` Eric W. Biederman
2020-04-30 16:49         ` David Hildenbrand
2020-04-30 18:06           ` Eric W. Biederman
2020-04-30 18:43             ` David Hildenbrand
2020-04-30 18:58               ` Dan Williams
2020-04-30 22:24               ` Andrew Morton
2020-05-01  9:34                 ` David Hildenbrand
2020-05-01 16:56                   ` Dan Williams
2020-05-01 17:21                     ` David Hildenbrand
2020-05-01 17:39                       ` Dan Williams
2020-05-01 17:45                         ` David Hildenbrand
2020-05-01 17:51                           ` David Hildenbrand
2020-05-01 18:03                             ` Dan Williams
2020-05-01 18:14                               ` David Hildenbrand
2020-05-01 18:43                                 ` Dan Williams
2020-05-01 19:17                                   ` David Hildenbrand
2020-05-01 20:12                                     ` Dan Williams
2020-05-01 21:10                                       ` David Hildenbrand
2020-05-01 21:52                                         ` Dan Williams
2020-05-02  9:26                                           ` David Hildenbrand
2020-05-02 18:03                                             ` Dan Williams
2020-04-30 10:29 ` [PATCH v2 3/3] device-dax: Add system ram (add_memory()) with MHP_NO_FIRMWARE_MEMMAP David Hildenbrand
2020-04-30 11:23   ` Dave Hansen
2020-04-30 15:28     ` David Hildenbrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200430102908.10107-1-david@redhat.com \
    --to=david@redhat$(echo .)com \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=bhe@redhat$(echo .)com \
    --cc=boris.ostrovsky@oracle$(echo .)com \
    --cc=borntraeger@de$(echo .)ibm.com \
    --cc=dan.j.williams@intel$(echo .)com \
    --cc=dave.hansen@linux$(echo .)intel.com \
    --cc=dave.jiang@intel$(echo .)com \
    --cc=ebiederm@xmission$(echo .)com \
    --cc=gor@linux$(echo .)ibm.com \
    --cc=gregkh@linuxfoundation$(echo .)org \
    --cc=haiyangz@microsoft$(echo .)com \
    --cc=heiko.carstens@de$(echo .)ibm.com \
    --cc=jasowang@redhat$(echo .)com \
    --cc=jgross@suse$(echo .)com \
    --cc=kernelfans@gmail$(echo .)com \
    --cc=kys@microsoft$(echo .)com \
    --cc=lenb@kernel$(echo .)org \
    --cc=leobras.c@gmail$(echo .)com \
    --cc=linux-acpi@vger$(echo .)kernel.org \
    --cc=linux-hyperv@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mm@kvack$(echo .)org \
    --cc=linux-nvdimm@lists$(echo .)01.org \
    --cc=linux-s390@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=mhocko@kernel$(echo .)org \
    --cc=mhocko@suse$(echo .)com \
    --cc=mst@redhat$(echo .)com \
    --cc=nathanl@linux$(echo .)ibm.com \
    --cc=osalvador@suse$(echo .)de \
    --cc=pankaj.gupta.linux@gmail$(echo .)com \
    --cc=pasha.tatashin@soleen$(echo .)com \
    --cc=paulus@samba$(echo .)org \
    --cc=richard.weiyang@gmail$(echo .)com \
    --cc=rjw@rjwysocki$(echo .)net \
    --cc=sstabellini@kernel$(echo .)org \
    --cc=sthemmin@microsoft$(echo .)com \
    --cc=tglx@linutronix$(echo .)de \
    --cc=virtio-dev@lists$(echo .)oasis-open.org \
    --cc=virtualization@lists$(echo .)linux-foundation.org \
    --cc=vishal.l.verma@intel$(echo .)com \
    --cc=wei.liu@kernel$(echo .)org \
    --cc=xen-devel@lists$(echo .)xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox