Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d66f99bc authored by Paul Burton's avatar Paul Burton Committed by Ralf Baechle
Browse files

MIPS: c-r4k: Treat physically indexed dcaches as not aliasing



Physically indexed caches cannot suffer from virtual aliasing, so clear
the MIPS_CACHE_ALIASES bit in order to ensure we don't do extra work
avoiding aliasing that cannot happen.

Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14017/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 819da1ea
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1497,6 +1497,10 @@ static void probe_pcache(void)
			c->dcache.flags |= MIPS_CACHE_ALIASES;
			c->dcache.flags |= MIPS_CACHE_ALIASES;
	}
	}


	/* Physically indexed caches don't suffer from virtual aliasing */
	if (c->dcache.flags & MIPS_CACHE_PINDEX)
		c->dcache.flags &= ~MIPS_CACHE_ALIASES;

	switch (current_cpu_type()) {
	switch (current_cpu_type()) {
	case CPU_20KC:
	case CPU_20KC:
		/*
		/*