diff options
author | Scott Wood <scottwood@freescale.com> | 2014-05-20 08:04:55 +0400 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-06-21 03:48:29 +0400 |
commit | bbd08c72c6b3344a230e15264d6cd444ed76b958 (patch) | |
tree | 84da147d07a29dd2bad492ac996c9dd23cdde3f8 /arch/powerpc/include/asm/reg_booke.h | |
parent | 68986c9f0f4552c34c248501eb0c690553866d6e (diff) | |
download | linux-bbd08c72c6b3344a230e15264d6cd444ed76b958.tar.xz |
powerpc/e6500: hw tablewalk: clear TID in kernel indirect entries
Previously TID was being cleared before the tlbsx, but not after. This
can lead to a multiway hit between a TLB entry with TID=0 (previously
inserted when PID=0) and a TLB entry with TID!=0 that matches PID.
This can theoretically result in undefined behavior, though we probably
get lucky due to the details of the overlap. It also results in the
inability to use multihit detection to detect other conflicting TLB
entries, as well as poorer TLB utilization due to duplicating kernel
TLB entries.
Rather than try to patch up MAS1 after tlbsx, the entire value is
saved/restored as with MAS2.
I observed a slight improvement in TLB miss performance with this patch
applied.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Reported-by: Ed Swarthout <ed.swarthout@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/reg_booke.h')
0 files changed, 0 insertions, 0 deletions