> > -----Original Message----- > > From: grub-devel-bounces+elliott=hp....@gnu.org [mailto:grub-devel- > > bounces+elliott=hp....@gnu.org] On Behalf Of Vladimir 'f- > > coder/phcoder' Serbinenko > > Sent: Friday, November 27, 2015 5:08 AM > > To: The development of GNU GRUB <grub-devel@gnu.org> > > Subject: Re: grub causing NVDIMMs to be treated as normal memory > > > > What about this patch for the passing of pram? > ... > > --- a/include/grub/memory.h > > +++ b/include/grub/memory.h > > @@ -30,6 +30,7 @@ typedef enum grub_memory_type > > GRUB_MEMORY_ACPI = 3, > > GRUB_MEMORY_NVS = 4, > > GRUB_MEMORY_BADRAM = 5, > > + GRUB_MEMORY_PRAM = 7, ...
Here is a proposed patch series expanding upon that. I compiled the efiemu changes but am not sure how to test them. I did test that lsnvimm properly displays the new type name. I suggest bumping the version number so we have a way to distinguish grubs that destroy NVDIMM data from ones that don't. It looks like grub has been stuck on "2.02~beta2" for about two years, which is very confusing. An update to NEWS should be included with that patch. Robert Elliott (4): Translate UEFI persistent memory type Add persistent memory type to efiemu efiemu: Handle all reserved UEFI memory map types the same way Bump version to 2.03 configure.ac | 2 +- grub-core/commands/lsmmap.c | 2 ++ grub-core/efiemu/mm.c | 25 ++++++++++++++++++++++--- grub-core/mmap/efi/mmap.c | 11 +++++++++++ include/grub/efi/api.h | 1 + include/grub/memory.h | 2 ++ 6 files changed, 39 insertions(+), 4 deletions(-) --- Robert Elliott, HPE Persistent Memory
0001-Translate-UEFI-persistent-memory-type.patch
Description: 0001-Translate-UEFI-persistent-memory-type.patch
0002-Add-persistent-memory-type-to-efiemu.patch
Description: 0002-Add-persistent-memory-type-to-efiemu.patch
0003-efiemu-Handle-all-reserved-UEFI-memory-map-types-the.patch
Description: 0003-efiemu-Handle-all-reserved-UEFI-memory-map-types-the.patch
0004-Bump-version-to-2.03.patch
Description: 0004-Bump-version-to-2.03.patch
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel