linux-stable/arch/xtensa
Max Filippov 7128039fe2 xtensa: fix TLBTEMP_BASE_2 region handling in fast_second_level_miss
Current definition of TLBTEMP_BASE_2 is always 32K above the
TLBTEMP_BASE_1, whereas fast_second_level_miss handler for the TLBTEMP
region analyzes virtual address bit (PAGE_SHIFT + DCACHE_ALIAS_ORDER)
to determine TLBTEMP region where the fault happened. The size of the
TLBTEMP region is also checked incorrectly: not 64K, but twice data
cache way size (whicht may as well be less than the instruction cache
way size).

Fix TLBTEMP_BASE_2 to be TLBTEMP_BASE_1 + data cache way size.
Provide TLBTEMP_SIZE that is a greater of doubled data cache way size or
the instruction cache way size, and use it to determine if the second
level TLB miss occured in the TLBTEMP region.

Practical occurence of page faults in the TLBTEMP area is extremely
rare, this code can be tested by deletion of all w[di]tlb instructions
in the tlbtemp_mapping region.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2014-08-14 11:59:19 +04:00
..
boot xtensa: add support for KC705 2014-04-06 21:32:02 +04:00
configs xtensa: remove orphan MATH_EMULATION symbol 2014-08-14 11:59:12 +04:00
include xtensa: fix TLBTEMP_BASE_2 region handling in fast_second_level_miss 2014-08-14 11:59:19 +04:00
kernel xtensa: fix TLBTEMP_BASE_2 region handling in fast_second_level_miss 2014-08-14 11:59:19 +04:00
lib xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
mm xtensa: allow fixmap and kmap span more than one page table 2014-08-14 11:59:18 +04:00
oprofile xtensa: fix oprofile building as module 2013-05-09 01:07:09 -07:00
platforms xtensa: ISS: don't depend on CONFIG_TTY 2014-05-05 09:04:10 -07:00
variants xtensa: fsf: drop nonexistent GPIO32 support 2014-02-21 21:33:40 +04:00
Kconfig xtensa: remove orphan MATH_EMULATION symbol 2014-08-14 11:59:12 +04:00
Kconfig.debug xtensa: check TLB sanity on return to userspace 2013-07-08 01:18:56 -07:00
Makefile xtensa: simplify addition of new core variants 2014-08-14 11:59:08 +04:00