| To: | tiansm@lemote.com |
|---|---|
| Subject: | Re: ALSA on MIPS platform |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Thu, 02 Aug 2007 23:56:06 +0900 (JST) |
| Cc: | alsa-devel@alsa-project.org, linux-mips@linux-mips.org |
| In-reply-to: | <46B03CC0.3090000@lemote.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <46B03CC0.3090000@lemote.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Wed, 01 Aug 2007 15:56:48 +0800, Songmao Tian <tiansm@lemote.com> wrote: > The problem is clear: > 1. dma_alloc_noncoherent() return a non-cached address, and > virt_to_page() need a cached logical addr (Have I named it right?) > 2. mmaped dam buffer should be non-cached. > > We have a ugly patch, but we want to solve the problem cleanly, so can > anyone show me the way? virt_to_page() is used in many place in mm so making it robust might affect performance. IMHO virt_to_page() seems too low-level as DMA API. If something like dma_virt_to_page(dev, cpu_addr) which can take a cpu address returned by dma_xxx APIs was defined, MIPS can implement it appropriately. And then pgprot_noncached issues still exist... --- Atsushi Nemoto |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 5/5] Update defconfigs for TX39/TX49, Ralf Baechle |
|---|---|
| Next by Date: | Re: Generic clk.h wrappers? [Was: Re: [PATCH 1/3] powerpc clk.h interface for platforms], David Brownell |
| Previous by Thread: | ALSA on MIPS platform, Songmao Tian |
| Next by Thread: | Re: ALSA on MIPS platform, Songmao Tian |
| Indexes: | [Date] [Thread] [Top] [All Lists] |