original_kernel/arch/mips/mm
Paul Burton 20d330645c MIPS: Support per-device DMA coherence
On some MIPS systems, a subset of devices may have DMA coherent with CPU
caches. For example in systems including a MIPS I/O Coherence Unit
(IOCU), some devices may be connected to that IOCU whilst others are
not.

Prior to this patch, we have a plat_device_is_coherent() function but no
implementation which does anything besides return a global true or
false, optionally chosen at runtime. For devices such as those described
above this is insufficient.

Fix this by tracking DMA coherence on a per-device basis with a
dma_coherent field in struct dev_archdata. Setting this from
arch_setup_dma_ops() takes care of devices which set the dma-coherent
property via device tree, and any PCI devices beneath a bridge described
in DT, automatically.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14349/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-10-06 18:02:01 +02:00
..
Makefile
c-octeon.c MIPS: c-r4k: Split user/kernel flush_icache_range() 2016-10-04 16:13:57 +02:00
c-r3k.c MIPS: c-r4k: Split user/kernel flush_icache_range() 2016-10-04 16:13:57 +02:00
c-r4k.c MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
c-tx39.c MIPS: c-r4k: Split user/kernel flush_icache_range() 2016-10-04 16:13:57 +02:00
cache.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
cerr-sb1.c
cex-gen.S
cex-oct.S
cex-sb1.S
dma-default.c MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
extable.c
fault.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
gup.c
highmem.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
hugetlbpage.c
init.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
ioremap.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
mmap.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
page-funcs.S
page.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
pgtable-32.c
pgtable-64.c
sc-debugfs.c
sc-ip22.c
sc-mips.c
sc-r5k.c
sc-rm7k.c
tlb-funcs.S
tlb-r3k.c
tlb-r4k.c MIPS: mm: Audit and remove any unnecessary uses of module.h 2016-10-05 01:31:20 +02:00
tlb-r8k.c
tlbex-fault.S
tlbex.c
uasm-micromips.c
uasm-mips.c
uasm.c