Re: [PATCH v4 5/7] dma-buf: system_heap: Allocate higher order pages if available

2020-10-30 Thread Hillf Danton
On Thu, 29 Oct 2020 12:34:51 -0700 John Stultz wrote: > > As for your comment on HPAGE_PMD_ORDER (9 on arm64/arm) and > PAGE_ALLOC_COSTLY_ORDER(3), I'm not totally sure I understand your > question? Are you suggesting those values would be more natural orders > to choose from? The numbers, 9 and

Re: [PATCH v4 5/7] dma-buf: system_heap: Allocate higher order pages if available

2020-10-29 Thread John Stultz
On Thu, Oct 29, 2020 at 7:34 PM Hillf Danton wrote: > On Thu, 29 Oct 2020 12:34:51 -0700 John Stultz wrote: > > As for your comment on HPAGE_PMD_ORDER (9 on arm64/arm) and > > PAGE_ALLOC_COSTLY_ORDER(3), I'm not totally sure I understand your > > question? Are you suggesting those values would be

Re: [PATCH v4 5/7] dma-buf: system_heap: Allocate higher order pages if available

2020-10-29 Thread John Stultz
On Thu, Oct 29, 2020 at 12:02 AM Hillf Danton wrote: > > On Thu, 29 Oct 2020 00:16:22 + John Stultz wrote: > > > > +#define HIGH_ORDER_GFP (((GFP_HIGHUSER | __GFP_ZERO | __GFP_NOWARN \ > > + | __GFP_NORETRY) & ~__GFP_RECLAIM) \ > > + | _

Re: [PATCH v4 5/7] dma-buf: system_heap: Allocate higher order pages if available

2020-10-29 Thread Hillf Danton
On Thu, 29 Oct 2020 00:16:22 + John Stultz wrote: > > +#define HIGH_ORDER_GFP (((GFP_HIGHUSER | __GFP_ZERO | __GFP_NOWARN \ > + | __GFP_NORETRY) & ~__GFP_RECLAIM) \ > + | __GFP_COMP) > +#define LOW_ORDER_GFP (GFP_HIGHUSER | __GFP_ZERO |

[PATCH v4 5/7] dma-buf: system_heap: Allocate higher order pages if available

2020-10-28 Thread John Stultz
While the system heap can return non-contiguous pages, try to allocate larger order pages if possible. This will allow slight performance gains and make implementing page pooling easier. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasa

[PATCH v4 5/7] dma-buf: system_heap: Allocate higher order pages if available

2020-10-16 Thread John Stultz
While the system heap can return non-contiguous pages, try to allocate larger order pages if possible. This will allow slight performance gains and make implementing page pooling easier. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasa