Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-13 Thread Benjamin Gaignard
>From b78b2fea3899c5170b780f5ff138490ac6cf4cb7 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Thu, 13 Sep 2012 11:29:03 +0200 Subject: [PATCH] genalloc: make possible to use a custom allocation algorithm This patch allow to use another algorithm than the default first-fit

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-13 Thread Benjamin Gaignard
From b78b2fea3899c5170b780f5ff138490ac6cf4cb7 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard benjamin.gaign...@stericsson.com Date: Thu, 13 Sep 2012 11:29:03 +0200 Subject: [PATCH] genalloc: make possible to use a custom allocation algorithm This patch allow to use another algorithm than

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-12 Thread Andrew Morton
On Mon, 10 Sep 2012 10:46:43 +0200 Benjamin Gaignard wrote: > >From e790af0773193c3c7e5950ab74fa5e1e29204ad5 Mon Sep 17 00:00:00 2001 > From: Benjamin Gaignard > Date: Mon, 10 Sep 2012 10:11:05 +0200 > Subject: [PATCH] genalloc: make possible to use a custom allocation algorithm

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-12 Thread Andrew Morton
possible to use a custom allocation algorithm This patch allow to use another algorithm than the default first-fit one. For example a custom algorithm could be used to manage alignment requirements. Add of best-fit algorithm function: most of the time best-fit is slower then first-fit but memory

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-10 Thread Benjamin Gaignard
>From e790af0773193c3c7e5950ab74fa5e1e29204ad5 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Mon, 10 Sep 2012 10:11:05 +0200 Subject: [PATCH] genalloc: make possible to use a custom allocation algorithm This patch allow to use another algorithm than the default first-fit

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-10 Thread Benjamin Gaignard
In my mind 'data' is for custom algorithms that could need additional data to perform the allocation (it is very similar to what is done in gen_pool_for_each_chunk function). In gen_pool_set_algo function I have test 'algo' just be sure that we alway have a valid algorithm function.

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-10 Thread Benjamin Gaignard
In my mind 'data' is for custom algorithms that could need additional data to perform the allocation (it is very similar to what is done in gen_pool_for_each_chunk function). In gen_pool_set_algo function I have test 'algo' just be sure that we alway have a valid algorithm function.

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-10 Thread Benjamin Gaignard
From e790af0773193c3c7e5950ab74fa5e1e29204ad5 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard benjamin.gaign...@stericsson.com Date: Mon, 10 Sep 2012 10:11:05 +0200 Subject: [PATCH] genalloc: make possible to use a custom allocation algorithm This patch allow to use another algorithm than

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-09 Thread Huang Ying
On Fri, 2012-09-07 at 11:16 +0200, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > This patch allow to use another algorithm than the default first-fit one. > For example a custom algorithm could be used to manage alignment requirements. > > Add of best-fit algorithm function: > most of

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-09 Thread Huang Ying
On Fri, 2012-09-07 at 11:16 +0200, Benjamin Gaignard wrote: From: Benjamin Gaignard benjamin.gaign...@stericsson.com This patch allow to use another algorithm than the default first-fit one. For example a custom algorithm could be used to manage alignment requirements. Add of best-fit

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Linus Walleij
On Fri, Sep 7, 2012 at 11:27 PM, Andrew Morton wrote: > On Fri, 7 Sep 2012 11:16:33 +0200 > Benjamin Gaignard wrote: > hm, OK. What kernel subsystem are you referring to here? Where do I > find this "ESRAM shared by multiple hardware"? This is on the Ux500 in the ARM tree. We have defined

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Andrew Morton
On Fri, 7 Sep 2012 11:16:33 +0200 Benjamin Gaignard wrote: > From: Benjamin Gaignard > > This patch allow to use another algorithm than the default first-fit one. > For example a custom algorithm could be used to manage alignment requirements. > > Add of best-fit algorithm function: > most

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Linus Walleij
On Fri, Sep 7, 2012 at 11:16 AM, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > This patch allow to use another algorithm than the default first-fit one. > For example a custom algorithm could be used to manage alignment requirements. > > Add of best-fit algorithm function: > most of

[PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Benjamin Gaignard
From: Benjamin Gaignard This patch allow to use another algorithm than the default first-fit one. For example a custom algorithm could be used to manage alignment requirements. Add of best-fit algorithm function: most of the time best-fit is slower then first-fit but memory fragmentation is

[PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Benjamin Gaignard
From: Benjamin Gaignard benjamin.gaign...@stericsson.com This patch allow to use another algorithm than the default first-fit one. For example a custom algorithm could be used to manage alignment requirements. Add of best-fit algorithm function: most of the time best-fit is slower then first-fit

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Linus Walleij
On Fri, Sep 7, 2012 at 11:16 AM, Benjamin Gaignard benjamin.gaign...@linaro.org wrote: From: Benjamin Gaignard benjamin.gaign...@stericsson.com This patch allow to use another algorithm than the default first-fit one. For example a custom algorithm could be used to manage alignment

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Andrew Morton
On Fri, 7 Sep 2012 11:16:33 +0200 Benjamin Gaignard benjamin.gaign...@linaro.org wrote: From: Benjamin Gaignard benjamin.gaign...@stericsson.com This patch allow to use another algorithm than the default first-fit one. For example a custom algorithm could be used to manage alignment

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Linus Walleij
On Fri, Sep 7, 2012 at 11:27 PM, Andrew Morton a...@linux-foundation.org wrote: On Fri, 7 Sep 2012 11:16:33 +0200 Benjamin Gaignard benjamin.gaign...@linaro.org wrote: hm, OK. What kernel subsystem are you referring to here? Where do I find this ESRAM shared by multiple hardware? This is