projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0eede
)
powerpc/mm/radix: Update PTCR on secondary CPUs
author
Aneesh Kumar K.V
<
[email protected]
>
Fri, 29 Apr 2016 13:26:12 +0000
(23:26 +1000)
committer
Michael Ellerman
<
[email protected]
>
Wed, 11 May 2016 11:53:48 +0000
(21:53 +1000)
Signed-off-by: Aneesh Kumar K.V <
[email protected]
>
Signed-off-by: Michael Ellerman <
[email protected]
>
arch/powerpc/mm/hash_utils_64.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/mm/hash_utils_64.c
b/arch/powerpc/mm/hash_utils_64.c
index e6b53cde676ea4f1b71a24c912e9323806255953..faaadeff7c1e7497b62119ac61e724b3f9c0f277 100644
(file)
--- a/
arch/powerpc/mm/hash_utils_64.c
+++ b/
arch/powerpc/mm/hash_utils_64.c
@@
-896,9
+896,13
@@
void __init hash__early_init_mmu(void)
void hash__early_init_mmu_secondary(void)
{
/* Initialize hash table for that CPU */
- if (!firmware_has_feature(FW_FEATURE_LPAR))
- mtspr(SPRN_SDR1, _SDR1);
-
+ if (!firmware_has_feature(FW_FEATURE_LPAR)) {
+ if (!cpu_has_feature(CPU_FTR_ARCH_300))
+ mtspr(SPRN_SDR1, _SDR1);
+ else
+ mtspr(SPRN_PTCR,
+ __pa(partition_tb) | (PATB_SIZE_SHIFT - 12));
+ }
/* Initialize SLB */
slb_initialize();
}