[PATCH v5 15/17] powerpc/64s: Make hash MMU support configurable

Fabiano Rosas farosas at linux.ibm.com
Tue Nov 30 00:46:39 AEDT 2021


Nicholas Piggin <npiggin at gmail.com> writes:

> This adds Kconfig selection which allows 64s hash MMU support to be
> disabled. It can be disabled if radix support is enabled, the minimum
> supported CPU type is POWER9 (or higher), and KVM is not selected.
>
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
> ---
>  arch/powerpc/Kconfig                     |  3 ++-
>  arch/powerpc/include/asm/mmu.h           | 16 +++++++++++++---
>  arch/powerpc/kernel/dt_cpu_ftrs.c        | 14 ++++++++++----
>  arch/powerpc/kvm/Kconfig                 |  1 +
>  arch/powerpc/mm/init_64.c                | 13 +++++++++++--
>  arch/powerpc/platforms/Kconfig.cputype   | 23 +++++++++++++++++++++--
>  arch/powerpc/platforms/cell/Kconfig      |  1 +
>  arch/powerpc/platforms/maple/Kconfig     |  1 +
>  arch/powerpc/platforms/microwatt/Kconfig |  2 +-
>  arch/powerpc/platforms/pasemi/Kconfig    |  1 +
>  arch/powerpc/platforms/powermac/Kconfig  |  1 +
>  arch/powerpc/platforms/powernv/Kconfig   |  2 +-

powernv_defconfig brings CONFIG_CXL=m

../drivers/misc/cxl/main.c: In function ‘cxl_alloc_sst’:                                                  
../drivers/misc/cxl/main.c:127:45: error: ‘mmu_linear_psize’ undeclared (first use in this function); did you mean ‘mmu_virtual_psize’?                                                                              
  127 |  sstp0 |= (SLB_VSID_KERNEL | mmu_psize_defs[mmu_linear_psize].sllp) << 50;                        
      |                                             ^~~~~~~~~~~~~~~~                                      
      |                                             mmu_virtual_psize                                     
../drivers/misc/cxl/main.c:127:45: note: each undeclared identifier is reported only once for each function it appears in                                                                                            
make[4]: *** [../scripts/Makefile.build:287: drivers/misc/cxl/main.o] Error 1 



More information about the Linuxppc-dev mailing list