;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
.
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
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
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
.
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