Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-04 Thread Marek Vasut
On 08/04/2016 05:12 PM, Chin Liang See wrote: > On Thu, 2016-08-04 at 07:30 +0200, Marek Vasut wrote: >> On 08/03/2016 05:22 PM, Chin Liang See wrote: >> >> Hi, > > Hi Marek, > >> >> [...] > It's the fat driver which is utilizing the malloc. So fat is allocating stuff without

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-04 Thread Chin Liang See
On Thu, 2016-08-04 at 07:30 +0200, Marek Vasut wrote: > On 08/03/2016 05:22 PM, Chin Liang See wrote: > > Hi, Hi Marek, > > [...] > > > > It's the fat driver which is utilizing the malloc. > > > > > > So fat is allocating stuff without freeing it ? I wonder if we > > > should > > > either fix

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-04 Thread Chin Liang See
On Wed, 2016-08-03 at 19:17 -0600, Simon Glass wrote: > Hi, > Hi Simon, > On 2 August 2016 at 21:24, Chin Liang See wrote: > > Enable a simple malloc implementation which will minimize > > memory usage prior relocation. This is essential as memory > > available prior location

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Marek Vasut
On 08/03/2016 05:22 PM, Chin Liang See wrote: Hi, [...] >>> It's the fat driver which is utilizing the malloc. >> >> So fat is allocating stuff without freeing it ? I wonder if we should >> either fix fat or use full malloc in SPL on A10 . I am not really >> fond >> of adding more stuff into

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Simon Glass
Hi, On 2 August 2016 at 21:24, Chin Liang See wrote: > Enable a simple malloc implementation which will minimize > memory usage prior relocation. This is essential as memory > available prior location is internal memory and limited in > size. > > This implementation will stored

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Chin Liang See
On Wed, 2016-08-03 at 15:57 +0200, Marek Vasut wrote: > On 08/03/2016 03:41 PM, Chin Liang See wrote: > > On Wed, 2016-08-03 at 09:53 +0200, Marek Vasut wrote: > > > On 08/03/2016 09:30 AM, Chin Liang See wrote: > > > > Hi Marek, > > > > > > Hi, > > > > > > > On Wed, 2016-08-03 at 08:58 +0200,

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Marek Vasut
On 08/03/2016 03:41 PM, Chin Liang See wrote: > On Wed, 2016-08-03 at 09:53 +0200, Marek Vasut wrote: >> On 08/03/2016 09:30 AM, Chin Liang See wrote: >>> Hi Marek, >> >> Hi, >> >>> On Wed, 2016-08-03 at 08:58 +0200, Marek Vasut wrote: On 08/03/2016 05:24 AM, Chin Liang See wrote: >

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Chin Liang See
On Wed, 2016-08-03 at 09:53 +0200, Marek Vasut wrote: > On 08/03/2016 09:30 AM, Chin Liang See wrote: > > Hi Marek, > > Hi, > > > On Wed, 2016-08-03 at 08:58 +0200, Marek Vasut wrote: > > > On 08/03/2016 05:24 AM, Chin Liang See wrote: > > > > Enable a simple malloc implementation which will

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Marek Vasut
On 08/03/2016 09:30 AM, Chin Liang See wrote: > Hi Marek, Hi, > On Wed, 2016-08-03 at 08:58 +0200, Marek Vasut wrote: >> On 08/03/2016 05:24 AM, Chin Liang See wrote: >>> Enable a simple malloc implementation which will minimize >>> memory usage prior relocation. This is essential as memory >>>

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Chin Liang See
Hi Marek, On Wed, 2016-08-03 at 08:58 +0200, Marek Vasut wrote: > On 08/03/2016 05:24 AM, Chin Liang See wrote: > > Enable a simple malloc implementation which will minimize > > memory usage prior relocation. This is essential as memory > > available prior location is internal memory and limited

Re: [U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-03 Thread Marek Vasut
On 08/03/2016 05:24 AM, Chin Liang See wrote: > Enable a simple malloc implementation which will minimize > memory usage prior relocation. This is essential as memory > available prior location is internal memory and limited in > size. > > This implementation will stored last 2 usage of malloc.

[U-Boot] [PATCH] malloc_simple: Add simple malloc free function

2016-08-02 Thread Chin Liang See
Enable a simple malloc implementation which will minimize memory usage prior relocation. This is essential as memory available prior location is internal memory and limited in size. This implementation will stored last 2 usage of malloc. When free is invoked and the free address matched, we shall