Re: [PATCH 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-17 Thread Michal Hocko
On Fri 17-07-20 18:28:16, Joonsoo Kim wrote: > 2020년 7월 17일 (금) 오후 5:26, Michal Hocko 님이 작성: > > > > On Fri 17-07-20 16:46:38, Joonsoo Kim wrote: > > > 2020년 7월 15일 (수) 오후 5:24, Michal Hocko 님이 작성: > > > > > > > > On Wed 15-07-20 14:05:27, Joonsoo Kim wrote: > > > > > From: Joonsoo Kim > > > > > >

Re: [PATCH 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-17 Thread Joonsoo Kim
2020년 7월 17일 (금) 오후 5:26, Michal Hocko 님이 작성: > > On Fri 17-07-20 16:46:38, Joonsoo Kim wrote: > > 2020년 7월 15일 (수) 오후 5:24, Michal Hocko 님이 작성: > > > > > > On Wed 15-07-20 14:05:27, Joonsoo Kim wrote: > > > > From: Joonsoo Kim > > > > > > > > We have well defined scope API to exclude CMA region.

Re: [PATCH 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-17 Thread Michal Hocko
On Fri 17-07-20 16:46:38, Joonsoo Kim wrote: > 2020년 7월 15일 (수) 오후 5:24, Michal Hocko 님이 작성: > > > > On Wed 15-07-20 14:05:27, Joonsoo Kim wrote: > > > From: Joonsoo Kim > > > > > > We have well defined scope API to exclude CMA region. > > > Use it rather than manipulating gfp_mask manually. With

Re: [PATCH 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-17 Thread Joonsoo Kim
2020년 7월 15일 (수) 오후 5:24, Michal Hocko 님이 작성: > > On Wed 15-07-20 14:05:27, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > We have well defined scope API to exclude CMA region. > > Use it rather than manipulating gfp_mask manually. With this change, > > we can now use __GFP_MOVABLE for gfp_mask

Re: [PATCH 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-15 Thread Michal Hocko
On Wed 15-07-20 14:05:27, Joonsoo Kim wrote: > From: Joonsoo Kim > > We have well defined scope API to exclude CMA region. > Use it rather than manipulating gfp_mask manually. With this change, > we can now use __GFP_MOVABLE for gfp_mask and the ZONE_MOVABLE is also > searched by page allocator.

[PATCH 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-14 Thread js1304
From: Joonsoo Kim We have well defined scope API to exclude CMA region. Use it rather than manipulating gfp_mask manually. With this change, we can now use __GFP_MOVABLE for gfp_mask and the ZONE_MOVABLE is also searched by page allocator. For hugetlb, gfp_mask is redefined since it has a regular