linux_dsm_epyc7002/arch/mips/include/asm
Paul Burton 3ffc17d876 MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0
On MIPS64 we define the default CAC_BASE as one of the xkphys regions of
the virtual address space. Since the CCA is encoded in bits 61:59 of
xkphys addresses, fixing CAC_BASE to any particular one prevents us from
dynamically changing the CCA as we do for MIPS32 where CAC_BASE is
placed within kseg0. In order to make the kernel more generic, drop the
current kludge that gives CAC_BASE CCA=3 if CONFIG_DMA_NONCOHERENT is
selected (disregarding CONFIG_DMA_MAYBE_COHERENT) & CCA=5 (which is not
standardised by the architecture) otherwise. Instead read Config.K0 and
generate the appropriate offset into xkphys, presuming that either the
bootloader or early kernel code will have configured Config.K0
appropriately. This seems like the best option for a generic
implementation.

The ip27 spaces.h is adjusted to set its former value of CAC_BASE, since
it's the only user of CAC_BASE from assembly (in its smp_slave_setup
macro). This allows the generic case to focus solely on C code without
breaking ip27.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14351/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-10-06 18:02:35 +02:00
..
dec
emma
fw
ip32
lasat
mach-ar7
mach-ath25
mach-ath79 irqchip/ath79-cpu: Move the CPU IRQ driver from arch/mips/ath79/ 2016-02-17 13:47:19 +00:00
mach-au1x00 MIPS: Spelling fix lets -> let's 2016-05-28 12:35:09 +02:00
mach-bcm47xx
mach-bcm63xx MIPS: BCM63xx: Fix typo 2016-05-28 12:35:06 +02:00
mach-bmips MIPS: BMIPS: Add BCM6358 support 2016-05-13 14:02:09 +02:00
mach-cavium-octeon MIPS: Octeon: mangle-port: fix build failure with VDSO code 2016-09-19 17:21:37 +02:00
mach-cobalt
mach-db1x00
mach-dec
mach-emma2rh
mach-generic MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0 2016-10-06 18:02:35 +02:00
mach-ip22
mach-ip27 MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0 2016-10-06 18:02:35 +02:00
mach-ip28
mach-ip32 MIPS: IP32: Fix typo 2016-05-28 12:35:07 +02:00
mach-jazz
mach-jz4740 MTD updates for v4.7: 2016-05-24 11:00:20 -07:00
mach-lantiq MIPS: Spelling fix lets -> let's 2016-05-28 12:35:09 +02:00
mach-lasat
mach-loongson32 MIPS: Add RTC support for Loongson1C board 2016-10-04 16:13:57 +02:00
mach-loongson64 MIPS: Loongson64: Fix typo 2016-05-28 12:35:07 +02:00
mach-malta MIPS: Add definitions of SegCtl registers and use them 2016-05-28 12:35:04 +02:00
mach-netlogic
mach-paravirt MIPS: paravirt: Fix undefined reference to smp_bootstrap 2016-09-13 16:45:15 +02:00
mach-pic32 MIPS: Add support for PIC32MZDA platform 2016-01-24 02:53:28 +01:00
mach-pistachio
mach-pmcs-msp71xx
mach-pnx833x
mach-ralink mips: mt7620: fallback to SDRAM when syscfg0 does not have a valid value for the memory type 2016-05-13 15:39:43 +02:00
mach-rc32434
mach-rm
mach-sead3 MIPS: SEAD3: Probe interrupt controllers using DT 2016-10-05 01:31:20 +02:00
mach-sibyte
mach-tx39xx
mach-tx49xx
mach-vr41xx
mach-xilfpga
mips-boards MIPS: SEAD3: Probe EHCI controller using DT 2016-10-05 01:31:20 +02:00
netlogic
octeon MIPS: Octeon: Delete unused cvmx-mdio.h 2016-10-04 16:13:57 +02:00
pci MIPS: Fix misspellings in comments. 2016-04-03 12:32:09 +02:00
sgi MIPS: IP22/IP28: Fix typo 2016-05-28 12:35:08 +02:00
sibyte MIPS: BCM1480: bcm1480_regs.h: strip redundant comments 2016-05-13 14:02:13 +02:00
sn MIPS: Fix misspellings in comments. 2016-04-03 12:32:09 +02:00
txx9
vr41xx
xtalk
abi.h
addrspace.h MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0 2016-10-06 18:02:35 +02:00
amon.h
arch_hweight.h
asm-eva.h
asm-offsets.h
asm.h
asmmacro-32.h
asmmacro-64.h
asmmacro.h MIPS: Add a missing ".set pop" in an early commit 2016-09-13 17:25:11 +02:00
atomic.h locking/atomic, arch/mips: Convert to _relaxed atomics 2016-06-16 10:48:34 +02:00
barrier.h MIPS: Barrier: Add definitions of SYNC stype values 2016-10-04 16:13:57 +02:00
bcache.h
bitops.h MIPS: Move definitions for 32/64-bit agonstic inline assembler to new file. 2016-05-09 12:00:05 +02:00
bitrev.h MIPS: Implement __arch_bitrev* using bitswap for MIPSr6 2016-05-13 14:02:17 +02:00
bmips-spaces.h
bmips.h MIPS: BMIPS: Add early CPU initialization code 2016-05-13 14:01:55 +02:00
bootinfo.h MIPS: store the appended dtb address in a variable 2016-08-02 14:00:16 +02:00
branch.h
break.h
bug.h
bugs.h
cache.h
cacheflush.h MIPS: c-r4k: Split user/kernel flush_icache_range() 2016-10-04 16:13:57 +02:00
cacheops.h MIPS: Loongson: Add Loongson-3A R2 basic support 2016-05-13 14:02:14 +02:00
cdmm.h
cevt-r4k.h
checksum.h ipv6: Pass proto to csum_ipv6_magic as __u8 instead of unsigned short 2016-03-13 23:55:13 -04:00
clock.h
clocksource.h
cmp.h
cmpxchg.h
compat-signal.h
compat.h MIPS: Clean up compat_siginfo_t 2015-11-12 11:35:47 +01:00
compiler.h
cop2.h
cpu-features.h lib/GCD.c: use binary GCD algorithm instead of Euclidean 2016-05-20 17:58:30 -07:00
cpu-info.h MIPS: Add probing & defs for VZ & guest features 2016-05-13 15:30:25 +02:00
cpu-type.h MIPS: Add CPU support for Loongson1C 2016-10-04 16:13:57 +02:00
cpu.h MIPS: Add CPU support for Loongson1C 2016-10-04 16:13:57 +02:00
debug.h
delay.h
device.h MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
div64.h
dma-coherence.h MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
dma-mapping.h MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
dma.h
ds1287.h
dsemul.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
dsp.h
edac.h
elf.h MIPS: non-exec stack & heap when non-exec PT_GNU_STACK is present 2016-08-02 09:29:27 +02:00
errno.h
eva.h
exec.h
fb.h
fixmap.h
floppy.h
fpregdef.h
fpu_emulator.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
fpu.h MIPS: Fix FPU disable with preemption 2016-02-01 23:36:38 +01:00
ftrace.h
futex.h
gio_device.h
gt64120.h
hardirq.h
hazards.h MIPS: hazards.h: Fix typo 2016-05-28 12:35:06 +02:00
highmem.h MIPS: highmem: Turn flush_cache_kmaps into a no-op. 2016-05-13 14:01:38 +02:00
hpet.h
hugetlb.h
hw_irq.h
i8259.h irqchip: i8259: Remove unused i8259A_irq_pending 2016-10-06 17:31:00 +02:00
ide.h
idle.h
inst.h
io.h MIPS: Loongson-3: Introduce CONFIG_LOONGSON3_ENHANCEMENT 2016-05-13 14:02:15 +02:00
irq_cpu.h
irq_gt641xx.h
irq_regs.h MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work. 2016-05-13 14:01:40 +02:00
irq.h
irqflags.h MIPS: Loongson-3: Introduce CONFIG_LOONGSON3_ENHANCEMENT 2016-05-13 14:02:15 +02:00
isadep.h
jazz.h
jazzdma.h
jump_label.h
Kbuild MIPS: Use generic clkdev.h header 2016-05-13 14:01:58 +02:00
kdebug.h
kexec.h
kgdb.h
kmap_types.h
kprobes.h
kvm_host.h MIPS: KVM: Fix pre-r6 ll/sc instructions on r6 2016-07-05 16:09:13 +02:00
kvm_para.h
linkage.h
llsc.h MIPS: Move definitions for 32/64-bit agonstic inline assembler to new file. 2016-05-09 12:00:05 +02:00
local.h
m48t37.h
maar.h
mc146818-time.h
mc146818rtc.h
mips_machine.h
mips_mt.h MIPS: MT: Fix typo 2016-05-28 12:35:07 +02:00
mips-cm.h MIPS: pm-cps: Support CM3 changes to Coherence Enable Register 2016-10-04 16:13:57 +02:00
mips-cpc.h MIPS: CPC: Add start, stop and running CM3 CPC registers 2016-05-13 14:01:48 +02:00
mips-r2-to-r6-emul.h MIPS: traps: Correct the SIGTRAP debug ABI in do_watch' and do_trap_or_bp' 2016-04-03 12:32:09 +02:00
mipsmtregs.h
mipsprom.h
mipsregs.h MIPS: Stop setting I6400 FTLBP 2016-09-29 18:59:49 +02:00
mmu_context.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
mmu.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
mmzone.h
module.h
msa.h MIPS: Fix MSA asm warnings in control reg accessors 2016-07-24 12:45:00 +02:00
msc01_ic.h
nile4.h
paccess.h
page.h treewide: replace config_enabled() with IS_ENABLED() (2nd round) 2016-08-26 17:39:35 -07:00
pci.h MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY 2016-10-06 18:00:05 +02:00
perf_event.h
pgalloc.h MIPS: Squash lines for simple wrapper functions 2016-10-04 16:13:57 +02:00
pgtable-32.h MIPS: mm: Fix MIPS32 36b physical addressing (alchemy, netlogic) 2016-05-13 15:30:25 +02:00
pgtable-64.h MIPS64: Support of at least 48 bits of SEGBITS 2016-05-13 14:02:16 +02:00
pgtable-bits.h MIPS: Allow RIXI to be used on non-R2 or R6 cores 2016-05-13 15:30:25 +02:00
pgtable.h tree-wide: replace config_enabled() with IS_ENABLED() 2016-08-04 08:50:07 -04:00
pm-cps.h MIPS: pm-cps: Add MIPSr6 CPU support 2016-10-04 16:13:57 +02:00
pm.h
pmon.h
prefetch.h
processor.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
prom.h
ptrace.h
r4k-timer.h
r4kcache.h MIPS: c-r4k: Fix protected_writeback_scache_line for EVA 2016-07-29 10:19:29 +02:00
reboot.h
reg.h
regdef.h
rtlx.h
seccomp.h tree-wide: replace config_enabled() with IS_ENABLED() 2016-08-04 08:50:07 -04:00
setup.h MIPS: KVM: Don't hardcode restored HWREna 2016-06-15 23:58:31 +02:00
sgialib.h
sgiarcs.h MIPS: Fix misspellings in comments. 2016-04-03 12:32:09 +02:00
shmparam.h
sigcontext.h
signal.h Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2016-08-06 09:13:11 -04:00
sim.h
smp-cps.h MIPS: smp-cps: Pull boot config retrieval out of mips_cps_boot_vpes 2016-05-13 14:01:50 +02:00
smp-ops.h MIPS: Make smp CMP, CPS and MT use the new generic IPI functions 2016-02-25 10:56:58 +01:00
smp.h MIPS: smp.c: Introduce mechanism for freeing and allocating IPIs 2016-10-05 01:31:20 +02:00
sni.h
socket.h
sparsemem.h
spinlock_types.h
spinlock.h locking/spinlock, arch: Update and fix spin_unlock_wait() implementations 2016-06-14 11:55:15 +02:00
spram.h
stackframe.h MIPS: Fix FPU disable with preemption 2016-02-01 23:36:38 +01:00
stackprotector.h
stacktrace.h
string.h
switch_to.h MIPS: Fix watchpoint restoration 2016-05-09 12:00:02 +02:00
syscall.h tree-wide: replace config_enabled() with IS_ENABLED() 2016-08-04 08:50:07 -04:00
termios.h
thread_info.h
time.h
timex.h
tlb.h
tlbdebug.h
tlbflush.h
tlbmisc.h
topology.h
traps.h
txx9irq.h
txx9pio.h
txx9tmr.h
types.h
uaccess.h mips: copy_from_user() must zero the destination on access_ok() failure 2016-09-13 17:49:41 -04:00
uasm.h MIPS: uasm: Add MTHI/MTLO instructions 2016-07-05 16:08:35 +02:00
unaligned.h
unistd.h
uprobes.h MIPS: uprobes: remove incorrect set_orig_insn 2016-09-29 18:59:49 +02:00
vdso.h
vga.h
vpe.h
war.h
watch.h MIPS: Fix watchpoint restoration 2016-05-09 12:00:02 +02:00
wbflush.h