sparc/leon: Make mmu_inval_dma_area flush dcache for LEONs without snooping enabled.
PATCH v3 4/6 sparc/leon: Make mmu_inval_dma_area flush dcache for LEONs without snooping enabled.
Signed-off-by Kristoffer Glembo <[email protected]>
--- arch/sparc/kernel/ioport.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
arch/sparc/kernel/ioport.c +7 -3
@@ -50,10 +50,14 @@#include <asm/io-unit.h> #include <asm/leon.h> -#ifdef CONFIG_SPARC_LEON -#define mmu_inval_dma_area (p, l) leon_flush_dcache_all() -#else +#ifndef CONFIG_SPARC_LEON #define mmu_inval_dma_area (p, l)/* Anton pulled it out for 2.4.0-xx */ +#else +static inline void mmu_inval_dma_area (unsigned long va,unsigned long len) +{ +if (!sparc_leon3_snooping_enabled ()) +leon_flush_dcache_all (); +}#endif static struct resource *_sparc_find_resource(struct resource *r,
Signature · 1 line
1.6.4.1
Re: [PATCH 4/6 V3] sparc/leon: Make mmu_inval_dma_area flush
Quoted 1 line · Kristoffer Glembo
Signed-off-by Kristoffer Glembo <[email protected]>
Looks OK to me.
But I do not know enough about the background to add
my "Acked-by:" as this imply some knowledge about the code touched.
Sam
Re: [PATCH 4/6 V3] sparc/leon: Make mmu_inval_dma_area flush
In reply to Kristoffer GlemboFrom: Sam Ravnborg <[email protected]>
Date: Tue, 18 Jan 2011 20:40:53 +0100
Quoted 6 lines · Kristoffer Glembo
Quoted 1 line
Signed-off-by Kristoffer Glembo <[email protected]>Looks OK to me.
But I do not know enough about the background to add
my "Acked-by:" as this imply some knowledge about the code touched.
Applied.