Re: kmap_atomic_pfn for PCI BAR access?

From: Arjan van de Ven
Date: Thu Jun 26 2008 - 06:36:38 EST


On Thu, 26 Jun 2008 07:02:15 +0100 (IST)
Dave Airlie <airlied@xxxxxxxx> wrote:

> > >
> >
> > Anything that does any kind of pagetable manipulation needs to do
> > tlb flushes. kunmap_atomic handles the flushing.
>
> It doesn't however need to do an IPI dance which is the worst part of
> doing a tlb flush on SMP machines.
>
> flushing local CPU tlbs is bad, but doing IPIs and waiting for
> everyone else is brutal.

but you only do IPI's for the multithreaded case to cpus where you're
running; otoh I guess games are multithreaded nowadays

>
> Dave.


--
If you want to reach me at my work email, use arjan@xxxxxxxxxxxxxxx
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/