linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] MIPS: Add MIPS_CPU_FTLB for Loongson-3A R2
@ 2016-11-04  8:41 Huacai Chen
  2016-11-04  8:41 ` [PATCH 2/3] MIPS: Flush wrong invalid FTLB entry for huge page Huacai Chen
  2016-11-04  8:41 ` [PATCH 3/3] MIPS: Ensure pmd_present() returns false after pmd_mknotpresent() Huacai Chen
  0 siblings, 2 replies; 3+ messages in thread
From: Huacai Chen @ 2016-11-04  8:41 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: Steven J . Hill, linux-mips, Fuxin Zhang, Zhangjin Wu,
	Huacai Chen, stable

Loongson-3A R2 and newer CPU have FTLB, but Config0.MT is 1, so add
MIPS_CPU_FTLB to the CPU options.

Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
 arch/mips/kernel/cpu-probe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index dd31754..921211b 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -1824,7 +1824,7 @@ static inline void cpu_probe_loongson(struct cpuinfo_mips *c, unsigned int cpu)
 		}
 
 		decode_configs(c);
-		c->options |= MIPS_CPU_TLBINV | MIPS_CPU_LDPTE;
+		c->options |= MIPS_CPU_FTLB | MIPS_CPU_TLBINV | MIPS_CPU_LDPTE;
 		c->writecombine = _CACHE_UNCACHED_ACCELERATED;
 		break;
 	default:
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-04  8:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-04  8:41 [PATCH 1/3] MIPS: Add MIPS_CPU_FTLB for Loongson-3A R2 Huacai Chen
2016-11-04  8:41 ` [PATCH 2/3] MIPS: Flush wrong invalid FTLB entry for huge page Huacai Chen
2016-11-04  8:41 ` [PATCH 3/3] MIPS: Ensure pmd_present() returns false after pmd_mknotpresent() Huacai Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).