powerpc: Fix TLB cleanup at boot on POWER8

The TLB has 512 congruence classes (2048 entries 4 way set associative)
while P7 had 128
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 1ad936e8
...@@ -135,8 +135,12 @@ __init_HFSCR: ...@@ -135,8 +135,12 @@ __init_HFSCR:
blr blr
__init_TLB: __init_TLB:
/* Clear the TLB */ /*
li r6,128 * Clear the TLB using the "IS 3" form of tlbiel instruction
* (invalidate by congruence class). P7 has 128 CCs, P8 has 512
* so we just always do 512
*/
li r6,512
mtctr r6 mtctr r6
li r7,0xc00 /* IS field = 0b11 */ li r7,0xc00 /* IS field = 0b11 */
ptesync ptesync
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment