Skip to content

Commit 0ef1ffc

Browse files
shenkimpe
authored andcommitted
powerpc/microwatt: Add mmu bits to device tree
In commit 5402e23 ("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: 5402e23 ("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
1 parent 25e6996 commit 0ef1ffc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/powerpc/boot/dts/microwatt.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
64-bit;
9191
d-cache-size = <0x1000>;
9292
ibm,chip-id = <0>;
93+
ibm,mmu-lpid-bits = <12>;
94+
ibm,mmu-pid-bits = <20>;
9395
};
9496
};
9597

0 commit comments

Comments
 (0)