Thread (20 messages) 20 messages, 2 authors, 2021-12-01

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

From: Nicholas Piggin <npiggin@gmail.com>
Date: 2021-12-01 05:14:03

Excerpts from Fabiano Rosas's message of November 29, 2021 11:46 pm:
Nicholas Piggin [off-list ref] writes:
quoted
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@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 
Gah. I'll have to just make that depend on hash MMU for now.

I won't repost the full series yet it's should just be a one liner.

Thanks,
Nick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help