1. 21 2月, 2010 1 次提交
    • R
      MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself · 4b3073e1
      Russell King 提交于
      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: NStephen Rothwell <sfr@canb.auug.org.au>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      4b3073e1
  2. 02 7月, 2008 1 次提交
    • H
      avr32: Clean up and optimize the TLB operations · b13d618b
      Haavard Skinnemoen 提交于
      This and the following patches aim to optimize the code dealing with
      page tables and TLB operations. Each patch reduces the time it takes
      to gzip a 16 MB file slightly, but I expect things like fork() and
      mmap() will improve somewhat more.
      
      This patch deals with the low-level TLB operations:
      
        * Remove unused _TLBEHI_I define
        * Use gcc builtins instead of inline assembly
        * Remove a few unnecessary pipeline flushes and nops
        * Introduce NR_TLB_ENTRIES define and use it instead of hardcoding it
          to 32 a few places throughout the code.
        * Use sysreg bitops instead of hardcoded shifts and masks
        * Make a few needlessly global functions static
      Signed-off-by: NHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      b13d618b
  3. 29 4月, 2008 1 次提交
  4. 25 1月, 2008 1 次提交
  5. 13 2月, 2007 1 次提交
  6. 27 9月, 2006 1 次提交
  7. 26 9月, 2006 1 次提交