Home
last modified time | relevance | path

Searched hist:f263f2a2c682fddc7521a1d1efc01d58e1d70d84 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/mips/mm/
H A Ddma-noncoherent.cdiff f263f2a2c682fddc7521a1d1efc01d58e1d70d84 Sun Dec 09 09:49:57 CST 2018 Hauke Mehrtens <hauke@hauke-m.de> MIPS: Compile post DMA flush only when needed

dma_sync_phys() is only called for some CPUs when a mapping is removed.
Add ARCH_HAS_SYNC_DMA_FOR_CPU only for the CPUs listed in
cpu_needs_post_dma_flush() which need this extra call and do not compile
this code in for other CPUs. We need this for R10000, R12000, BMIPS5000
CPUs and CPUs supporting MAAR which was introduced in MIPS32r5.

This will hopefully improve the performance of the not affected devices.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-mips@vger.kernel.org
Cc: nbd@nbd.name
/openbmc/linux/arch/mips/
H A DKconfigdiff f263f2a2c682fddc7521a1d1efc01d58e1d70d84 Sun Dec 09 09:49:57 CST 2018 Hauke Mehrtens <hauke@hauke-m.de> MIPS: Compile post DMA flush only when needed

dma_sync_phys() is only called for some CPUs when a mapping is removed.
Add ARCH_HAS_SYNC_DMA_FOR_CPU only for the CPUs listed in
cpu_needs_post_dma_flush() which need this extra call and do not compile
this code in for other CPUs. We need this for R10000, R12000, BMIPS5000
CPUs and CPUs supporting MAAR which was introduced in MIPS32r5.

This will hopefully improve the performance of the not affected devices.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-mips@vger.kernel.org
Cc: nbd@nbd.name