All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-05 18:54 ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-05 18:54 UTC (permalink / raw)
  To: akpm, bp
  Cc: torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

This patch-set enhances the iomem table and its search interfacs, and
then changes EINJ to support NVDIMM.

 - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
   make the iomem search interfaces work with resource flags with
   modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
   for backward compatibility.

 - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
   Drivers can assign their unique descritor to a range when they support
   the iomem search interfaces.

 - Patches 4-9 changes initializations of resource entries.  They set
   the System RAM type to System RAM ranges, set I/O resource descriptors
   to the regions targeted by the iomem search interfaces, and change
   to call kzalloc() where kmalloc() is used to allocate struct resource
   ranges.

 - Patches 10-14 extend the iomem interfaces to check System RAM ranges
   with the System RAM type and the I/O resource descriptor.

 - Patch 15-16 remove deprecated walk_iomem_res().

 - Patch 17 changes the EINJ driver to allow injecting a memory error
   to NVDIMM.

---
v3:
 - Remove the walk_iomem_res() call with "GART" in crash.c since it is
   no longer needed. Then kill walk_iomem_res(). (Borislav Petkov,
   Dave Young)
 - Change to use crashk_res.desc at the walk_iomem_res_desc() call in
   kexec_add_buffer(). (Minfei Huang)

v2:
 - Add 'desc' to struct resource, and add a new iomem interface to
   search with the desc. (Borislav Petkov)
 - Add a check to checkpatch.pl to warn on new use of walk_iomem_res().
   (Borislav Petkov)

v1:
 - Searching for System RAM in the resource table should not require
   strcmp(). (Borislav Petkov)
 - Add a new System RAM type as a modifier to IORESOURCE_MEM.
   (Linus Torvalds)
 - NVDIMM check needs to be able to distinguish legacy and NFIT pmem
   ranges. (Dan Williams)

---
Toshi Kani (17):
 01/17 resource: Add System RAM resource type
 02/17 resource: make resource flags handled properly
 03/17 resource: Add I/O resource descriptor
 04/17 x86/e820: Set System RAM type and descriptor
 05/17 ia64: Set System RAM type and descriptor
 06/17 arch: Set IORESOURCE_SYSTEM_RAM to System RAM
 07/17 kexec: Set IORESOURCE_SYSTEM_RAM to System RAM
 08/17 xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM
 09/17 drivers: Initialize resource entry to zero
 10/17 resource: Change walk_system_ram to use System RAM type
 11/17 arm/samsung: Change s3c_pm_run_res() to use System RAM type
 12/17 memremap: Change region_intersects() to take @flags and @desc
 13/17 resource: Add walk_iomem_res_desc()
 14/17 x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search
 15/17 x86/kexec: Remove walk_iomem_res() call with GART
 16/17 resource: Kill walk_iomem_res()
 17/17 ACPI/EINJ: Allow memory error injection to NVDIMM

---
 arch/arm/kernel/setup.c            |  6 +--
 arch/arm/plat-samsung/pm-check.c   |  4 +-
 arch/arm64/kernel/setup.c          |  6 +--
 arch/avr32/kernel/setup.c          |  6 +--
 arch/ia64/kernel/efi.c             | 13 ++++--
 arch/ia64/kernel/setup.c           |  6 +--
 arch/m32r/kernel/setup.c           |  4 +-
 arch/mips/kernel/setup.c           | 10 +++--
 arch/parisc/mm/init.c              |  6 +--
 arch/powerpc/mm/mem.c              |  2 +-
 arch/s390/kernel/setup.c           |  8 ++--
 arch/score/kernel/setup.c          |  2 +-
 arch/sh/kernel/setup.c             |  8 ++--
 arch/sparc/mm/init_64.c            |  8 ++--
 arch/tile/kernel/setup.c           | 11 +++--
 arch/unicore32/kernel/setup.c      |  6 +--
 arch/x86/kernel/crash.c            | 41 ++-----------------
 arch/x86/kernel/e820.c             | 38 ++++++++++++++++-
 arch/x86/kernel/pmem.c             |  4 +-
 arch/x86/kernel/setup.c            |  6 +--
 drivers/acpi/acpi_platform.c       |  2 +-
 drivers/acpi/apei/einj.c           | 15 +++++--
 drivers/nvdimm/e820.c              |  2 +-
 drivers/parisc/eisa_enumerator.c   |  4 +-
 drivers/rapidio/rio.c              |  8 ++--
 drivers/sh/superhyway/superhyway.c |  2 +-
 drivers/xen/balloon.c              |  2 +-
 include/linux/ioport.h             | 33 ++++++++++++++-
 include/linux/mm.h                 |  3 +-
 kernel/kexec_core.c                |  8 ++--
 kernel/kexec_file.c                |  8 ++--
 kernel/memremap.c                  | 13 +++---
 kernel/resource.c                  | 83 ++++++++++++++++++++++----------------
 mm/memory_hotplug.c                |  2 +-
 34 files changed, 225 insertions(+), 155 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-05 18:54 ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-05 18:54 UTC (permalink / raw)
  To: akpm, bp
  Cc: torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

This patch-set enhances the iomem table and its search interfacs, and
then changes EINJ to support NVDIMM.

 - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
   make the iomem search interfaces work with resource flags with
   modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
   for backward compatibility.

 - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
   Drivers can assign their unique descritor to a range when they support
   the iomem search interfaces.

 - Patches 4-9 changes initializations of resource entries.  They set
   the System RAM type to System RAM ranges, set I/O resource descriptors
   to the regions targeted by the iomem search interfaces, and change
   to call kzalloc() where kmalloc() is used to allocate struct resource
   ranges.

 - Patches 10-14 extend the iomem interfaces to check System RAM ranges
   with the System RAM type and the I/O resource descriptor.

 - Patch 15-16 remove deprecated walk_iomem_res().

 - Patch 17 changes the EINJ driver to allow injecting a memory error
   to NVDIMM.

---
v3:
 - Remove the walk_iomem_res() call with "GART" in crash.c since it is
   no longer needed. Then kill walk_iomem_res(). (Borislav Petkov,
   Dave Young)
 - Change to use crashk_res.desc at the walk_iomem_res_desc() call in
   kexec_add_buffer(). (Minfei Huang)

v2:
 - Add 'desc' to struct resource, and add a new iomem interface to
   search with the desc. (Borislav Petkov)
 - Add a check to checkpatch.pl to warn on new use of walk_iomem_res().
   (Borislav Petkov)

v1:
 - Searching for System RAM in the resource table should not require
   strcmp(). (Borislav Petkov)
 - Add a new System RAM type as a modifier to IORESOURCE_MEM.
   (Linus Torvalds)
 - NVDIMM check needs to be able to distinguish legacy and NFIT pmem
   ranges. (Dan Williams)

---
Toshi Kani (17):
 01/17 resource: Add System RAM resource type
 02/17 resource: make resource flags handled properly
 03/17 resource: Add I/O resource descriptor
 04/17 x86/e820: Set System RAM type and descriptor
 05/17 ia64: Set System RAM type and descriptor
 06/17 arch: Set IORESOURCE_SYSTEM_RAM to System RAM
 07/17 kexec: Set IORESOURCE_SYSTEM_RAM to System RAM
 08/17 xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM
 09/17 drivers: Initialize resource entry to zero
 10/17 resource: Change walk_system_ram to use System RAM type
 11/17 arm/samsung: Change s3c_pm_run_res() to use System RAM type
 12/17 memremap: Change region_intersects() to take @flags and @desc
 13/17 resource: Add walk_iomem_res_desc()
 14/17 x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search
 15/17 x86/kexec: Remove walk_iomem_res() call with GART
 16/17 resource: Kill walk_iomem_res()
 17/17 ACPI/EINJ: Allow memory error injection to NVDIMM

---
 arch/arm/kernel/setup.c            |  6 +--
 arch/arm/plat-samsung/pm-check.c   |  4 +-
 arch/arm64/kernel/setup.c          |  6 +--
 arch/avr32/kernel/setup.c          |  6 +--
 arch/ia64/kernel/efi.c             | 13 ++++--
 arch/ia64/kernel/setup.c           |  6 +--
 arch/m32r/kernel/setup.c           |  4 +-
 arch/mips/kernel/setup.c           | 10 +++--
 arch/parisc/mm/init.c              |  6 +--
 arch/powerpc/mm/mem.c              |  2 +-
 arch/s390/kernel/setup.c           |  8 ++--
 arch/score/kernel/setup.c          |  2 +-
 arch/sh/kernel/setup.c             |  8 ++--
 arch/sparc/mm/init_64.c            |  8 ++--
 arch/tile/kernel/setup.c           | 11 +++--
 arch/unicore32/kernel/setup.c      |  6 +--
 arch/x86/kernel/crash.c            | 41 ++-----------------
 arch/x86/kernel/e820.c             | 38 ++++++++++++++++-
 arch/x86/kernel/pmem.c             |  4 +-
 arch/x86/kernel/setup.c            |  6 +--
 drivers/acpi/acpi_platform.c       |  2 +-
 drivers/acpi/apei/einj.c           | 15 +++++--
 drivers/nvdimm/e820.c              |  2 +-
 drivers/parisc/eisa_enumerator.c   |  4 +-
 drivers/rapidio/rio.c              |  8 ++--
 drivers/sh/superhyway/superhyway.c |  2 +-
 drivers/xen/balloon.c              |  2 +-
 include/linux/ioport.h             | 33 ++++++++++++++-
 include/linux/mm.h                 |  3 +-
 kernel/kexec_core.c                |  8 ++--
 kernel/kexec_file.c                |  8 ++--
 kernel/memremap.c                  | 13 +++---
 kernel/resource.c                  | 83 ++++++++++++++++++++++----------------
 mm/memory_hotplug.c                |  2 +-
 34 files changed, 225 insertions(+), 155 deletions(-)

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-05 18:54 ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-05 18:54 UTC (permalink / raw)
  To: akpm, bp
  Cc: torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

This patch-set enhances the iomem table and its search interfacs, and
then changes EINJ to support NVDIMM.

 - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
   make the iomem search interfaces work with resource flags with
   modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
   for backward compatibility.

 - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
   Drivers can assign their unique descritor to a range when they support
   the iomem search interfaces.

 - Patches 4-9 changes initializations of resource entries.  They set
   the System RAM type to System RAM ranges, set I/O resource descriptors
   to the regions targeted by the iomem search interfaces, and change
   to call kzalloc() where kmalloc() is used to allocate struct resource
   ranges.

 - Patches 10-14 extend the iomem interfaces to check System RAM ranges
   with the System RAM type and the I/O resource descriptor.

 - Patch 15-16 remove deprecated walk_iomem_res().

 - Patch 17 changes the EINJ driver to allow injecting a memory error
   to NVDIMM.

---
v3:
 - Remove the walk_iomem_res() call with "GART" in crash.c since it is
   no longer needed. Then kill walk_iomem_res(). (Borislav Petkov,
   Dave Young)
 - Change to use crashk_res.desc at the walk_iomem_res_desc() call in
   kexec_add_buffer(). (Minfei Huang)

v2:
 - Add 'desc' to struct resource, and add a new iomem interface to
   search with the desc. (Borislav Petkov)
 - Add a check to checkpatch.pl to warn on new use of walk_iomem_res().
   (Borislav Petkov)

v1:
 - Searching for System RAM in the resource table should not require
   strcmp(). (Borislav Petkov)
 - Add a new System RAM type as a modifier to IORESOURCE_MEM.
   (Linus Torvalds)
 - NVDIMM check needs to be able to distinguish legacy and NFIT pmem
   ranges. (Dan Williams)

---
Toshi Kani (17):
 01/17 resource: Add System RAM resource type
 02/17 resource: make resource flags handled properly
 03/17 resource: Add I/O resource descriptor
 04/17 x86/e820: Set System RAM type and descriptor
 05/17 ia64: Set System RAM type and descriptor
 06/17 arch: Set IORESOURCE_SYSTEM_RAM to System RAM
 07/17 kexec: Set IORESOURCE_SYSTEM_RAM to System RAM
 08/17 xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM
 09/17 drivers: Initialize resource entry to zero
 10/17 resource: Change walk_system_ram to use System RAM type
 11/17 arm/samsung: Change s3c_pm_run_res() to use System RAM type
 12/17 memremap: Change region_intersects() to take @flags and @desc
 13/17 resource: Add walk_iomem_res_desc()
 14/17 x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search
 15/17 x86/kexec: Remove walk_iomem_res() call with GART
 16/17 resource: Kill walk_iomem_res()
 17/17 ACPI/EINJ: Allow memory error injection to NVDIMM

---
 arch/arm/kernel/setup.c            |  6 +--
 arch/arm/plat-samsung/pm-check.c   |  4 +-
 arch/arm64/kernel/setup.c          |  6 +--
 arch/avr32/kernel/setup.c          |  6 +--
 arch/ia64/kernel/efi.c             | 13 ++++--
 arch/ia64/kernel/setup.c           |  6 +--
 arch/m32r/kernel/setup.c           |  4 +-
 arch/mips/kernel/setup.c           | 10 +++--
 arch/parisc/mm/init.c              |  6 +--
 arch/powerpc/mm/mem.c              |  2 +-
 arch/s390/kernel/setup.c           |  8 ++--
 arch/score/kernel/setup.c          |  2 +-
 arch/sh/kernel/setup.c             |  8 ++--
 arch/sparc/mm/init_64.c            |  8 ++--
 arch/tile/kernel/setup.c           | 11 +++--
 arch/unicore32/kernel/setup.c      |  6 +--
 arch/x86/kernel/crash.c            | 41 ++-----------------
 arch/x86/kernel/e820.c             | 38 ++++++++++++++++-
 arch/x86/kernel/pmem.c             |  4 +-
 arch/x86/kernel/setup.c            |  6 +--
 drivers/acpi/acpi_platform.c       |  2 +-
 drivers/acpi/apei/einj.c           | 15 +++++--
 drivers/nvdimm/e820.c              |  2 +-
 drivers/parisc/eisa_enumerator.c   |  4 +-
 drivers/rapidio/rio.c              |  8 ++--
 drivers/sh/superhyway/superhyway.c |  2 +-
 drivers/xen/balloon.c              |  2 +-
 include/linux/ioport.h             | 33 ++++++++++++++-
 include/linux/mm.h                 |  3 +-
 kernel/kexec_core.c                |  8 ++--
 kernel/kexec_file.c                |  8 ++--
 kernel/memremap.c                  | 13 +++---
 kernel/resource.c                  | 83 ++++++++++++++++++++++----------------
 mm/memory_hotplug.c                |  2 +-
 34 files changed, 225 insertions(+), 155 deletions(-)

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-05 18:54 ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-05 18:54 UTC (permalink / raw)
  To: akpm, bp
  Cc: torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

This patch-set enhances the iomem table and its search interfacs, and
then changes EINJ to support NVDIMM.

 - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
   make the iomem search interfaces work with resource flags with
   modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
   for backward compatibility.

 - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
   Drivers can assign their unique descritor to a range when they support
   the iomem search interfaces.

 - Patches 4-9 changes initializations of resource entries.  They set
   the System RAM type to System RAM ranges, set I/O resource descriptors
   to the regions targeted by the iomem search interfaces, and change
   to call kzalloc() where kmalloc() is used to allocate struct resource
   ranges.

 - Patches 10-14 extend the iomem interfaces to check System RAM ranges
   with the System RAM type and the I/O resource descriptor.

 - Patch 15-16 remove deprecated walk_iomem_res().

 - Patch 17 changes the EINJ driver to allow injecting a memory error
   to NVDIMM.

---
v3:
 - Remove the walk_iomem_res() call with "GART" in crash.c since it is
   no longer needed. Then kill walk_iomem_res(). (Borislav Petkov,
   Dave Young)
 - Change to use crashk_res.desc at the walk_iomem_res_desc() call in
   kexec_add_buffer(). (Minfei Huang)

v2:
 - Add 'desc' to struct resource, and add a new iomem interface to
   search with the desc. (Borislav Petkov)
 - Add a check to checkpatch.pl to warn on new use of walk_iomem_res().
   (Borislav Petkov)

v1:
 - Searching for System RAM in the resource table should not require
   strcmp(). (Borislav Petkov)
 - Add a new System RAM type as a modifier to IORESOURCE_MEM.
   (Linus Torvalds)
 - NVDIMM check needs to be able to distinguish legacy and NFIT pmem
   ranges. (Dan Williams)

---
Toshi Kani (17):
 01/17 resource: Add System RAM resource type
 02/17 resource: make resource flags handled properly
 03/17 resource: Add I/O resource descriptor
 04/17 x86/e820: Set System RAM type and descriptor
 05/17 ia64: Set System RAM type and descriptor
 06/17 arch: Set IORESOURCE_SYSTEM_RAM to System RAM
 07/17 kexec: Set IORESOURCE_SYSTEM_RAM to System RAM
 08/17 xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM
 09/17 drivers: Initialize resource entry to zero
 10/17 resource: Change walk_system_ram to use System RAM type
 11/17 arm/samsung: Change s3c_pm_run_res() to use System RAM type
 12/17 memremap: Change region_intersects() to take @flags and @desc
 13/17 resource: Add walk_iomem_res_desc()
 14/17 x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search
 15/17 x86/kexec: Remove walk_iomem_res() call with GART
 16/17 resource: Kill walk_iomem_res()
 17/17 ACPI/EINJ: Allow memory error injection to NVDIMM

---
 arch/arm/kernel/setup.c            |  6 +--
 arch/arm/plat-samsung/pm-check.c   |  4 +-
 arch/arm64/kernel/setup.c          |  6 +--
 arch/avr32/kernel/setup.c          |  6 +--
 arch/ia64/kernel/efi.c             | 13 ++++--
 arch/ia64/kernel/setup.c           |  6 +--
 arch/m32r/kernel/setup.c           |  4 +-
 arch/mips/kernel/setup.c           | 10 +++--
 arch/parisc/mm/init.c              |  6 +--
 arch/powerpc/mm/mem.c              |  2 +-
 arch/s390/kernel/setup.c           |  8 ++--
 arch/score/kernel/setup.c          |  2 +-
 arch/sh/kernel/setup.c             |  8 ++--
 arch/sparc/mm/init_64.c            |  8 ++--
 arch/tile/kernel/setup.c           | 11 +++--
 arch/unicore32/kernel/setup.c      |  6 +--
 arch/x86/kernel/crash.c            | 41 ++-----------------
 arch/x86/kernel/e820.c             | 38 ++++++++++++++++-
 arch/x86/kernel/pmem.c             |  4 +-
 arch/x86/kernel/setup.c            |  6 +--
 drivers/acpi/acpi_platform.c       |  2 +-
 drivers/acpi/apei/einj.c           | 15 +++++--
 drivers/nvdimm/e820.c              |  2 +-
 drivers/parisc/eisa_enumerator.c   |  4 +-
 drivers/rapidio/rio.c              |  8 ++--
 drivers/sh/superhyway/superhyway.c |  2 +-
 drivers/xen/balloon.c              |  2 +-
 include/linux/ioport.h             | 33 ++++++++++++++-
 include/linux/mm.h                 |  3 +-
 kernel/kexec_core.c                |  8 ++--
 kernel/kexec_file.c                |  8 ++--
 kernel/memremap.c                  | 13 +++---
 kernel/resource.c                  | 83 ++++++++++++++++++++++----------------
 mm/memory_hotplug.c                |  2 +-
 34 files changed, 225 insertions(+), 155 deletions(-)

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-05 18:54 ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-05 18:54 UTC (permalink / raw)
  To: akpm, bp
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, dan.j.williams, dyoung,
	linux-nvdimm

This patch-set enhances the iomem table and its search interfacs, and
then changes EINJ to support NVDIMM.

 - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
   make the iomem search interfaces work with resource flags with
   modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
   for backward compatibility.

 - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
   Drivers can assign their unique descritor to a range when they support
   the iomem search interfaces.

 - Patches 4-9 changes initializations of resource entries.  They set
   the System RAM type to System RAM ranges, set I/O resource descriptors
   to the regions targeted by the iomem search interfaces, and change
   to call kzalloc() where kmalloc() is used to allocate struct resource
   ranges.

 - Patches 10-14 extend the iomem interfaces to check System RAM ranges
   with the System RAM type and the I/O resource descriptor.

 - Patch 15-16 remove deprecated walk_iomem_res().

 - Patch 17 changes the EINJ driver to allow injecting a memory error
   to NVDIMM.

---
v3:
 - Remove the walk_iomem_res() call with "GART" in crash.c since it is
   no longer needed. Then kill walk_iomem_res(). (Borislav Petkov,
   Dave Young)
 - Change to use crashk_res.desc at the walk_iomem_res_desc() call in
   kexec_add_buffer(). (Minfei Huang)

v2:
 - Add 'desc' to struct resource, and add a new iomem interface to
   search with the desc. (Borislav Petkov)
 - Add a check to checkpatch.pl to warn on new use of walk_iomem_res().
   (Borislav Petkov)

v1:
 - Searching for System RAM in the resource table should not require
   strcmp(). (Borislav Petkov)
 - Add a new System RAM type as a modifier to IORESOURCE_MEM.
   (Linus Torvalds)
 - NVDIMM check needs to be able to distinguish legacy and NFIT pmem
   ranges. (Dan Williams)

---
Toshi Kani (17):
 01/17 resource: Add System RAM resource type
 02/17 resource: make resource flags handled properly
 03/17 resource: Add I/O resource descriptor
 04/17 x86/e820: Set System RAM type and descriptor
 05/17 ia64: Set System RAM type and descriptor
 06/17 arch: Set IORESOURCE_SYSTEM_RAM to System RAM
 07/17 kexec: Set IORESOURCE_SYSTEM_RAM to System RAM
 08/17 xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM
 09/17 drivers: Initialize resource entry to zero
 10/17 resource: Change walk_system_ram to use System RAM type
 11/17 arm/samsung: Change s3c_pm_run_res() to use System RAM type
 12/17 memremap: Change region_intersects() to take @flags and @desc
 13/17 resource: Add walk_iomem_res_desc()
 14/17 x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search
 15/17 x86/kexec: Remove walk_iomem_res() call with GART
 16/17 resource: Kill walk_iomem_res()
 17/17 ACPI/EINJ: Allow memory error injection to NVDIMM

---
 arch/arm/kernel/setup.c            |  6 +--
 arch/arm/plat-samsung/pm-check.c   |  4 +-
 arch/arm64/kernel/setup.c          |  6 +--
 arch/avr32/kernel/setup.c          |  6 +--
 arch/ia64/kernel/efi.c             | 13 ++++--
 arch/ia64/kernel/setup.c           |  6 +--
 arch/m32r/kernel/setup.c           |  4 +-
 arch/mips/kernel/setup.c           | 10 +++--
 arch/parisc/mm/init.c              |  6 +--
 arch/powerpc/mm/mem.c              |  2 +-
 arch/s390/kernel/setup.c           |  8 ++--
 arch/score/kernel/setup.c          |  2 +-
 arch/sh/kernel/setup.c             |  8 ++--
 arch/sparc/mm/init_64.c            |  8 ++--
 arch/tile/kernel/setup.c           | 11 +++--
 arch/unicore32/kernel/setup.c      |  6 +--
 arch/x86/kernel/crash.c            | 41 ++-----------------
 arch/x86/kernel/e820.c             | 38 ++++++++++++++++-
 arch/x86/kernel/pmem.c             |  4 +-
 arch/x86/kernel/setup.c            |  6 +--
 drivers/acpi/acpi_platform.c       |  2 +-
 drivers/acpi/apei/einj.c           | 15 +++++--
 drivers/nvdimm/e820.c              |  2 +-
 drivers/parisc/eisa_enumerator.c   |  4 +-
 drivers/rapidio/rio.c              |  8 ++--
 drivers/sh/superhyway/superhyway.c |  2 +-
 drivers/xen/balloon.c              |  2 +-
 include/linux/ioport.h             | 33 ++++++++++++++-
 include/linux/mm.h                 |  3 +-
 kernel/kexec_core.c                |  8 ++--
 kernel/kexec_file.c                |  8 ++--
 kernel/memremap.c                  | 13 +++---
 kernel/resource.c                  | 83 ++++++++++++++++++++++----------------
 mm/memory_hotplug.c                |  2 +-
 34 files changed, 225 insertions(+), 155 deletions(-)

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
  2016-01-05 18:54 ` Toshi Kani
  (?)
  (?)
@ 2016-01-25 19:18   ` Borislav Petkov
  -1 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 19:18 UTC (permalink / raw)
  To: Toshi Kani
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> This patch-set enhances the iomem table and its search interfacs, and
> then changes EINJ to support NVDIMM.
> 
>  - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
>    make the iomem search interfaces work with resource flags with
>    modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
>    for backward compatibility.
> 
>  - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
>    Drivers can assign their unique descritor to a range when they support
>    the iomem search interfaces.
> 
>  - Patches 4-9 changes initializations of resource entries.  They set
>    the System RAM type to System RAM ranges, set I/O resource descriptors
>    to the regions targeted by the iomem search interfaces, and change
>    to call kzalloc() where kmalloc() is used to allocate struct resource
>    ranges.
> 
>  - Patches 10-14 extend the iomem interfaces to check System RAM ranges
>    with the System RAM type and the I/O resource descriptor.
> 
>  - Patch 15-16 remove deprecated walk_iomem_res().
> 
>  - Patch 17 changes the EINJ driver to allow injecting a memory error
>    to NVDIMM.

Ok, all applied ontop of 4.5-rc1.

You could take a look if everything's still fine and I haven't botched
anything:

http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I'll let the build bot chew on it and then test it here and send it out
again to everyone on CC so that people don't act surprised.

Thanks for this cleanup, code looks much better now!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 19:18   ` Borislav Petkov
  0 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 19:18 UTC (permalink / raw)
  To: Toshi Kani
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> This patch-set enhances the iomem table and its search interfacs, and
> then changes EINJ to support NVDIMM.
> 
>  - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
>    make the iomem search interfaces work with resource flags with
>    modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
>    for backward compatibility.
> 
>  - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
>    Drivers can assign their unique descritor to a range when they support
>    the iomem search interfaces.
> 
>  - Patches 4-9 changes initializations of resource entries.  They set
>    the System RAM type to System RAM ranges, set I/O resource descriptors
>    to the regions targeted by the iomem search interfaces, and change
>    to call kzalloc() where kmalloc() is used to allocate struct resource
>    ranges.
> 
>  - Patches 10-14 extend the iomem interfaces to check System RAM ranges
>    with the System RAM type and the I/O resource descriptor.
> 
>  - Patch 15-16 remove deprecated walk_iomem_res().
> 
>  - Patch 17 changes the EINJ driver to allow injecting a memory error
>    to NVDIMM.

Ok, all applied ontop of 4.5-rc1.

You could take a look if everything's still fine and I haven't botched
anything:

http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I'll let the build bot chew on it and then test it here and send it out
again to everyone on CC so that people don't act surprised.

Thanks for this cleanup, code looks much better now!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 19:18   ` Borislav Petkov
  0 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 19:18 UTC (permalink / raw)
  To: Toshi Kani
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> This patch-set enhances the iomem table and its search interfacs, and
> then changes EINJ to support NVDIMM.
> 
>  - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
>    make the iomem search interfaces work with resource flags with
>    modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
>    for backward compatibility.
> 
>  - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
>    Drivers can assign their unique descritor to a range when they support
>    the iomem search interfaces.
> 
>  - Patches 4-9 changes initializations of resource entries.  They set
>    the System RAM type to System RAM ranges, set I/O resource descriptors
>    to the regions targeted by the iomem search interfaces, and change
>    to call kzalloc() where kmalloc() is used to allocate struct resource
>    ranges.
> 
>  - Patches 10-14 extend the iomem interfaces to check System RAM ranges
>    with the System RAM type and the I/O resource descriptor.
> 
>  - Patch 15-16 remove deprecated walk_iomem_res().
> 
>  - Patch 17 changes the EINJ driver to allow injecting a memory error
>    to NVDIMM.

Ok, all applied ontop of 4.5-rc1.

You could take a look if everything's still fine and I haven't botched
anything:

http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I'll let the build bot chew on it and then test it here and send it out
again to everyone on CC so that people don't act surprised.

Thanks for this cleanup, code looks much better now!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
  2016-01-05 18:54 ` Toshi Kani
                   ` (3 preceding siblings ...)
  (?)
@ 2016-01-25 19:18 ` Borislav Petkov
  -1 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 19:18 UTC (permalink / raw)
  To: Toshi Kani
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, akpm, dyoung, dan.j.williams,
	linux-nvdimm

On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> This patch-set enhances the iomem table and its search interfacs, and
> then changes EINJ to support NVDIMM.
> 
>  - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
>    make the iomem search interfaces work with resource flags with
>    modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
>    for backward compatibility.
> 
>  - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
>    Drivers can assign their unique descritor to a range when they support
>    the iomem search interfaces.
> 
>  - Patches 4-9 changes initializations of resource entries.  They set
>    the System RAM type to System RAM ranges, set I/O resource descriptors
>    to the regions targeted by the iomem search interfaces, and change
>    to call kzalloc() where kmalloc() is used to allocate struct resource
>    ranges.
> 
>  - Patches 10-14 extend the iomem interfaces to check System RAM ranges
>    with the System RAM type and the I/O resource descriptor.
> 
>  - Patch 15-16 remove deprecated walk_iomem_res().
> 
>  - Patch 17 changes the EINJ driver to allow injecting a memory error
>    to NVDIMM.

Ok, all applied ontop of 4.5-rc1.

You could take a look if everything's still fine and I haven't botched
anything:

http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I'll let the build bot chew on it and then test it here and send it out
again to everyone on CC so that people don't act surprised.

Thanks for this cleanup, code looks much better now!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 19:18   ` Borislav Petkov
  0 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 19:18 UTC (permalink / raw)
  To: Toshi Kani
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, akpm, dyoung, dan.j.williams,
	linux-nvdimm

On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> This patch-set enhances the iomem table and its search interfacs, and
> then changes EINJ to support NVDIMM.
> 
>  - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
>    make the iomem search interfaces work with resource flags with
>    modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
>    for backward compatibility.
> 
>  - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
>    Drivers can assign their unique descritor to a range when they support
>    the iomem search interfaces.
> 
>  - Patches 4-9 changes initializations of resource entries.  They set
>    the System RAM type to System RAM ranges, set I/O resource descriptors
>    to the regions targeted by the iomem search interfaces, and change
>    to call kzalloc() where kmalloc() is used to allocate struct resource
>    ranges.
> 
>  - Patches 10-14 extend the iomem interfaces to check System RAM ranges
>    with the System RAM type and the I/O resource descriptor.
> 
>  - Patch 15-16 remove deprecated walk_iomem_res().
> 
>  - Patch 17 changes the EINJ driver to allow injecting a memory error
>    to NVDIMM.

Ok, all applied ontop of 4.5-rc1.

You could take a look if everything's still fine and I haven't botched
anything:

http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I'll let the build bot chew on it and then test it here and send it out
again to everyone on CC so that people don't act surprised.

Thanks for this cleanup, code looks much better now!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
  2016-01-25 19:18   ` Borislav Petkov
                       ` (2 preceding siblings ...)
  (?)
@ 2016-01-25 21:34     ` Toshi Kani
  -1 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-25 21:34 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Mon, 2016-01-25 at 20:18 +0100, Borislav Petkov wrote:
> On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> > This patch-set enhances the iomem table and its search interfacs, and
> > then changes EINJ to support NVDIMM.
> > 
 :
> 
> Ok, all applied ontop of 4.5-rc1.
> 
> You could take a look if everything's still fine and I haven't botched
> anything:
> 
> http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I verified the patches and tested the kernel in the tree.  All look good.

> I'll let the build bot chew on it and then test it here and send it out
> again to everyone on CC so that people don't act surprised.

Sounds great.

> Thanks for this cleanup, code looks much better now!

Thanks!
-Toshi

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 21:34     ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-25 21:34 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Mon, 2016-01-25 at 20:18 +0100, Borislav Petkov wrote:
> On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> > This patch-set enhances the iomem table and its search interfacs, and
> > then changes EINJ to support NVDIMM.
> > 
 :
> 
> Ok, all applied ontop of 4.5-rc1.
> 
> You could take a look if everything's still fine and I haven't botched
> anything:
> 
> http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I verified the patches and tested the kernel in the tree.  All look good.

> I'll let the build bot chew on it and then test it here and send it out
> again to everyone on CC so that people don't act surprised.

Sounds great.

> Thanks for this cleanup, code looks much better now!

Thanks!
-Toshi


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 21:34     ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-25 21:34 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Mon, 2016-01-25 at 20:18 +0100, Borislav Petkov wrote:
> On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> > This patch-set enhances the iomem table and its search interfacs, and
> > then changes EINJ to support NVDIMM.
> > 
 :
> 
> Ok, all applied ontop of 4.5-rc1.
> 
> You could take a look if everything's still fine and I haven't botched
> anything:
> 
> http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I verified the patches and tested the kernel in the tree.  All look good.

> I'll let the build bot chew on it and then test it here and send it out
> again to everyone on CC so that people don't act surprised.

Sounds great.

> Thanks for this cleanup, code looks much better now!

Thanks!
-Toshi

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 21:34     ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-25 21:34 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Mon, 2016-01-25 at 20:18 +0100, Borislav Petkov wrote:
> On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> > This patch-set enhances the iomem table and its search interfacs, and
> > then changes EINJ to support NVDIMM.
> > 
 :
> 
> Ok, all applied ontop of 4.5-rc1.
> 
> You could take a look if everything's still fine and I haven't botched
> anything:
> 
> http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I verified the patches and tested the kernel in the tree.  All look good.

> I'll let the build bot chew on it and then test it here and send it out
> again to everyone on CC so that people don't act surprised.

Sounds great.

> Thanks for this cleanup, code looks much better now!

Thanks!
-Toshi


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
  2016-01-25 19:18   ` Borislav Petkov
                     ` (3 preceding siblings ...)
  (?)
@ 2016-01-25 21:34   ` Toshi Kani
  -1 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-25 21:34 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, akpm, dyoung, dan.j.williams,
	linux-nvdimm

On Mon, 2016-01-25 at 20:18 +0100, Borislav Petkov wrote:
> On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> > This patch-set enhances the iomem table and its search interfacs, and
> > then changes EINJ to support NVDIMM.
> > 
 :
> 
> Ok, all applied ontop of 4.5-rc1.
> 
> You could take a look if everything's still fine and I haven't botched
> anything:
> 
> http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I verified the patches and tested the kernel in the tree.  All look good.

> I'll let the build bot chew on it and then test it here and send it out
> again to everyone on CC so that people don't act surprised.

Sounds great.

> Thanks for this cleanup, code looks much better now!

Thanks!
-Toshi

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 21:34     ` Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-25 21:34 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, akpm, dyoung, dan.j.williams,
	linux-nvdimm

On Mon, 2016-01-25 at 20:18 +0100, Borislav Petkov wrote:
> On Tue, Jan 05, 2016 at 11:54:28AM -0700, Toshi Kani wrote:
> > This patch-set enhances the iomem table and its search interfacs, and
> > then changes EINJ to support NVDIMM.
> > 
 :
> 
> Ok, all applied ontop of 4.5-rc1.
> 
> You could take a look if everything's still fine and I haven't botched
> anything:
> 
> http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=tip-mm

I verified the patches and tested the kernel in the tree.  All look good.

> I'll let the build bot chew on it and then test it here and send it out
> again to everyone on CC so that people don't act surprised.

Sounds great.

> Thanks for this cleanup, code looks much better now!

Thanks!
-Toshi


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
  2016-01-25 21:34     ` Toshi Kani
  (?)
  (?)
@ 2016-01-25 21:49       ` Borislav Petkov
  -1 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 21:49 UTC (permalink / raw)
  To: Toshi Kani
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Mon, Jan 25, 2016 at 02:34:21PM -0700, Toshi Kani wrote:
> I verified the patches and tested the kernel in the tree. All look
> good.

Thanks!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 21:49       ` Borislav Petkov
  0 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 21:49 UTC (permalink / raw)
  To: Toshi Kani
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Mon, Jan 25, 2016 at 02:34:21PM -0700, Toshi Kani wrote:
> I verified the patches and tested the kernel in the tree. All look
> good.

Thanks!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 21:49       ` Borislav Petkov
  0 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 21:49 UTC (permalink / raw)
  To: Toshi Kani
  Cc: akpm, torvalds, rafael.j.wysocki, dan.j.williams, dyoung, x86,
	linux-ia64, linux-parisc, linux-sh, kexec, xen-devel,
	linux-samsung-soc, linux-arch, linux-mm, linux-nvdimm,
	linux-acpi, linux-kernel

On Mon, Jan 25, 2016 at 02:34:21PM -0700, Toshi Kani wrote:
> I verified the patches and tested the kernel in the tree. All look
> good.

Thanks!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
  2016-01-25 21:34     ` Toshi Kani
                       ` (3 preceding siblings ...)
  (?)
@ 2016-01-25 21:49     ` Borislav Petkov
  -1 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 21:49 UTC (permalink / raw)
  To: Toshi Kani
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, akpm, dyoung, dan.j.williams,
	linux-nvdimm

On Mon, Jan 25, 2016 at 02:34:21PM -0700, Toshi Kani wrote:
> I verified the patches and tested the kernel in the tree. All look
> good.

Thanks!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-25 21:49       ` Borislav Petkov
  0 siblings, 0 replies; 22+ messages in thread
From: Borislav Petkov @ 2016-01-25 21:49 UTC (permalink / raw)
  To: Toshi Kani
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, akpm, dyoung, dan.j.williams,
	linux-nvdimm

On Mon, Jan 25, 2016 at 02:34:21PM -0700, Toshi Kani wrote:
> I verified the patches and tested the kernel in the tree. All look
> good.

Thanks!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM
@ 2016-01-05 18:54 Toshi Kani
  0 siblings, 0 replies; 22+ messages in thread
From: Toshi Kani @ 2016-01-05 18:54 UTC (permalink / raw)
  To: akpm, bp
  Cc: linux-arch, x86, linux-ia64, linux-acpi, linux-parisc, linux-sh,
	torvalds, rafael.j.wysocki, kexec, linux-kernel, linux-mm,
	linux-samsung-soc, xen-devel, dan.j.williams, dyoung,
	linux-nvdimm

This patch-set enhances the iomem table and its search interfacs, and
then changes EINJ to support NVDIMM.

 - Patches 1-2 add a new System RAM type, IORESOURCE_SYSTEM_RAM, and
   make the iomem search interfaces work with resource flags with
   modifier bits set.  IORESOURCE_SYSTEM_RAM has IORESOURCE_MEM bit set
   for backward compatibility.

 - Patch 3 adds a new field, I/O resource descriptor, into struct resource.
   Drivers can assign their unique descritor to a range when they support
   the iomem search interfaces.

 - Patches 4-9 changes initializations of resource entries.  They set
   the System RAM type to System RAM ranges, set I/O resource descriptors
   to the regions targeted by the iomem search interfaces, and change
   to call kzalloc() where kmalloc() is used to allocate struct resource
   ranges.

 - Patches 10-14 extend the iomem interfaces to check System RAM ranges
   with the System RAM type and the I/O resource descriptor.

 - Patch 15-16 remove deprecated walk_iomem_res().

 - Patch 17 changes the EINJ driver to allow injecting a memory error
   to NVDIMM.

---
v3:
 - Remove the walk_iomem_res() call with "GART" in crash.c since it is
   no longer needed. Then kill walk_iomem_res(). (Borislav Petkov,
   Dave Young)
 - Change to use crashk_res.desc at the walk_iomem_res_desc() call in
   kexec_add_buffer(). (Minfei Huang)

v2:
 - Add 'desc' to struct resource, and add a new iomem interface to
   search with the desc. (Borislav Petkov)
 - Add a check to checkpatch.pl to warn on new use of walk_iomem_res().
   (Borislav Petkov)

v1:
 - Searching for System RAM in the resource table should not require
   strcmp(). (Borislav Petkov)
 - Add a new System RAM type as a modifier to IORESOURCE_MEM.
   (Linus Torvalds)
 - NVDIMM check needs to be able to distinguish legacy and NFIT pmem
   ranges. (Dan Williams)

---
Toshi Kani (17):
 01/17 resource: Add System RAM resource type
 02/17 resource: make resource flags handled properly
 03/17 resource: Add I/O resource descriptor
 04/17 x86/e820: Set System RAM type and descriptor
 05/17 ia64: Set System RAM type and descriptor
 06/17 arch: Set IORESOURCE_SYSTEM_RAM to System RAM
 07/17 kexec: Set IORESOURCE_SYSTEM_RAM to System RAM
 08/17 xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM
 09/17 drivers: Initialize resource entry to zero
 10/17 resource: Change walk_system_ram to use System RAM type
 11/17 arm/samsung: Change s3c_pm_run_res() to use System RAM type
 12/17 memremap: Change region_intersects() to take @flags and @desc
 13/17 resource: Add walk_iomem_res_desc()
 14/17 x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search
 15/17 x86/kexec: Remove walk_iomem_res() call with GART
 16/17 resource: Kill walk_iomem_res()
 17/17 ACPI/EINJ: Allow memory error injection to NVDIMM

---
 arch/arm/kernel/setup.c            |  6 +--
 arch/arm/plat-samsung/pm-check.c   |  4 +-
 arch/arm64/kernel/setup.c          |  6 +--
 arch/avr32/kernel/setup.c          |  6 +--
 arch/ia64/kernel/efi.c             | 13 ++++--
 arch/ia64/kernel/setup.c           |  6 +--
 arch/m32r/kernel/setup.c           |  4 +-
 arch/mips/kernel/setup.c           | 10 +++--
 arch/parisc/mm/init.c              |  6 +--
 arch/powerpc/mm/mem.c              |  2 +-
 arch/s390/kernel/setup.c           |  8 ++--
 arch/score/kernel/setup.c          |  2 +-
 arch/sh/kernel/setup.c             |  8 ++--
 arch/sparc/mm/init_64.c            |  8 ++--
 arch/tile/kernel/setup.c           | 11 +++--
 arch/unicore32/kernel/setup.c      |  6 +--
 arch/x86/kernel/crash.c            | 41 ++-----------------
 arch/x86/kernel/e820.c             | 38 ++++++++++++++++-
 arch/x86/kernel/pmem.c             |  4 +-
 arch/x86/kernel/setup.c            |  6 +--
 drivers/acpi/acpi_platform.c       |  2 +-
 drivers/acpi/apei/einj.c           | 15 +++++--
 drivers/nvdimm/e820.c              |  2 +-
 drivers/parisc/eisa_enumerator.c   |  4 +-
 drivers/rapidio/rio.c              |  8 ++--
 drivers/sh/superhyway/superhyway.c |  2 +-
 drivers/xen/balloon.c              |  2 +-
 include/linux/ioport.h             | 33 ++++++++++++++-
 include/linux/mm.h                 |  3 +-
 kernel/kexec_core.c                |  8 ++--
 kernel/kexec_file.c                |  8 ++--
 kernel/memremap.c                  | 13 +++---
 kernel/resource.c                  | 83 ++++++++++++++++++++++----------------
 mm/memory_hotplug.c                |  2 +-
 34 files changed, 225 insertions(+), 155 deletions(-)

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2016-01-25 21:50 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05 18:54 [PATCH v3 00/17] Enhance iomem search interfaces and support EINJ to NVDIMM Toshi Kani
2016-01-05 18:54 ` Toshi Kani
2016-01-05 18:54 ` Toshi Kani
2016-01-05 18:54 ` Toshi Kani
2016-01-05 18:54 ` Toshi Kani
2016-01-25 19:18 ` Borislav Petkov
2016-01-25 19:18 ` Borislav Petkov
2016-01-25 19:18   ` Borislav Petkov
2016-01-25 19:18   ` Borislav Petkov
2016-01-25 19:18   ` Borislav Petkov
2016-01-25 21:34   ` Toshi Kani
2016-01-25 21:34     ` Toshi Kani
2016-01-25 21:34     ` Toshi Kani
2016-01-25 21:34     ` Toshi Kani
2016-01-25 21:34     ` Toshi Kani
2016-01-25 21:49     ` Borislav Petkov
2016-01-25 21:49     ` Borislav Petkov
2016-01-25 21:49       ` Borislav Petkov
2016-01-25 21:49       ` Borislav Petkov
2016-01-25 21:49       ` Borislav Petkov
2016-01-25 21:34   ` Toshi Kani
  -- strict thread matches above, loose matches on Subject: below --
2016-01-05 18:54 Toshi Kani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.