[Top] [All Lists]

Re: mips ide disk dma problem

To: "Tommy S. Christensen" <>
Subject: Re: mips ide disk dma problem
From: Ralf Baechle <>
Date: Tue, 14 Aug 2001 11:03:50 +0200
Cc: Barry Wu <>,
In-reply-to: <>; from on Tue, Aug 14, 2001 at 10:12:49AM +0200
References: <> <> <> <>
User-agent: Mutt/1.2.5i
On Tue, Aug 14, 2001 at 10:12:49AM +0200, Tommy S. Christensen wrote:

> vtonocache(p) is defined as KSEG1ADDR(virt_to_phys(p)).
> This is for linux-2.2.12 from MIPS, remember.
> > Aside it's a crude hack anyway.  If you have problems with caches use
> > the API defined in Documentation/DMA-mapping.txt.
> I don't see why this is a hack. Sure, the Dynamic DMA
> interface is a lot cleaner, but it ends up with more or
> less the same.

Less.  It's a non-portable construct which for example will fail on any
machine that uses some sort of DMA address translation.  And would you
expect the maintainers to accept such a bunch of #ifdefs?


<Prev in Thread] Current Thread [Next in Thread>