Hi Zhuxu,

On 24.09.26 05:46, Zhuxu Ran wrote:
>> However, this doesn't work for U-Boot because it places its stack
>> and heap near the top of RAM, therefore region in the top of RAM
>> is not reserved.
> 
> Hi Andrei,
> 
> Thanks for reporting this, and sorry I missed your reply before
> sending v4.
> 
> You are right. U-Boot selects its relocation area before LMB
> processes the reserved-memory regions. As a result, the top of RAM
> may already be occupied by U-Boot when the coprocessor region is
> reserved.
> 
> In the next revision, I will exclude the reserved region from the 
> memory available to U-Boot. The Milk-V Duo 256M has a similar reserved 
> region at the top of RAM, so I will address and test both boards.
> 

Please leave it as is, I was wrong. Probably 'reserved-memory' will
likely be dropped in the future. See [1].

1 - https://lore.kernel.org/sophgo/[email protected]/

-- 
Best regards,
Andrei Lalaev

Reply via email to