]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: cpu-probe: Set the FTLB probability bit on supported cores
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 10 Nov 2014 12:25:34 +0000 (12:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:13 +0000 (15:57 -0800)
commit35508d151a2998527374a240fd1fd3e6c7d84ae5
treecda34401218aafe98aabf3e75b5e6bca85f3e624
parent44fef5a01e85c15dc2098ffcb57a8fb6aed01ddd
MIPS: cpu-probe: Set the FTLB probability bit on supported cores

commit cf0a8aa0226da5de88011e7f30eff22a894b2f49 upstream.

Make use of the Config6/FLTBP bit to set the probability of a TLBWR
instruction to hit the FTLB or the VTLB. A value of 0 (which may be
the default value on certain cores, such as proAptiv or P5600)
means that a TLBWR instruction will never hit the VTLB which
leads to performance limitations since it effectively decreases
the number of available TLB slots.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8368/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/cpu-probe.c