Re: [PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2020-01-30 Thread Andrew Morton
On Tue, 3 Dec 2019 15:42:28 +0530 "Aneesh Kumar K.V" wrote: > On 12/3/19 6:20 AM, Dan Williams wrote: > > On Sat, Nov 30, 2019 at 3:13 PM Andrew Morton > > wrote: > >> > >> On Wed, 25 Sep 2019 09:21:02 +0530 "Aneesh Kumar K.V" > >> wrote: > >> > >>> Andrew Morton writes: > >>> > On

Re: [PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2019-12-03 Thread Aneesh Kumar K.V
On 12/3/19 6:20 AM, Dan Williams wrote: On Sat, Nov 30, 2019 at 3:13 PM Andrew Morton wrote: On Wed, 25 Sep 2019 09:21:02 +0530 "Aneesh Kumar K.V" wrote: Andrew Morton writes: On Tue, 17 Sep 2019 21:01:29 +0530 "Aneesh Kumar K.V" wrote: vmem_altmap_offset() adjust the section

Re: [PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2019-12-02 Thread Dan Williams
On Sat, Nov 30, 2019 at 3:13 PM Andrew Morton wrote: > > On Wed, 25 Sep 2019 09:21:02 +0530 "Aneesh Kumar K.V" > wrote: > > > Andrew Morton writes: > > > > > On Tue, 17 Sep 2019 21:01:29 +0530 "Aneesh Kumar K.V" > > > wrote: > > > > > >> vmem_altmap_offset() adjust the section aligned

Re: [PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2019-11-30 Thread Andrew Morton
On Wed, 25 Sep 2019 09:21:02 +0530 "Aneesh Kumar K.V" wrote: > Andrew Morton writes: > > > On Tue, 17 Sep 2019 21:01:29 +0530 "Aneesh Kumar K.V" > > wrote: > > > >> vmem_altmap_offset() adjust the section aligned base_pfn offset. > >> So we need to make sure we account for the same when

Re: [PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2019-09-19 Thread Andrew Morton
On Tue, 17 Sep 2019 21:01:29 +0530 "Aneesh Kumar K.V" wrote: > vmem_altmap_offset() adjust the section aligned base_pfn offset. > So we need to make sure we account for the same when computing base_pfn. > > ie, for altmap_valid case, our pfn_first should be: > > pfn_first = altmap->base_pfn +

Re: [PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2019-09-17 Thread Ralph Campbell
On 9/17/19 8:31 AM, Aneesh Kumar K.V wrote: vmem_altmap_offset() adjust the section aligned base_pfn offset. So we need to make sure we account for the same when computing base_pfn. ie, for altmap_valid case, our pfn_first should be: pfn_first = altmap->base_pfn + vmem_altmap_offset(altmap);

[PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2019-09-17 Thread Aneesh Kumar K.V
vmem_altmap_offset() adjust the section aligned base_pfn offset. So we need to make sure we account for the same when computing base_pfn. ie, for altmap_valid case, our pfn_first should be: pfn_first = altmap->base_pfn + vmem_altmap_offset(altmap); Signed-off-by: Aneesh Kumar K.V --- * changes