linux/arch/um/include/asm
Russell King 4b3073e1c5 MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself
On VIVT ARM, when we have multiple shared mappings of the same file
in the same MM, we need to ensure that we have coherency across all
copies.  We do this via make_coherent() by making the pages
uncacheable.

This used to work fine, until we allowed highmem with highpte - we
now have a page table which is mapped as required, and is not available
for modification via update_mmu_cache().

Ralf Beache suggested getting rid of the PTE value passed to
update_mmu_cache():

  On MIPS update_mmu_cache() calls __update_tlb() which walks pagetables
  to construct a pointer to the pte again.  Passing a pte_t * is much
  more elegant.  Maybe we might even replace the pte argument with the
  pte_t?

Ben Herrenschmidt would also like the pte pointer for PowerPC:

  Passing the ptep in there is exactly what I want.  I want that
  -instead- of the PTE value, because I have issue on some ppc cases,
  for I$/D$ coherency, where set_pte_at() may decide to mask out the
  _PAGE_EXEC.

So, pass in the mapped page table pointer into update_mmu_cache(), and
remove the PTE value, updating all implementations and call sites to
suit.

Includes a fix from Stephen Rothwell:

  sparc: fix fallout from update_mmu_cache API change

  Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2010-02-20 16:41:46 +00:00
..
a.out-core.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
apic.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
asm-offsets.h kbuild: move asm-offsets.h to include/generated 2009-12-12 13:08:14 +01:00
auxvec.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
bugs.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
cache.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
checksum.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
common.lds.S um: Clean up linker script using standard macros. 2009-09-24 17:16:22 -07:00
cputime.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
current.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
delay.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
desc.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
device.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
dma-mapping.h UML: Fix some apparent bitrot 2009-06-25 11:22:13 -07:00
dma.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
emergency-restart.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
fixmap.h x86, um: get rid of uml highmem.h 2008-10-22 22:55:21 -07:00
ftrace.h tracing: make CALLER_ADDRx overwriteable 2009-03-02 16:49:37 -05:00
futex.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
hardirq.h um: convert to asm-generic/hardirq.h 2009-09-22 07:17:45 -07:00
hw_irq.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
io.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
irq.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
irq_regs.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
irq_vectors.h uml: remove useless comments 2009-04-01 08:59:17 -07:00
irqflags.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
kdebug.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
kmap_types.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
mmu.h uml: remove useless comments 2009-04-01 08:59:17 -07:00
mmu_context.h cpumask: use mm_cpumask() wrapper: um 2009-09-24 09:34:51 +09:30
mutex.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
page.h asm-generic: rename page.h and uaccess.h 2009-06-11 21:02:17 +02:00
page_offset.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
param.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
pci.h PCI: remove pcibios_scan_all_fns() 2009-09-09 13:29:18 -07:00
pda.h uml: remove useless comments 2009-04-01 08:59:17 -07:00
pgalloc.h mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
pgtable-2level.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
pgtable-3level.h uml: remove useless comments 2009-04-01 08:59:17 -07:00
pgtable.h MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself 2010-02-20 16:41:46 +00:00
processor-generic.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
ptrace-generic.h x86, um: get rid of more uml asm/arch uses 2008-10-22 22:55:20 -07:00
required-features.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
sections.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
segment.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
setup.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
smp.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
system.h uml got broken by commit 30742d5c22 2009-01-05 17:41:45 -08:00
thread_info.h sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
timex.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
tlb.h mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
tlbflush.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
topology.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
uaccess.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
xor.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00