aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/dts/microwatt.dts
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2022-05-19 22:27:06 +0930
committerMichael Ellerman <mpe@ellerman.id.au>2022-05-22 15:59:54 +1000
commit0ef1ffc7189521e293b4c5532659385dfddf8939 (patch)
tree5dfda39d7609b286a647fe96af221d268b59c35d /arch/powerpc/boot/dts/microwatt.dts
parentpowerpc/powernv/flash: Check OPAL flash calls exist before using (diff)
downloadlinux-dev-0ef1ffc7189521e293b4c5532659385dfddf8939.tar.xz
linux-dev-0ef1ffc7189521e293b4c5532659385dfddf8939.zip
powerpc/microwatt: Add mmu bits to device tree
In commit 5402e239d09f ("powerpc/64s: Get LPID bit width from device tree") the kernel tried to determine the pid and lpid bits from the device tree. If they are not found, there is a fallback, but Microwatt wasn't covered as it has the unusual configuration of being both !HV and bare metal. Set the values in the device tree to avoid having to add a special case. The lpid value is the only one required, but add both for completeness. Fixes: 5402e239d09f ("powerpc/64s: Get LPID bit width from device tree") Signed-off-by: Joel Stanley <joel@jms.id.au> Acked-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220519125706.593532-1-joel@jms.id.au
Diffstat (limited to '')
-rw-r--r--arch/powerpc/boot/dts/microwatt.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/microwatt.dts b/arch/powerpc/boot/dts/microwatt.dts
index 65b270a90f94..b69db1d275cd 100644
--- a/arch/powerpc/boot/dts/microwatt.dts
+++ b/arch/powerpc/boot/dts/microwatt.dts
@@ -90,6 +90,8 @@
64-bit;
d-cache-size = <0x1000>;
ibm,chip-id = <0>;
+ ibm,mmu-lpid-bits = <12>;
+ ibm,mmu-pid-bits = <20>;
};
};