MIPS: Don't probe reserved EntryHi bits.
PATCH 1/1 MIPS: Don't probe reserved EntryHi bits.
The patch that adds cpu_probe_vmbits is erroneously writing to reserved bit 12. Since we are really only probing high bits, don't write this bit with a one.
Signed-off-by David Daney <[email protected]>
CC Guenter Roeck <[email protected]>
--- arch/mips/kernel/cpu-probe.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/kernel/cpu-probe.c +2 -2
@@ -287,9 +287,9 @@ static inline int __cpu_has_fpu(void)static inline void cpu_probe_vmbits (struct cpuinfo_mips *c) {#ifdef __NEED_VMBITS_PROBE -write_c0_entryhi (0x3ffffffffffff000ULL ); +write_c0_entryhi (0x3fffffffffffe000ULL );back_to_back_c0_hazard (); - c->vmbits =fls64 (read_c0_entryhi () &0x3ffffffffffff000ULL ); + c->vmbits =fls64 (read_c0_entryhi () &0x3fffffffffffe000ULL );#endif }
Signature · 1 line
1.6.0.6
Quoted 6 lines · David Daney
The patch that adds
cpu_probe_vmbitsis erroneously writing to reserved bit 12. Since we are really only probing high bits, don't write this bit with a one.Signed-off-by David Daney <[email protected]>CC Guenter Roeck <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
Quoted 20 lines
--- arch/mips/kernel/cpu-probe.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/mips/kernel/cpu-probe.c +2
-2@@ -287,9 +287,9 @@ static inline int __cpu_has_fpu(void)static inline void cpu_probe_vmbits (struct cpuinfo_mips *c) {#ifdef __NEED_VMBITS_PROBE -write_c0_entryhi (0x3ffffffffffff000ULL ); +write_c0_entryhi (0x3fffffffffffe000ULL );back_to_back_c0_hazard (); - c->vmbits =fls64 (read_c0_entryhi () &0x3ffffffffffff000ULL ); + c->vmbits =fls64 (read_c0_entryhi () &0x3fffffffffffe000ULL );#endif }
Ralf Baechle
Acked-by you meant. Patch applied.Quoted 9 lines · Guenter Roeck
Quoted 6 lines · David Daney
The patch that adds
cpu_probe_vmbitsis erroneously writing to reserved bit 12. Since we are really only probing high bits, don't write this bit with a one.Signed-off-by David Daney <[email protected]>CC Guenter Roeck <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Acked-by you meant. Patch applied.
Thanks folks,
Ralf