Re: [arch] WARNING: CPU: 0 PID: 0 at kernel/memremap.c:31 memremap()

2015-07-22 Thread Dan Williams
/git/djbw/nvdimm.git pmem-api commit 163f9409a57082aed03fbeeb321fbf18bdaf5f42 Author: Dan Williams dan.j.willi...@intel.com AuthorDate: Wed Jul 22 18:09:01 2015 -0400 Commit: Dan Williams dan.j.willi...@intel.com CommitDate: Wed Jul 22 18:09:01 2015 -0400 arch: introduce memremap

Re: [PATCH V2 3/3] efi: Use efi_rts_workqueue to invoke EFI Runtime Services

2018-03-07 Thread Dan Williams
On Wed, Mar 7, 2018 at 8:11 PM, Prakhya, Sai Praneeth wrote: > 05, 2018 at 03:23:10PM -0800, Sai Praneeth Prakhya wrote: >> > From: Sai Praneeth >> > >> > Presently, efi_runtime_services() are executed by firmware in process >> >

Re: [PATCH V2 3/3] efi: Use efi_rts_workqueue to invoke EFI Runtime Services

2018-03-05 Thread Dan Williams
On Mon, Mar 5, 2018 at 3:23 PM, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > Presently, efi_runtime_services() are executed by firmware in process > context. To execute efi_runtime_service(), kernel switches the page >

[PATCH v2 1/8] acpi: Drop drivers/acpi/hmat/ directory

2019-05-30 Thread Dan Williams
As a single source file object there is no need for the hmat enabling to have its own directory. Cc: Len Brown Cc: Keith Busch Cc: "Rafael J. Wysocki" Signed-off-by: Dan Williams --- drivers/acpi/Kconfig | 12 +++- drivers/acpi/Makefile |2 +- drivers/a

[PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-05-30 Thread Dan Williams
kov Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Darren Hart Cc: Andy Shevchenko Cc: Thomas Gleixner Cc: Ard Biesheuvel Reported-by: kbuild test robot Signed-off-by: Dan Williams --- arch/x86/Kconfig | 20 arch/x86/boot/compressed/eboot.

[PATCH v2 3/8] efi: Enumerate EFI_MEMORY_SP

2019-05-30 Thread Dan Williams
y table dumps and save the kernel policy for a follow-on change. Cc: Ard Biesheuvel Signed-off-by: Dan Williams --- drivers/firmware/efi/efi.c |5 +++-- include/linux/efi.h|1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/ef

[PATCH v2 7/8] acpi/hmat: Register HMAT at device_initcall level

2019-05-30 Thread Dan Williams
tree is populated with "Application Reserved" (IORES_DESC_APPLICATION_RESERVED). e820__reserve_resources_late() happens at subsys_initcall time. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Keith Busch Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/acpi/hmat

[PATCH v2 5/8] lib/memregion: Uplevel the pmem "region" ida to a global allocator

2019-05-30 Thread Dan Williams
Signed-off-by: Dan Williams --- drivers/nvdimm/Kconfig |1 + drivers/nvdimm/core.c|1 - drivers/nvdimm/nd-core.h |1 - drivers/nvdimm/region_devs.c | 13 - include/linux/memregion.h|8 lib/Kconfig |7 +++ li

[PATCH v2 2/8] acpi/hmat: Skip publishing target info for nodes with no online memory

2019-05-30 Thread Dan Williams
...result for HMAT parsing. Signed-off-by: Dan Williams --- drivers/acpi/hmat.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/hmat.c b/drivers/acpi/hmat.c index 96b7d39a97c6..2c220cb7b620 100644 --- a/drivers/acpi/hmat.c +++ b/drivers/acpi/h

[PATCH v2 0/8] EFI Specific Purpose Memory Support

2019-05-30 Thread Dan Williams
linux.git/commit/?id=e1cf33aafb84 [4]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c221c0b0308f [5]: http://patchwork.ozlabs.org/cover/1096737/ --- Dan Williams (8): acpi: Drop drivers/acpi/hmat/ directory acpi/hmat: Skip publishing target info for

[PATCH v2 8/8] acpi/hmat: Register "specific purpose" memory as an "hmem" device

2019-05-30 Thread Dan Williams
-43fff : Application Reserved 24000-33fff : hmem.0 24000-33fff : dax0.0 34000-43fff : hmem.1 34000-43fff : dax1.0 Cc: Len Brown Cc: Keith Busch Cc: "Rafael J. Wysocki" Cc: Vishal Verma Cc: Jonathan Cameron Signed-off-by: Dan Wil

Re: [PATCH v2 1/8] acpi: Drop drivers/acpi/hmat/ directory

2019-05-31 Thread Dan Williams
On Fri, May 31, 2019 at 1:24 AM Rafael J. Wysocki wrote: > > On Friday, May 31, 2019 12:59:27 AM CEST Dan Williams wrote: > > As a single source file object there is no need for the hmat enabling to > > have its own directory. > > Well, I asked Keith to add that directo

Re: [PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-05-31 Thread Dan Williams
On Fri, May 31, 2019 at 1:30 AM Ard Biesheuvel wrote: > > (cc Mike for memblock) > > On Fri, 31 May 2019 at 01:13, Dan Williams wrote: > > > > UEFI 2.8 defines an EFI_MEMORY_SP attribute bit to augment the > > interpretation of the EFI Memory Types as "

Re: [PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-06-05 Thread Dan Williams
On Sun, Jun 2, 2019 at 10:42 PM Mike Rapoport wrote: > > Hi Dan, > > On Thu, May 30, 2019 at 03:59:43PM -0700, Dan Williams wrote: > > UEFI 2.8 defines an EFI_MEMORY_SP attribute bit to augment the > > interpretation of the EFI Memory Types as "reser

Re: [PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 5:29 AM Ard Biesheuvel wrote: > > On Sat, 1 Jun 2019 at 06:26, Dan Williams wrote: > > > > On Fri, May 31, 2019 at 8:30 AM Ard Biesheuvel > > wrote: > > > > > > On Fri, 31 May 2019 at 17:28, Dan Williams > > > wrote:

Re: [PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 8:23 AM Dan Williams wrote: > > On Fri, Jun 7, 2019 at 5:29 AM Ard Biesheuvel > wrote: [..] > > > #ifdef CONFIG_EFI_APPLICATION_RESERVED > > > static inline bool is_efi_application_reserved(efi_memory_desc_t *md) > >

[PATCH v3 07/10] lib/memregion: Uplevel the pmem "region" ida to a global allocator

2019-06-07 Thread Dan Williams
Signed-off-by: Dan Williams --- drivers/nvdimm/Kconfig |1 + drivers/nvdimm/core.c|1 - drivers/nvdimm/nd-core.h |1 - drivers/nvdimm/region_devs.c | 13 - include/linux/memregion.h|8 lib/Kconfig |7 +++ li

[PATCH v3 03/10] efi: Enumerate EFI_MEMORY_SP

2019-06-07 Thread Dan Williams
y table dumps and save the kernel policy for a follow-on change. Reviewed-by: Ard Biesheuvel Signed-off-by: Dan Williams --- drivers/firmware/efi/efi.c |5 +++-- include/linux/efi.h|1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efi/efi.c b/drive

[PATCH v3 10/10] acpi/numa/hmat: Register "specific purpose" memory as an "hmem" device

2019-06-07 Thread Dan Williams
-43fff : Application Reserved 24000-33fff : hmem.0 24000-33fff : dax0.0 34000-43fff : hmem.1 34000-43fff : dax1.0 Cc: Len Brown Cc: Keith Busch Cc: "Rafael J. Wysocki" Cc: Vishal Verma Cc: Jonathan Cameron Signed-off-by: Dan Willi

[PATCH v3 01/10] acpi/numa: Establish a new drivers/acpi/numa/ directory

2019-06-07 Thread Dan Williams
fael J. Wysocki" Signed-off-by: Dan Williams --- drivers/acpi/Kconfig |9 + drivers/acpi/Makefile |3 +-- drivers/acpi/hmat/Makefile |2 -- drivers/acpi/numa/Kconfig |7 ++- drivers/acpi/numa/Makefile |3 +++ drivers/acpi/numa/hmat.c |0 driv

[PATCH v3 00/10] EFI Specific Purpose Memory Support

2019-06-07 Thread Dan Williams
/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c221c0b0308f [5]: http://patchwork.ozlabs.org/cover/1096737/ --- Dan Williams (10): acpi/numa: Establish a new drivers/acpi/numa/ directory acpi/numa/hmat: Skip publishing target info for nodes with no online memory efi: Enumerat

[PATCH v3 04/10] x86, efi: Push EFI_MEMMAP check into leaf routines

2019-06-07 Thread Dan Williams
" Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Dave Hansen Signed-off-by: Dan Williams --- arch/x86/kernel/setup.c | 19 +-- arch/x86/platform/efi/efi.c |3 +++ arch/x86/platform/efi/quirks.c |3 +++ drivers/firmware/efi/esrt.c

[PATCH v3 05/10] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-06-07 Thread Dan Williams
Peter Anvin" Cc: Darren Hart Cc: Andy Shevchenko Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Dave Hansen Cc: Thomas Gleixner Cc: Ard Biesheuvel Reported-by: kbuild test robot Signed-off-by: Dan Williams --- arch/x86/Kconfig | 21 + arch/x86/b

[PATCH v3 02/10] acpi/numa/hmat: Skip publishing target info for nodes with no online memory

2019-06-07 Thread Dan Williams
...result for HMAT parsing. Signed-off-by: Dan Williams --- drivers/acpi/numa/hmat.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/numa/hmat.c b/drivers/acpi/numa/hmat.c index 96b7d39a97c6..2c220cb7b620 100644 --- a/drivers/acpi/numa/hmat.c +++

[PATCH v3 06/10] x86, efi: Add efi_fake_mem support for EFI_MEMORY_SP

2019-06-07 Thread Dan Williams
can search for attempts to set EFI_MEMORY_SP via efi_fake_mem and update the e820 table accordingly. Cc: Cc: Borislav Petkov Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Ard Biesheuvel Signed-off-by: Dan Williams --- arch/x86/include/asm/efi.h |1 + arc

[PATCH v3 09/10] acpi/numa/hmat: Register HMAT at device_initcall level

2019-06-07 Thread Dan Williams
tree is populated with "Application Reserved" (IORES_DESC_APPLICATION_RESERVED). e820__reserve_resources_late() happens at subsys_initcall time. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Keith Busch Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/acpi/numa/hmat

[PATCH v3 08/10] device-dax: Add a driver for "hmem" devices

2019-06-07 Thread Dan Williams
HMEM symbol to gate performing the enumeration work. Cc: Vishal Verma Cc: Keith Busch Cc: Dave Jiang Reported-by: kbuild test robot Signed-off-by: Dan Williams --- drivers/dax/Kconfig | 27 + drivers/dax/Makefile |2 ++ dr

Re: [PATCH v3 08/10] device-dax: Add a driver for "hmem" devices

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 12:54 PM Dave Hansen wrote: > > On 6/7/19 12:27 PM, Dan Williams wrote: > > This consumes "hmem" devices the producer of "hmem" devices is saved for > > a follow-on patch so that it can reference the new CONFIG_DEV_DAX_HMEM > > sy

Re: [PATCH v3 00/10] EFI Specific Purpose Memory Support

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 12:57 PM Dave Hansen wrote: > > On 6/7/19 12:27 PM, Dan Williams wrote: > > In support of optionally allowing either application-exclusive and > > core-kernel-mm managed access to differentiated memory, claim > > EFI_MEMORY_SP ranges for exposure

Re: [PATCH v3 03/10] efi: Enumerate EFI_MEMORY_SP

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 12:54 PM Dave Hansen wrote: > > On 6/7/19 12:27 PM, Dan Williams wrote: > > @@ -848,15 +848,16 @@ char * __init efi_md_typeattr_format(char *buf, > > size_t size, > > if (attr & ~(EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT | > >

Re: [PATCH v3 03/10] efi: Enumerate EFI_MEMORY_SP

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 2:12 PM Dave Hansen wrote: > > On 6/7/19 1:03 PM, Dan Williams wrote: > >> Separate from these patches, should we have a runtime file that dumps > >> out the same info? dmesg isn't always available, and hotplug could > >> change this too

Re: [PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-06-08 Thread Dan Williams
On Sat, Jun 8, 2019 at 12:20 AM Ard Biesheuvel wrote: > > On Fri, 7 Jun 2019 at 19:34, Dan Williams wrote: > > > > On Fri, Jun 7, 2019 at 8:23 AM Dan Williams > > wrote: > > > > > > On Fri, Jun 7, 2019 at 5:29 AM Ard Biesheuve

Re: [PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-05-31 Thread Dan Williams
On Fri, May 31, 2019 at 8:30 AM Ard Biesheuvel wrote: > > On Fri, 31 May 2019 at 17:28, Dan Williams wrote: > > > > On Fri, May 31, 2019 at 1:30 AM Ard Biesheuvel > > wrote: > > > > > > (cc Mike for memblock) > > > > > &

Re: [PATCH v2 4/8] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-06-21 Thread Dan Williams
On Sat, Jun 8, 2019 at 12:20 AM Ard Biesheuvel wrote: > > On Fri, 7 Jun 2019 at 19:34, Dan Williams wrote: > > > > On Fri, Jun 7, 2019 at 8:23 AM Dan Williams > > wrote: > > > > > > On Fri, Jun 7, 2019 at 5:29 AM Ard Biesheuve

Re: [PATCH v3 07/10] lib/memregion: Uplevel the pmem "region" ida to a global allocator

2019-06-21 Thread Dan Williams
On Fri, Jun 7, 2019 at 1:23 PM Matthew Wilcox wrote: > > On Fri, Jun 07, 2019 at 12:27:50PM -0700, Dan Williams wrote: > > diff --git a/lib/memregion.c b/lib/memregion.c > > new file mode 100644 > > index ..f6c6a94c7921 > > --- /dev/null > > +++

Re: [PATCH v3 07/10] lib/memregion: Uplevel the pmem "region" ida to a global allocator

2019-08-26 Thread Dan Williams
On Fri, Jun 7, 2019 at 1:23 PM Matthew Wilcox wrote: > > On Fri, Jun 07, 2019 at 12:27:50PM -0700, Dan Williams wrote: > > diff --git a/lib/memregion.c b/lib/memregion.c > > new file mode 100644 > > index ..f6c6a94c7921 > > --- /dev/null > > +++

[PATCH v5 10/10] acpi/numa/hmat: Register "soft reserved" memory as an "hmem" device

2019-08-29 Thread Dan Williams
000-43fff : Soft Reserved 24000-33fff : hmem.0 24000-33fff : dax0.0 34000-43fff : hmem.1 34000-43fff : dax1.0 Cc: Len Brown Cc: Keith Busch Cc: "Rafael J. Wysocki" Cc: Vishal Verma Cc: Jonathan Cameron Reviewed-by: Dave Hansen Signed-off

[PATCH v5 04/10] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-08-29 Thread Dan Williams
islav Petkov Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Darren Hart Cc: Andy Shevchenko Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ard Biesheuvel Reported-by: kbuild test robot Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- Documentation/admin-gu

[PATCH v5 07/10] dax: Fix alloc_dax_region() compile warning

2019-08-29 Thread Dan Williams
eported-by: kbuild test robot Signed-off-by: Dan Williams --- drivers/dax/bus.c |2 +- drivers/dax/bus.h |2 +- drivers/dax/dax-private.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c index 8fafbeab510a..e

[PATCH v5 00/10] EFI Specific Purpose Memory Support

2019-08-29 Thread Dan Williams
commit/?id=e1cf33aafb84 [4]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c221c0b0308f [5]: http://patchwork.ozlabs.org/cover/1096737/ --- Dan Williams (10): acpi/numa: Establish a new drivers/acpi/numa/ directory efi: Enumerate EFI_MEMORY_SP x86,

[PATCH v5 06/10] lib: Uplevel the pmem "region" ida to a global allocator

2019-08-29 Thread Dan Williams
In preparation for handling platform differentiated memory types beyond persistent memory, uplevel the "region" identifier to a global number space. This enables a device-dax instance to be registered to any memory type with guaranteed unique names. Cc: Keith Busch Signed-off-by: Da

[PATCH v5 03/10] x86, efi: Push EFI_MEMMAP check into leaf routines

2019-08-29 Thread Dan Williams
Molnar Cc: "H. Peter Anvin" Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Peter Zijlstra Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- arch/x86/include/asm/efi.h |9 - arch/x86/kernel/setup.c | 19 +-- arch/x86/platform/efi/efi.c

[PATCH v5 02/10] efi: Enumerate EFI_MEMORY_SP

2019-08-29 Thread Dan Williams
firmware to instead tell the truth about performance characteristics by indicate to OS memory management to put immovable allocations elsewhere. Implement simple detection of the bit for EFI memory table dumps and save the kernel policy for a follow-on change. Reviewed-by: Ard Biesheuvel Reviewed-by:

[PATCH v5 01/10] acpi/numa: Establish a new drivers/acpi/numa/ directory

2019-08-29 Thread Dan Williams
fael J. Wysocki" Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- drivers/acpi/Kconfig |9 + drivers/acpi/Makefile |3 +-- drivers/acpi/hmat/Makefile |2 -- drivers/acpi/numa/Kconfig |7 ++- drivers/acpi/numa/Makefile |3 +++ drivers/acpi/

[PATCH v5 05/10] x86, efi: Add efi_fake_mem support for EFI_MEMORY_SP

2019-08-29 Thread Dan Williams
Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Ard Biesheuvel Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- arch/x86/boot/compressed/kaslr.c| 46 --- arch/x86/include/asm/efi.h |8 arch/x86/platform/efi/efi.c

[PATCH v5 09/10] acpi/numa/hmat: Register HMAT at device_initcall level

2019-08-29 Thread Dan Williams
tree is populated with "Application Reserved" (IORES_DESC_APPLICATION_RESERVED). e820__reserve_resources_late() happens at subsys_initcall time. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Keith Busch Cc: Jonathan Cameron Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --

[PATCH v5 08/10] device-dax: Add a driver for "hmem" devices

2019-08-29 Thread Dan Williams
HMEM symbol to gate performing the enumeration work. Cc: Vishal Verma Cc: Keith Busch Cc: Dave Jiang Reported-by: kbuild test robot Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- drivers/dax/Kconfig | 27 + drivers/dax/Makefile |2 ++ dr

Re: [PATCH v5 00/10] EFI Specific Purpose Memory Support

2019-09-04 Thread Dan Williams
On Mon, Sep 2, 2019 at 4:09 AM Rafael J. Wysocki wrote: > > On Friday, August 30, 2019 3:52:18 AM CEST Dan Williams wrote: > > Changes since v4 [1]: > > - Rename the facility from "Application Reserved" to "Soft Reserved" to > > better reflect how

Re: [PATCH v5 03/10] x86, efi: Push EFI_MEMMAP check into leaf routines

2019-09-13 Thread Dan Williams
On Fri, Sep 13, 2019 at 2:06 AM Ard Biesheuvel wrote: > > On Fri, 30 Aug 2019 at 03:06, Dan Williams wrote: > > > > In preparation for adding another EFI_MEMMAP dependent call that needs > > to occur before e820__memblock_setup() fixup the existing efi calls to

Re: [PATCH v5 04/10] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-09-13 Thread Dan Williams
On Fri, Sep 13, 2019 at 6:00 AM Ard Biesheuvel wrote: > > On Fri, 30 Aug 2019 at 03:06, Dan Williams wrote: > > > > UEFI 2.8 defines an EFI_MEMORY_SP attribute bit to augment the > > interpretation of the EFI Memory Types as "reserved for a specific > > p

Re: [PATCH v5 04/10] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-09-13 Thread Dan Williams
On Fri, Sep 13, 2019 at 9:29 AM Ard Biesheuvel wrote: > > On Fri, 13 Sep 2019 at 17:22, Dan Williams wrote: > > > > On Fri, Sep 13, 2019 at 6:00 AM Ard Biesheuvel > > wrote: > > > > > > On Fri, 30 Aug 2019 at 03:06, Dan Williams > > > wrote

Re: [PATCH v5 05/10] x86, efi: Add efi_fake_mem support for EFI_MEMORY_SP

2019-09-13 Thread Dan Williams
On Fri, Sep 13, 2019 at 6:02 AM Ard Biesheuvel wrote: > > On Fri, 30 Aug 2019 at 03:07, Dan Williams wrote: > > > > Given that EFI_MEMORY_SP is platform BIOS policy descision for marking > > decision Fixed. > > > memory ranges as "reserved for a s

Re: [PATCH v5 05/10] x86, efi: Add efi_fake_mem support for EFI_MEMORY_SP

2019-09-13 Thread Dan Williams
On Fri, Sep 13, 2019 at 12:49 PM Ard Biesheuvel wrote: > > On Fri, 30 Aug 2019 at 03:07, Dan Williams wrote: > > > ... > > diff --git a/drivers/firmware/efi/Makefile b/drivers/firmware/efi/Makefile > > index 4ac2de4dfa72..d7a6db03ea79 100644 > > --- a/driver

Re: [PATCH v7 00/12] EFI Specific Purpose Memory Support

2019-10-16 Thread Dan Williams
On Tue, Oct 15, 2019 at 11:55 PM Ard Biesheuvel wrote: > > On Wed, 16 Oct 2019 at 03:13, Dan Williams wrote: > > > > Changes since v6 [1]: > > - Collect Ard's ack / review on patches 5-7, but not on patch 4 since it > > needed a non-trivial rework for linker er

[PATCH v7 08/12] lib: Uplevel the pmem "region" ida to a global allocator

2019-10-15 Thread Dan Williams
In preparation for handling platform differentiated memory types beyond persistent memory, uplevel the "region" identifier to a global number space. This enables a device-dax instance to be registered to any memory type with guaranteed unique names. Cc: Keith Busch Signed-off-by: Da

[PATCH v7 04/12] efi: Common enable/disable infrastructure for EFI soft reservation

2019-10-15 Thread Dan Williams
s. Cc: Ard Biesheuvel Signed-off-by: Dan Williams --- Documentation/admin-guide/kernel-parameters.txt |9 - drivers/firmware/efi/Kconfig| 21 + drivers/firmware/efi/efi.c |8 drivers/firmware/efi/lib

[PATCH v7 03/12] x86/efi: Push EFI_MEMMAP check into leaf routines

2019-10-15 Thread Dan Williams
Molnar Cc: "H. Peter Anvin" Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Peter Zijlstra Reviewed-by: Dave Hansen Reviewed-by: Ard Biesheuvel Signed-off-by: Dan Williams --- arch/x86/include/asm/efi.h |9 - arch/x86/kernel/setup.c | 18 --

[PATCH v7 06/12] arm/efi: EFI soft reservation to memblock

2019-10-15 Thread Dan Williams
ONAL_MEMORY to optionally take the EFI_MEMORY_SP attribute into account as a reservation indicator. Publish the soft reservation as IORES_DESC_SOFT_RESERVED memory, similar to x86. (Based on an original patch by Ard) Cc: Will Deacon Cc: Catalin Marinas Reviewed-by: Ard Biesheuvel Signed-off-by: Dan Will

[PATCH v7 05/12] x86/efi: EFI soft reservation to E820 enumeration

2019-10-15 Thread Dan Williams
; Cc: Darren Hart Cc: Andy Shevchenko Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Acked-by: Ard Biesheuvel Reported-by: kbuild test robot Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- arch/x86/boot/compressed/eboot.c |6 - arch/x86/boot/compressed/k

[PATCH v7 07/12] x86/efi: Add efi_fake_mem support for EFI_MEMORY_SP

2019-10-15 Thread Dan Williams
Ingo Molnar Cc: "H. Peter Anvin" Cc: Thomas Gleixner Acked-by: Ard Biesheuvel Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- Documentation/admin-guide/kernel-parameters.txt | 10 +++ arch/x86/boot/compressed/kaslr.c| 42

[PATCH v7 09/12] dax: Fix alloc_dax_region() compile warning

2019-10-15 Thread Dan Williams
Cc: Vishal Verma Reported-by: kbuild test robot Signed-off-by: Dan Williams --- drivers/dax/bus.c |2 +- drivers/dax/bus.h |2 +- drivers/dax/dax-private.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c

[PATCH v7 01/12] acpi/numa: Establish a new drivers/acpi/numa/ directory

2019-10-15 Thread Dan Williams
J. Wysocki Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- drivers/acpi/Kconfig |9 + drivers/acpi/Makefile |3 +-- drivers/acpi/hmat/Makefile |2 -- drivers/acpi/numa/Kconfig |6 ++ drivers/acpi/numa/Makefile |3 +++ drivers/acpi/numa/hmat.

[PATCH v7 02/12] efi: Enumerate EFI_MEMORY_SP

2019-10-15 Thread Dan Williams
firmware to instead tell the truth about performance characteristics by indicate to OS memory management to put immovable allocations elsewhere. Implement simple detection of the bit for EFI memory table dumps and save the kernel policy for a follow-on change. Reviewed-by: Ard Biesheuvel Reviewed-by:

[PATCH v7 12/12] acpi/numa/hmat: Register "soft reserved" memory as an "hmem" device

2019-10-15 Thread Dan Williams
000-43fff : Soft Reserved 24000-33fff : hmem.0 24000-33fff : dax0.0 34000-43fff : hmem.1 34000-43fff : dax1.0 Cc: Len Brown Cc: Keith Busch Cc: "Rafael J. Wysocki" Cc: Vishal Verma Cc: Jonathan Cameron Reviewed-by: Dave Hansen Signed-off

[PATCH v7 10/12] device-dax: Add a driver for "hmem" devices

2019-10-15 Thread Dan Williams
HMEM symbol to gate performing the enumeration work. Cc: Vishal Verma Cc: Keith Busch Cc: Dave Jiang Reported-by: kbuild test robot Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- drivers/dax/Kconfig | 27 ++ drivers/dax/Makefile |2 ++ dr

[PATCH v7 11/12] acpi/numa/hmat: Register HMAT at device_initcall level

2019-10-15 Thread Dan Williams
tree is populated with "Application Reserved" (IORES_DESC_APPLICATION_RESERVED). e820__reserve_resources_late() happens at subsys_initcall time. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Keith Busch Cc: Jonathan Cameron Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --

[PATCH v7 00/12] EFI Specific Purpose Memory Support

2019-10-15 Thread Dan Williams
/git/torvalds/linux.git/commit/?id=c221c0b0308f [5]: http://patchwork.ozlabs.org/cover/1096737/ --- Dan Williams (12): acpi/numa: Establish a new drivers/acpi/numa/ directory efi: Enumerate EFI_MEMORY_SP x86/efi: Push EFI_MEMMAP check into leaf routines efi: Common enable/disable

Re: [PATCH v7 01/12] acpi/numa: Establish a new drivers/acpi/numa/ directory

2019-10-22 Thread Dan Williams
On Tue, Oct 22, 2019 at 3:02 AM Rafael J. Wysocki wrote: > > On Fri, Oct 18, 2019 at 11:25 AM Rafael J. Wysocki wrote: > > > > On Wed, Oct 16, 2019 at 3:13 AM Dan Williams > > wrote: > > > > > > Currently hmat.c lives under an "hmat" di

[PATCH v6 08/12] lib: Uplevel the pmem "region" ida to a global allocator

2019-10-09 Thread Dan Williams
In preparation for handling platform differentiated memory types beyond persistent memory, uplevel the "region" identifier to a global number space. This enables a device-dax instance to be registered to any memory type with guaranteed unique names. Cc: Keith Busch Signed-off-by: Da

[PATCH v6 06/12] arm/efi: EFI soft reservation to memblock

2019-10-09 Thread Dan Williams
ONAL_MEMORY to optionally take the EFI_MEMORY_SP attribute into account as a reservation indicator. Publish the soft reservation as IORES_DESC_SOFT_RESERVED memory, similar to x86. (Based on an original patch by Ard) Cc: Will Deacon Cc: Catalin Marinas Cc: Ard Biesheuvel Signed-off-by: Dan Will

[PATCH v6 04/12] efi: Common enable/disable infrastructure for EFI soft reservation

2019-10-09 Thread Dan Williams
s. Cc: Ard Biesheuvel Signed-off-by: Dan Williams --- Documentation/admin-guide/kernel-parameters.txt |9 - drivers/firmware/efi/Kconfig| 21 + drivers/firmware/efi/efi.c |9 + drivers/firmware/efi/lib

[PATCH v6 09/12] dax: Fix alloc_dax_region() compile warning

2019-10-09 Thread Dan Williams
Cc: Vishal Verma Reported-by: kbuild test robot Signed-off-by: Dan Williams --- drivers/dax/bus.c |2 +- drivers/dax/bus.h |2 +- drivers/dax/dax-private.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c

[PATCH v6 05/12] x86/efi: EFI soft reservation to E820 enumeration

2019-10-09 Thread Dan Williams
t; Cc: Darren Hart Cc: Andy Shevchenko Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ard Biesheuvel Reported-by: kbuild test robot Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- arch/x86/boot/compressed/eboot.c |6 - arch/x86/boot/compressed/kaslr.c |

[PATCH v6 10/12] device-dax: Add a driver for "hmem" devices

2019-10-09 Thread Dan Williams
HMEM symbol to gate performing the enumeration work. Cc: Vishal Verma Cc: Keith Busch Cc: Dave Jiang Reported-by: kbuild test robot Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- drivers/dax/Kconfig | 27 ++ drivers/dax/Makefile |2 ++ dr

[PATCH v6 12/12] acpi/numa/hmat: Register "soft reserved" memory as an "hmem" device

2019-10-09 Thread Dan Williams
000-43fff : Soft Reserved 24000-33fff : hmem.0 24000-33fff : dax0.0 34000-43fff : hmem.1 34000-43fff : dax1.0 Cc: Len Brown Cc: Keith Busch Cc: "Rafael J. Wysocki" Cc: Vishal Verma Cc: Jonathan Cameron Reviewed-by: Dave Hansen Signed-off

[PATCH v6 03/12] x86/efi: Push EFI_MEMMAP check into leaf routines

2019-10-09 Thread Dan Williams
Molnar Cc: "H. Peter Anvin" Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Peter Zijlstra Reviewed-by: Dave Hansen Reviewed-by: Ard Biesheuvel Signed-off-by: Dan Williams --- arch/x86/include/asm/efi.h |9 - arch/x86/kernel/setup.c | 18 --

[PATCH v6 02/12] efi: Enumerate EFI_MEMORY_SP

2019-10-09 Thread Dan Williams
firmware to instead tell the truth about performance characteristics by indicate to OS memory management to put immovable allocations elsewhere. Implement simple detection of the bit for EFI memory table dumps and save the kernel policy for a follow-on change. Reviewed-by: Ard Biesheuvel Reviewed-by:

[PATCH v6 11/12] acpi/numa/hmat: Register HMAT at device_initcall level

2019-10-09 Thread Dan Williams
tree is populated with "Application Reserved" (IORES_DESC_APPLICATION_RESERVED). e820__reserve_resources_late() happens at subsys_initcall time. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Keith Busch Cc: Jonathan Cameron Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --

[PATCH v6 00/12] EFI Specific Purpose Memory Support

2019-10-09 Thread Dan Williams
ux.git/commit/?id=e1cf33aafb84 [4]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c221c0b0308f [5]: http://patchwork.ozlabs.org/cover/1096737/ --- Dan Williams (12): acpi/numa: Establish a new drivers/acpi/numa/ directory efi: Enumerate EFI_MEMORY_SP

[PATCH v6 01/12] acpi/numa: Establish a new drivers/acpi/numa/ directory

2019-10-09 Thread Dan Williams
J. Wysocki Reviewed-by: Dave Hansen Signed-off-by: Dan Williams --- drivers/acpi/Kconfig |9 + drivers/acpi/Makefile |3 +-- drivers/acpi/hmat/Makefile |2 -- drivers/acpi/numa/Kconfig |6 ++ drivers/acpi/numa/Makefile |3 +++ drivers/acpi/numa/hmat.

Re: [PATCH v6 05/12] x86/efi: EFI soft reservation to E820 enumeration

2019-10-10 Thread Dan Williams
On Wed, Oct 9, 2019 at 11:45 PM Ard Biesheuvel wrote: > > On Thu, 10 Oct 2019 at 01:19, Dan Williams wrote: > > > > UEFI 2.8 defines an EFI_MEMORY_SP attribute bit to augment the > > interpretation of the EFI Memory Types as "reserved for a specific > > p

Re: [PATCH v6 05/12] x86/efi: EFI soft reservation to E820 enumeration

2019-10-10 Thread Dan Williams
On Thu, Oct 10, 2019 at 11:41 AM Ard Biesheuvel wrote: > > On Thu, 10 Oct 2019 at 20:31, Dan Williams wrote: > > > > On Wed, Oct 9, 2019 at 11:45 PM Ard Biesheuvel > > wrote: > > > > > > On Thu, 10 Oct 2019 at 01:19, Dan Williams > > > wrote

Re: [PATCH v6 05/12] x86/efi: EFI soft reservation to E820 enumeration

2019-10-11 Thread Dan Williams
On Thu, Oct 10, 2019 at 10:52 PM Ard Biesheuvel wrote: > > On Fri, 11 Oct 2019 at 04:39, Dan Williams wrote: > > > > On Thu, Oct 10, 2019 at 11:41 AM Ard Biesheuvel > > wrote: > > > > > > On Thu, 10 Oct 2019 at 20:31, Dan Williams > > > wro