summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/module.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-11-29 06:09:15 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-11-30 14:27:07 +0300
commit5402e239d09feea482d25d60df9b908cfaf9ec3c (patch)
tree0baed78e911ab2e3ecad64e0034dce5dfb9b1f6f /arch/powerpc/kernel/module.c
parent2c9ac51b850d84ee496b0a5d832ce66d411ae552 (diff)
downloadlinux-5402e239d09feea482d25d60df9b908cfaf9ec3c.tar.xz
powerpc/64s: Get LPID bit width from device tree
Allow the LPID bit width and partition table size to be set at runtime from the device tree. Move the PID bit width detection into the same place. KVM does not support using the extra bits yet, this is mainly required to get the PTCR register values correct (so KVM will run but it will not allocate > 4096 LPIDs). OPAL firmware provides this property for POWER10 CPUs since skiboot commit 9b85f7d961f2 ("hdata: add mmu-pid-bits and mmu-lpid-bits for POWER10 CPUs"). Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211129030915.1888332-1-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/module.c')
0 files changed, 0 insertions, 0 deletions