Re: [PATCH] kern/ieee1275/init: ppc64: Restrict high memory in presence of fadump

2023-09-25 Thread Hari Bathini
;s RB when he confirms it here. The change looks good to me. With the change applied, possible kernel dump corruption is avoided. Reviewed-by: Hari Bathini Cc: Pavithra Prakash Cc: Michael Ellerman Cc: Carolyn Scherrer Cc: Mahesh Salgaonkar Cc: Sourabh Jain .

Re: [PATCH 1/9] kern/ieee1275/init: ppc64: Introduce a request for regions_claim

2023-11-10 Thread Hari Bathini
On 31/10/23 11:20 pm, Stefan Berger wrote: The regions_claim() function limits the allocation of memory regions by excluding certain memory areas from being used by grub. This for example includes a gap between 640MB and 768MB as well as an upper limit beyond which no memory may be used when an

Re: [PATCH 3/9] kern/ieee1275/init: ppc64: Return allocated address and len using context

2023-11-10 Thread Hari Bathini
On 31/10/23 11:20 pm, Stefan Berger wrote: Return the allocated address and the length of the memory block in the request structure if a memory allocation was actually done. Leave the address untouched otherwise. This enables a caller who wants to use the allocated memory directly (rather than

Re: [PATCH 6/9] kern/ieee1275/init: ppc64: Implement alloc_mem_restricted

2023-11-10 Thread Hari Bathini
On 31/10/23 11:20 pm, Stefan Berger wrote: Implement alloc_mem_restricted that uses regions_claim() for memory allocation. The ieee1275 loader will use this function on PowerVM and PowerKVM and thus avoid usage of memory that it is not allowed to use. Signed-off-by: Stefan Berger Cc: Hari

Re: [PATCH 5/9] kern/ieee1275/init: ppc64: Add support for alignment requirements

2023-11-10 Thread Hari Bathini
. None of the current callers has memory alignment requirements but the ieee1275 loader for kernel and initrd will use it to convey them. Signed-off-by: stefan Berger Cc: Hari Bathini Cc: Pavithra Prakash Cc: Michael Ellerman Cc: Carolyn Scherrer Cc: Mahesh Salgaonkar Cc: Sourabh Jain --- grub