On Mon, 01 Jul 2024 18:30:21 +0530, Hari Bathini wrote: > When KFENCE is enabled, total system memory is mapped at page level > granularity. But in radix MMU mode, ~3GB additional memory is needed > to map 100GB of system memory at page level granularity when compared > to using 2MB direct mapping. This is not desired considering KFENCE is > designed to be enabled in production kernels [1]. Also, mapping only > the memory allocated for KFENCE pool at page granularity is sufficient > to enable KFENCE support. So, allocate __kfence_pool during bootup and > map it at page granularity instead of mapping all system memory at > page granularity. > > [...]
Applied to powerpc/next. [1/1] radix/kfence: map __kfence_pool at page granularity https://git.kernel.org/powerpc/c/353d7a84c214f184d5a6b62acdec8b4424159b7c cheers