linux_dsm_epyc7002/arch/xtensa/include/asm
Max Filippov e85e335f8f xtensa: add MMU v3 support
MMUv3 comes out of reset with identity vaddr -> paddr mapping in the TLB
way 6:

Way 6 (512 MB)
        Vaddr       Paddr       ASID  Attr RWX Cache
        ----------  ----------  ----  ---- --- -------
        0x00000000  0x00000000  0x01  0x03 RWX Bypass
        0x20000000  0x20000000  0x01  0x03 RWX Bypass
        0x40000000  0x40000000  0x01  0x03 RWX Bypass
        0x60000000  0x60000000  0x01  0x03 RWX Bypass
        0x80000000  0x80000000  0x01  0x03 RWX Bypass
        0xa0000000  0xa0000000  0x01  0x03 RWX Bypass
        0xc0000000  0xc0000000  0x01  0x03 RWX Bypass
        0xe0000000  0xe0000000  0x01  0x03 RWX Bypass

This patch adds remapping code at the reset vector or at the kernel
_start (depending on CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX) that
reconfigures MMUv3 as MMUv2:

Way 5 (128 MB)
        Vaddr       Paddr       ASID  Attr RWX Cache
        ----------  ----------  ----  ---- --- -------
        0xd0000000  0x00000000  0x01  0x07 RWX WB
        0xd8000000  0x00000000  0x01  0x03 RWX Bypass
Way 6 (256 MB)
        Vaddr       Paddr       ASID  Attr RWX Cache
        ----------  ----------  ----  ---- --- -------
        0xe0000000  0xf0000000  0x01  0x07 RWX WB
        0xf0000000  0xf0000000  0x01  0x03 RWX Bypass

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
2013-05-09 01:07:09 -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 tracing: make CALLER_ADDRx overwriteable 2009-03-02 16:49:37 -05: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: reorganize SR referencing 2012-10-15 21:48:08 -07:00
Kbuild tracing,x86: Add a TSC trace_clock 2012-11-13 15:48:27 -05:00
linkage.h
mmu_context.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
mmu.h xtensa: Use generic asm/mmu.h for nommu 2012-12-09 23:14:19 +01: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: avoid mmap cache aliasing 2013-02-23 19:12:53 -08: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
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: dispatch medium-priority interrupts 2013-02-23 19:12:52 -08: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: move spill_registers to traps.h 2013-02-23 19:22:48 -08:00
types.h UAPI: (Scripted) Disintegrate arch/xtensa/include/asm 2012-10-15 21:48:53 -07:00
uaccess.h xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
ucontext.h
unaligned.h xtensa: switch to packed struct unaligned access implementation 2008-11-11 06:14:10 -08:00
unistd.h burying unused conditionals 2013-02-14 09:21:15 -05:00
user.h
vectors.h xtensa: add MMU v3 support 2013-05-09 01:07:09 -07:00
vga.h