Re: [PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-22 Thread Dan Williams
On Thu, Jun 21, 2018 at 11:55 PM, Naoya Horiguchi wrote: > On Thu, Jun 21, 2018 at 11:12:01PM -0700, Dan Williams wrote: >> On Thu, Jun 21, 2018 at 11:08 PM, Naoya Horiguchi >> wrote: >> > Reading /proc/kpageflags for pfns allocated by pmem namespace triggers >> > kernel panic with a message like

Re: [PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Naoya Horiguchi
On Thu, Jun 21, 2018 at 11:12:01PM -0700, Dan Williams wrote: > On Thu, Jun 21, 2018 at 11:08 PM, Naoya Horiguchi > wrote: > > Reading /proc/kpageflags for pfns allocated by pmem namespace triggers > > kernel panic with a message like "BUG: unable to handle kernel paging > > request at fff

Re: [PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Dan Williams
On Thu, Jun 21, 2018 at 11:12 PM, Dan Williams wrote: > On Thu, Jun 21, 2018 at 11:08 PM, Naoya Horiguchi > wrote: >> Reading /proc/kpageflags for pfns allocated by pmem namespace triggers >> kernel panic with a message like "BUG: unable to handle kernel paging >> request at fffe". >>

Re: [PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Dan Williams
On Thu, Jun 21, 2018 at 11:08 PM, Naoya Horiguchi wrote: > Reading /proc/kpageflags for pfns allocated by pmem namespace triggers > kernel panic with a message like "BUG: unable to handle kernel paging > request at fffe". > > The first few pages (controlled by altmap passed to memmap_i

[PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Naoya Horiguchi
Reading /proc/kpageflags for pfns allocated by pmem namespace triggers kernel panic with a message like "BUG: unable to handle kernel paging request at fffe". The first few pages (controlled by altmap passed to memmap_init_zone()) in the ZONE_DEVICE can skip struct page initialization,