Re: [RFC v1 10/10] powerpc: Add MMU_FTRS_POSSIBLE & MMU_FTRS_ALWAYS

Christophe Leroy (CS GROUP)
2026-03-04T09:09:44Z

Le 25/02/2026 à 12:04, Ritesh Harjani (IBM) a écrit :
> Similar to CPU_FTRS_[POSSIBLE|ALWAYS], let's also print
> MMU_FTRS_[ALWAYS|ALWAYS]. This has some useful data to capture during
> bootup.

The patch subject is misleading, should be something like:

powerpc: Print MMU_FTRS_POSSIBLE & MMU_FTRS_ALWAYS at startup

With that fixed, Reviewed-by: Christophe Leroy (CS GROUP)
<chleroy@kernel.org>

>
> Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
> ---
> arch/powerpc/kernel/setup-common.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
> index cb5b73adc250..002b312eb7e9 100644
> --- a/arch/powerpc/kernel/setup-common.c
> +++ b/arch/powerpc/kernel/setup-common.c
> @@ -866,6 +866,10 @@ static __init void print_system_info(void)
> cur_cpu_spec->cpu_user_features,
> cur_cpu_spec->cpu_user_features2);
> pr_info("mmu_features = 0x%08x\n", cur_cpu_spec->mmu_features);
> + pr_info(" possible = 0x%016lx\n",
> + (unsigned long)MMU_FTRS_POSSIBLE);
> + pr_info(" always = 0x%016lx\n",
> + (unsigned long)MMU_FTRS_ALWAYS);
> #ifdef CONFIG_PPC64
> pr_info("firmware_features = 0x%016lx\n", powerpc_firmware_features);
> #ifdef CONFIG_PPC_BOOK3S
> --
> 2.53.0
>