Re: kmap_atomic_pfn for PCI BAR access?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Monday, July 7, 2008 - 4:19 am

On Monday 07 July 2008 17:05, Arjan van de Ven wrote:


Yeah, my vmap rewrite has a vm_unmap_aliases() call, which the
page attribute code calls.

But these flushes are not really any different between the atomic
kmap area and my vmap lazy flushing: the atomic kmap code still
has to do a broadcast global TLB flush.

The fact is simply that changing cache attributes is always going
to be an expensive operation and lazy mappings are not going to
really change that -- because changing attributes is going to
require a TLB flush on all CPUs _anyway_, which is the expensive
thing. All we really have to do with lazy mappings is tear down
their page tables before CPA's TLB flush -- if there were no lazy
unmappings in that time, then there will be no extra work to do.

... or, it occurs to me that you might have been referring to
something else: the problem of simply changing the cache attributes
on the pages that you wish to ioremap now. That's going to be slow
sure, but these guys don't seem to need such an attribute change
anyway because they are using kmap_atomic_pfn (which doesn't change
attributes)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kmap_atomic_pfn for PCI BAR access?, Keith Packard, (Mon Jun 23, 10:34 am)
Re: kmap_atomic_pfn for PCI BAR access?, Jeremy Fitzhardinge, (Wed Jun 25, 6:18 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Dave Airlie, (Wed Jun 25, 6:23 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Jeremy Fitzhardinge, (Wed Jun 25, 8:11 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Arjan van de Ven, (Wed Jun 25, 9:36 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Dave Airlie, (Wed Jun 25, 10:02 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Keith Packard, (Wed Jun 25, 10:33 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Keith Packard, (Wed Jun 25, 10:36 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Jeremy Fitzhardinge, (Wed Jun 25, 10:59 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Dave Airlie, (Wed Jun 25, 11:02 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Arjan van de Ven, (Thu Jun 26, 3:34 am)
Re: kmap_atomic_pfn for PCI BAR access?, Arjan van de Ven, (Thu Jun 26, 3:36 am)
Re: kmap_atomic_pfn for PCI BAR access?, Arjan van de Ven, (Thu Jun 26, 6:02 am)
Re: kmap_atomic_pfn for PCI BAR access?, Nick Piggin, (Sun Jul 6, 11:53 pm)
Re: kmap_atomic_pfn for PCI BAR access?, Arjan van de Ven, (Mon Jul 7, 12:05 am)
Re: kmap_atomic_pfn for PCI BAR access?, Nick Piggin, (Mon Jul 7, 4:19 am)