Re: [PATCH] riscv: bypass malloc when spl fit boots from ram

2022-12-27 Thread Rick Chen
> On 12/27/22 21:22, Rick Chen wrote: > > Hi Samuel, > > > > Samuel Holland 於 2022年12月28日 週三 上午10:47寫道: > >> > >> On 12/22/22 01:21, Rick Chen wrote: > >>> When fit image boots from ram, the payload will > >>> be prepared in the address of SPL_LOAD_FIT_ADDRESS. > >>> In spl fit generic flow, it

Re: [PATCH] riscv: bypass malloc when spl fit boots from ram

2022-12-27 Thread Samuel Holland
On 12/27/22 21:22, Rick Chen wrote: > Hi Samuel, > > Samuel Holland 於 2022年12月28日 週三 上午10:47寫道: >> >> On 12/22/22 01:21, Rick Chen wrote: >>> When fit image boots from ram, the payload will >>> be prepared in the address of SPL_LOAD_FIT_ADDRESS. >>> In spl fit generic flow, it will malloc

Re: [PATCH] riscv: bypass malloc when spl fit boots from ram

2022-12-27 Thread Rick Chen
Hi Samuel, Samuel Holland 於 2022年12月28日 週三 上午10:47寫道: > > On 12/22/22 01:21, Rick Chen wrote: > > When fit image boots from ram, the payload will > > be prepared in the address of SPL_LOAD_FIT_ADDRESS. > > In spl fit generic flow, it will malloc another > > memory address and copy whole fit

Re: [PATCH] riscv: bypass malloc when spl fit boots from ram

2022-12-27 Thread Samuel Holland
On 12/22/22 01:21, Rick Chen wrote: > When fit image boots from ram, the payload will > be prepared in the address of SPL_LOAD_FIT_ADDRESS. > In spl fit generic flow, it will malloc another > memory address and copy whole fit image to this > malloc address. But it is un-necessary for booting >

[PATCH] riscv: bypass malloc when spl fit boots from ram

2022-12-21 Thread Rick Chen
When fit image boots from ram, the payload will be prepared in the address of SPL_LOAD_FIT_ADDRESS. In spl fit generic flow, it will malloc another memory address and copy whole fit image to this malloc address. But it is un-necessary for booting from RAM. This patch improves this flow by