Skip to content

Commit 07791ff

Browse files
riteshharjanimaddy-kerneldev
authored andcommitted
powerpc: Print MMU_FTRS_POSSIBLE & MMU_FTRS_ALWAYS at startup
Similar to CPU_FTRS_[POSSIBLE|ALWAYS], let's also print MMU_FTRS_[POSSIBLE|ALWAYS]. This has some useful data to capture during bootup. Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org> Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/c37a9f314a723048d25aa5424f7ede8eec691d86.1773078178.git.ritesh.list@gmail.com
1 parent 24eb637 commit 07791ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

arch/powerpc/kernel/setup-common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,10 @@ static __init void print_system_info(void)
865865
cur_cpu_spec->cpu_user_features,
866866
cur_cpu_spec->cpu_user_features2);
867867
pr_info("mmu_features = 0x%08x\n", cur_cpu_spec->mmu_features);
868+
pr_info(" possible = 0x%016lx\n",
869+
(unsigned long)MMU_FTRS_POSSIBLE);
870+
pr_info(" always = 0x%016lx\n",
871+
(unsigned long)MMU_FTRS_ALWAYS);
868872
#ifdef CONFIG_PPC64
869873
pr_info("firmware_features = 0x%016lx\n", powerpc_firmware_features);
870874
#ifdef CONFIG_PPC_BOOK3S

0 commit comments

Comments
 (0)