Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1534996

[PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized for the entire section'

From James Morse <james.morse@arm.com>
Newsgroups linux.kernel
Subject [PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized for the entire section'
Date 2016-12-02 16:00 +0100
Message-ID <sJXtE-5bN-19@gated-at.bofh.it> (permalink)
References <sJCIy-6wt-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Patch "arm64: mm: Fix memmap to be initialized for the entire section"
changes pfn_valid() in a way that breaks hibernate. These patches fix
hibernate, and provided struct page's are allocated for nomap pages,
can be applied before [0].

Hibernate core code belives 'valid' to mean "I can access this". It
uses pfn_valid() to test the page if the page is 'valid'.

pfn_valid() needs to be changed so that all struct pages in a numa
node have the same node-id. Currently 'nomap' pages are skipped, and
retain their pre-numa node-ids, which leads to a later BUG_ON().

These patches make hibernate's savable_page() take its escape route
via 'if (PageReserved(page) && pfn_is_nosave(pfn))'.


[0] https://lkml.org/lkml/2016/11/30/566

James Morse (2):
  arm64: mm: Mark nomap regions with the PG_reserved flag
  arm64: hibernate: report nomap regions as being pfn_nosave

 arch/arm64/kernel/hibernate.c |  6 +++++-
 arch/arm64/mm/init.c          | 14 ++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

-- 
2.10.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized for the entire section' James Morse <james.morse@arm.com> - 2016-12-02 16:00 +0100
  [PATCH 2/2] arm64: hibernate: report nomap regions as being pfn_nosave James Morse <james.morse@arm.com> - 2016-12-02 16:00 +0100
  Re: [PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized for  the entire section' Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-12-05 16:50 +0100
    Re: [PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized  for the entire section' Will Deacon <will.deacon@arm.com> - 2016-12-06 18:40 +0100
      Re: [PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized  for the entire section' Will Deacon <will.deacon@arm.com> - 2016-12-07 15:40 +0100

csiph-web