linux-uconsole/arch/xtensa/include/asm
Max Filippov af3a54ffc0 xtensa: fix TLBTEMP_BASE_2 region handling in fast_second_level_miss
commit 7128039fe2 upstream.

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.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-05 14:54:08 -07:00
..
asm-offsets.h kbuild: move asm-offsets.h to include/generated 2009-12-12 13:08:14 +01:00
asmmacro.h
atomic.h xtensa: dispatch medium-priority interrupts 2013-02-23 19:12:52 -08:00
barrier.h xtensa: fix mb and wmb definitions 2012-12-18 21:10:23 -08:00
bitops.h xtensa: add s32c1i-based bitops implementations 2012-12-18 21:10:22 -08:00
bootparam.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
bugs.h
cache.h dma-mapping: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN 2010-08-11 08:59:21 -07:00
cacheasm.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
cacheflush.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
checksum.h xtensa: add missing include asm/uaccess.h to checksum.h 2013-02-23 19:23:13 -08:00
cmpxchg.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
coprocessor.h xtensa: reorganize SR referencing 2012-10-15 21:48:08 -07:00
current.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
delay.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
dma-mapping.h xtensa: Provide dummy dma_mmap_coherent() and dma_get_sgtable() 2013-01-29 08:27:41 +01:00
dma.h Fix common misspellings 2011-03-31 11:26:23 -03:00
elf.h xtensa: add support for TLS 2013-02-23 19:35:57 -08:00
fb.h
flat.h xtensa: add flat support 2009-04-02 23:41:29 -07:00
ftrace.h xtensa: provide custom CALLER_ADDR* implementations 2013-05-09 01:07:10 -07:00
gpio.h gpiolib/arches: Centralise bolierplate asm/gpio.h 2012-05-11 18:00:14 -06:00
highmem.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
hw_irq.h
initialize_mmu.h xtensa: add MMU v3 support 2013-05-09 01:07:09 -07:00
io.h xtensa: use physical addresses for bus addresses 2012-10-25 14:53:36 -07:00
irq.h xtensa: allow variant to initialize own irq chips 2009-06-22 02:36:59 -07:00
irqflags.h xtensa: fix arch_irqs_disabled_flags implementation 2013-05-09 01:07:11 -07:00
Kbuild xtensa: Switch to asm-generic/linkage.h 2013-05-09 01:07:12 -07:00
mmu.h xtensa: Use generic asm/mmu.h for nommu 2012-12-09 23:14:19 +01:00
mmu_context.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
module.h Make most arch asm/module.h files use asm-generic/module.h 2012-09-28 14:31:03 +09:30
mutex.h
nommu_context.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
page.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
param.h UAPI: (Scripted) Disintegrate arch/xtensa/include/asm 2012-10-15 21:48:53 -07:00
pci-bridge.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
pci.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
pgalloc.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
pgtable.h xtensa: fix TLBTEMP_BASE_2 region handling in fast_second_level_miss 2014-10-05 14:54:08 -07:00
platform.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
processor.h xtensa: dispatch medium-priority interrupts 2013-02-23 19:12:52 -08:00
prom.h xtensa: add device trees support 2012-12-18 21:10:23 -08:00
ptrace.h xtensa: add support for TLS 2013-02-23 19:35:57 -08:00
regs.h xtensa: dispatch medium-priority interrupts 2013-02-23 19:12:52 -08:00
rwsem.h rwsem: Move duplicate function prototypes to linux/rwsem.h 2011-01-27 12:30:39 +01:00
segment.h
serial.h
shmparam.h
signal.h consolidate kernel-side struct sigaction declarations 2013-02-03 15:09:22 -05:00
smp.h
spinlock.h xtensa: add s32c1i-based spinlock implementations 2012-12-18 21:10:22 -08:00
stacktrace.h xtensa: add stacktrace support 2013-05-09 01:07:10 -07:00
string.h xtensa: fix str[n]cmp return value 2013-02-23 19:22:31 -08:00
switch_to.h Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
syscall.h xtensa: switch to generic sigaltstack 2013-02-03 18:16:27 -05:00
thread_info.h bury the rest of TIF_IRET 2012-10-01 09:58:13 -04:00
timex.h xtensa: don't attempt to use unconfigured timers 2013-05-09 01:07:10 -07:00
tlb.h mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
tlbflush.h xtensa: reorganize SR referencing 2012-10-15 21:48:08 -07:00
traps.h xtensa: introduce spill_registers_kernel macro 2014-03-06 21:30:11 -08:00
types.h UAPI: (Scripted) Disintegrate arch/xtensa/include/asm 2012-10-15 21:48:53 -07:00
uaccess.h xtensa: fix access to THREAD_RA/THREAD_SP/THREAD_DS 2014-10-05 14:54:08 -07:00
ucontext.h
unaligned.h
unistd.h consolidate cond_syscall and SYSCALL_ALIAS declarations 2013-03-03 22:55:19 -05:00
user.h
vectors.h xtensa: add MMU v3 support 2013-05-09 01:07:09 -07:00
vga.h