On Fri, Jan 11, 2013 at 3:55 PM, Steven J. Hill <sjhill@xxxxxxxx> wrote: > From: "Steven J. Hill" <sjhill@xxxxxxxx> > > Some MIPS controllers have hardware I/O coherency. This patch > detects those and turns off software coherency. A new kernel > command line option also allows the user to manually turn > software coherency on or off. > > Signed-off-by: Steven J. Hill <sjhill@xxxxxxxx> > --- > arch/mips/include/asm/mach-generic/dma-coherence.h | 5 +- > arch/mips/mm/c-r4k.c | 34 +++++++--- > arch/mips/mm/dma-default.c | 6 +- > arch/mips/mti-malta/malta-setup.c | 71 ++++++++++++++++++++ > 4 files changed, 105 insertions(+), 11 deletions(-) Tested successfully on my RM7035C-based system that has CONFIG_DMA_NONCOHERENT set. My system works fine with this patch applied. Tested-by: Shane McDonald <mcdonald.shane@xxxxxxxxx>