| To: | Kevin Cernekee <cernekee@gmail.com> |
|---|---|
| Subject: | Re: [PATCH 3/3] MIPS: DMA: Add plat_extra_sync_for_cpu() |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Thu, 09 Sep 2010 10:10:00 -0700 |
| Cc: | Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org |
| In-reply-to: | <99a0868bdbcfa8785a92b4af4f6d9b99@localhost> |
| References: | <064bb0722da5d8c271c2bd9fe0a521cc@localhost> <99a0868bdbcfa8785a92b4af4f6d9b99@localhost> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100720 Fedora/3.0.6-1.fc12 Thunderbird/3.0.6 |
On 09/08/2010 04:02 PM, Kevin Cernekee wrote: On noncoherent processors with a readahead cache, an extra platform- specific invalidation is required during the dma_sync_*_for_cpu() operations to keep drivers from seeing stale prefetched data. Signed-off-by: Kevin Cernekee<cernekee@gmail.com> --- .../include/asm/mach-cavium-octeon/dma-coherence.h | 13 +++++++++++++ arch/mips/include/asm/mach-generic/dma-coherence.h | 13 +++++++++++++ arch/mips/include/asm/mach-ip27/dma-coherence.h | 13 +++++++++++++ arch/mips/include/asm/mach-ip32/dma-coherence.h | 13 +++++++++++++ arch/mips/include/asm/mach-jazz/dma-coherence.h | 13 +++++++++++++ .../mips/include/asm/mach-loongson/dma-coherence.h | 13 +++++++++++++ arch/mips/include/asm/mach-powertv/dma-coherence.h | 13 +++++++++++++ arch/mips/mm/dma-default.c | 3 +++ 8 files changed, 94 insertions(+), 0 deletions(-) [...] But as far as I can see, none of your plat_extra_sync_for_cpu() do anything. Perhaps adding this hook should be deferred until there is actually a user. David Daney |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v2 5/5] MIPS: Move FIXADDR_TOP into spaces.h, Atsushi Nemoto |
|---|---|
| Next by Date: | Re: [PATCH] mips: fix start of free memory when using initrd, David Daney |
| Previous by Thread: | Re: [PATCH 3/3] MIPS: DMA: Add plat_extra_sync_for_cpu(), Kevin Cernekee |
| Next by Thread: | Re: [PATCH 3/3] MIPS: DMA: Add plat_extra_sync_for_cpu(), Thomas Bogendoerfer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |