Skip to contentSkip to conversation

powerpc/mm: Use tlbiel for 4KB pages

PATCH In review Gavin Shan 2 participants 2 messages Apr 18, 2013 PowerPC

lore
Share & tools
lore

Gavin Shan

author
#0 lore raw

PATCH 1/1 powerpc/mm: Use tlbiel for 4KB pages

The firmware should have supplied correct information for the kernel to figure out the page size array, which is traced by mmu_psize_defs[]. Otherwise, the kernel will fail back to use solely 4KB page size and copy mmu_psize_defaults_old[] over to mmu_psize_defs[]. However, the "tlbiel" isn't enabled in mmu_psize_defaults_old[].

---
 arch/powerpc/mm/hash_utils_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/mm/hash_utils_64.c +1 -1
index 2d4a20c..8675ae5 100644
@@ -130,7 +130,7 @@ static struct mmu_psize_def mmu_psize_defaults_old[] = {
 		.sllp	= 0,
 		.penc	= 0,
 		.avpnm	= 0,
-		.tlbiel = 0,
+		.tlbiel = 1,
 	},
 };
 
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 5 lines · Gavin Shan

The firmware should have supplied correct information for the kernel to figure out the page size array, which is traced by mmu_psize_defs[]. Otherwise, the kernel will fail back to use solely 4KB page size and copy mmu_psize_defaults_old[] over to mmu_psize_defs[]. However, the "tlbiel" isn't enabled in mmu_psize_defaults_old[].

Did you actually find a problem here ? There is a reason we don't enable tlbiel in there ... those old CPUs do not support it.

Ben.

Quoted 18 lines
---
 arch/powerpc/mm/hash_utils_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/mm/hash_utils_64.c +1 -1
index 2d4a20c..8675ae5 100644
@@ -130,7 +130,7 @@ static struct mmu_psize_def mmu_psize_defaults_old[] = {
 		.sllp	= 0,
 		.penc	= 0,
 		.avpnm	= 0,
-		.tlbiel = 0,
+		.tlbiel = 1,
 	},
 };