Re: [PATCH v3 2/2] MIPS: HIGHMEM DMA on noncoherent MIPS32 processors

From: Nicolas Pitre
Date: Wed Oct 13 2010 - 16:32:37 EST


On Wed, 13 Oct 2010, Kevin Cernekee wrote:

> On Wed, Oct 13, 2010 at 12:53 AM, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote:
> > It's this disabling of interrupts which I don't like. ÂIt's easy to get
> > around it by having one kmap type for each of process, softirq and
> > interrupt context.
>
> I am curious as to why ARM opted for the "pte push/pop" strategy
> (kmap_high_l1_vipt()) instead of something along these lines?
>
> Is there a reason why using 3 kmap types to solve the "interrupted
> flush problem" would work for MIPS, but is not a good solution on ARM?

It would probably be a good solution for ARM as well.


Nicolas