Home
last modified time | relevance | path

Searched hist:"6722 b25712054c0f903b839b8f5088438dd04df3" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/powerpc/mm/
H A Dinit_64.cdiff 6722b25712054c0f903b839b8f5088438dd04df3 Mon Jul 24 20:13:20 CEST 2023 Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> powerpc/mm/altmap: Fix altmap boundary check

altmap->free includes the entire free space from which altmap blocks
can be allocated. So when checking whether the kernel is doing altmap
block free, compute the boundary correctly, otherwise memory hotunplug
can fail.

Fixes: 9ef34630a461 ("powerpc/mm: Fallback to RAM if the altmap is unusable")
Signed-off-by: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230724181320.471386-1-aneesh.kumar@linux.ibm.com