Re: [PATCH v2 3/5] kernel/power: allow hibernation with page_poison sanity checking

2020-11-12 Thread David Hildenbrand
On 12.11.20 15:39, Vlastimil Babka wrote: On 11/11/20 4:42 PM, David Hildenbrand wrote: ... @@ -1152,12 +1152,18 @@ void clear_free_pages(void) if (WARN_ON(!(free_pages_map))) return; - if (IS_ENABLED(CONFIG_PAGE_POISONING_ZERO) || want_init_on_free()) { + if

Re: [PATCH v2 3/5] kernel/power: allow hibernation with page_poison sanity checking

2020-11-12 Thread Rafael J. Wysocki
On Thu, Nov 12, 2020 at 3:42 PM Vlastimil Babka wrote: > > On 11/11/20 4:42 PM, David Hildenbrand wrote: > ... > >> @@ -1152,12 +1152,18 @@ void clear_free_pages(void) > >> if (WARN_ON(!(free_pages_map))) > >> return; > >> > >> -if (IS_ENABLED(CONFIG_PAGE_POISONING_ZERO) ||

Re: [PATCH v2 3/5] kernel/power: allow hibernation with page_poison sanity checking

2020-11-12 Thread Vlastimil Babka
On 11/11/20 4:42 PM, David Hildenbrand wrote: ... @@ -1152,12 +1152,18 @@ void clear_free_pages(void) if (WARN_ON(!(free_pages_map))) return; - if (IS_ENABLED(CONFIG_PAGE_POISONING_ZERO) || want_init_on_free()) { + if (page_poisoning_enabled() ||

Re: [PATCH v2 3/5] kernel/power: allow hibernation with page_poison sanity checking

2020-11-11 Thread David Hildenbrand
On 03.11.20 16:22, Vlastimil Babka wrote: Page poisoning used to be incompatible with hibernation, as the state of poisoned pages was lost after resume, thus enabling CONFIG_HIBERNATION forces CONFIG_PAGE_POISONING_NO_SANITY. For the same reason, the poisoning with zeroes variant

Re: [PATCH v2 3/5] kernel/power: allow hibernation with page_poison sanity checking

2020-11-05 Thread Rafael J. Wysocki
On Tue, Nov 3, 2020 at 4:24 PM Vlastimil Babka wrote: > > Page poisoning used to be incompatible with hibernation, as the state of > poisoned pages was lost after resume, thus enabling CONFIG_HIBERNATION forces > CONFIG_PAGE_POISONING_NO_SANITY. For the same reason, the poisoning with > zeroes >

[PATCH v2 3/5] kernel/power: allow hibernation with page_poison sanity checking

2020-11-03 Thread Vlastimil Babka
Page poisoning used to be incompatible with hibernation, as the state of poisoned pages was lost after resume, thus enabling CONFIG_HIBERNATION forces CONFIG_PAGE_POISONING_NO_SANITY. For the same reason, the poisoning with zeroes variant CONFIG_PAGE_POISONING_ZERO used to disable hibernation. The