book3s64/hash: Disable debug_pagealloc if it requires more memory
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Fri, 18 Oct 2024 17:29:49 +0000 (22:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Oct 2024 07:53:19 +0000 (18:53 +1100)
commit47dd2e63d42a7a1b0a9c374d3a236f58b97c19e6
treeda86d29147beb5b2b7d49bf837532537c8dfb326
parent685d942d00d8b0edf8431869028e23eac6cc4bab
book3s64/hash: Disable debug_pagealloc if it requires more memory

Make size of the linear map to be allocated in RMA region to be of
ppc64_rma_size / 4. If debug_pagealloc requires more memory than that
then do not allocate any memory and disable debug_pagealloc.

Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/e1ef66f32a1fe63bcbb89d5c11d86c65beef5ded.1729271995.git.ritesh.list@gmail.com
arch/powerpc/mm/book3s64/hash_utils.c