powerpc/mm: Update the memory limit based on direct mapping restrictions
authorAneesh Kumar K.V (IBM) <aneesh.kumar@kernel.org>
Wed, 3 Apr 2024 08:36:11 +0000 (14:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Apr 2024 06:09:14 +0000 (16:09 +1000)
commit5a799af9522641517f6d871d9f56e2658ee7db58
treebc5bcffa344033673b347e5b26d602da3c8c6076
parentf94f5ac07983cb53de0c964f5428366c19e81993
powerpc/mm: Update the memory limit based on direct mapping restrictions

memory limit value specified by the user are further updated such that
the value is 16MB aligned. This is because hash translation mode use
16MB as direct mapping page size. Make sure we update the global
variable 'memory_limit' with the 16MB aligned value such that all kernel
components will see the new aligned value of the memory limit.

Signed-off-by: Aneesh Kumar K.V (IBM) <aneesh.kumar@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240403083611.172833-3-aneesh.kumar@kernel.org
arch/powerpc/kernel/prom.c