Re: [PATCH] cma: fix calculation of aligned offset

2017-06-29 Thread Andrew Morton
On Thu, 29 Jun 2017 17:43:18 -0700 Doug Berger wrote: > On 06/29/2017 01:48 PM, Andrew Morton wrote: > > On Wed, 28 Jun 2017 10:07:41 -0700 Doug Berger wrote: > > > >> The align_offset parameter is used by bitmap_find_next_zero_area_off() > >> to represent the offset of map's base from the prev

Re: [PATCH] cma: fix calculation of aligned offset

2017-06-29 Thread Doug Berger
On 06/29/2017 01:48 PM, Andrew Morton wrote: > On Wed, 28 Jun 2017 10:07:41 -0700 Doug Berger wrote: > >> The align_offset parameter is used by bitmap_find_next_zero_area_off() >> to represent the offset of map's base from the previous alignment >> boundary; the function ensures that the returned

Re: [PATCH] cma: fix calculation of aligned offset

2017-06-29 Thread Andrew Morton
On Wed, 28 Jun 2017 10:07:41 -0700 Doug Berger wrote: > The align_offset parameter is used by bitmap_find_next_zero_area_off() > to represent the offset of map's base from the previous alignment > boundary; the function ensures that the returned index, plus the > align_offset, honors the specifie

Re: [PATCH] cma: fix calculation of aligned offset

2017-06-29 Thread Doug Berger
On 06/28/2017 11:23 PM, Gregory Fong wrote: > On Wed, Jun 28, 2017 at 10:07 AM, Doug Berger wrote: >> The align_offset parameter is used by bitmap_find_next_zero_area_off() >> to represent the offset of map's base from the previous alignment >> boundary; the function ensures that the returned inde

Re: [PATCH] cma: fix calculation of aligned offset

2017-06-28 Thread Gregory Fong
On Wed, Jun 28, 2017 at 10:07 AM, Doug Berger wrote: > The align_offset parameter is used by bitmap_find_next_zero_area_off() > to represent the offset of map's base from the previous alignment > boundary; the function ensures that the returned index, plus the > align_offset, honors the specified

[PATCH] cma: fix calculation of aligned offset

2017-06-28 Thread Doug Berger
The align_offset parameter is used by bitmap_find_next_zero_area_off() to represent the offset of map's base from the previous alignment boundary; the function ensures that the returned index, plus the align_offset, honors the specified align_mask. The logic introduced by commit b5be83e308f7 ("mm: