Re: [PATCH v2 04/17] kexec: Add KHO parsing support

2024-01-15 Thread Alexander Graf
On 01.01.24 04:33, Stanislav Kinsburskii wrote: On Fri, Dec 22, 2023 at 07:35:54PM +, Alexander Graf wrote: +/** + * kho_reserve_previous_mem - Adds all memory reservations into memblocks + * and moves us out of the scratch only phase. Must be called after page tables + * are initialized

Re: [PATCH v2 04/17] kexec: Add KHO parsing support

2024-01-02 Thread Stanislav Kinsburskii
On Fri, Dec 22, 2023 at 07:35:54PM +, Alexander Graf wrote: > +/** > + * kho_reserve_previous_mem - Adds all memory reservations into memblocks > + * and moves us out of the scratch only phase. Must be called after page > tables > + * are initialized and memblock_allow_resize(). > + */ >

[PATCH v2 04/17] kexec: Add KHO parsing support

2023-12-22 Thread Alexander Graf
When we have a KHO kexec, we get a device tree, mem cache and scratch region to populate the state of the system. Provide helper functions that allow architecture code to easily handle memory reservations based on them and give device drivers visibility into the KHO DT and memory reservations so