1. 23 Jul, 2010 2 commits
    • Benjamin Herrenschmidt's avatar
      powerpc/mm: Add some debug output when hash insertion fails · 4b8692c0
      Benjamin Herrenschmidt authored
      This adds some debug output to our MMU hash code to print out some
      useful debug data if the hypervisor refuses the insertion (which
      should normally never happen).
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ---
      4b8692c0
    • Benjamin Herrenschmidt's avatar
      powerpc/mm: Fix bugs in huge page hashing · 171aa2ca
      Benjamin Herrenschmidt authored
      There's a couple of nasty bugs lurking in our huge page hashing code.
      
      First, we don't check the access permission atomically with setting
      the _PAGE_BUSY bit, which means that the PTE value we end up using
      for the hashing might be different than the one we have checked
      the access permissions for.
      
      We've seen cases where that leads us to try to use an invalidated
      PTE for hashing, causing all sort of "interesting" issues.
      
      Then, we also failed to set _PAGE_DIRTY on a write access.
      
      Finally, a minor tweak but we should return 0 when we find the
      PTE busy, in order to just re-execute the access, rather than 1
      which means going to do_page_fault().
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ---
      171aa2ca
  2. 22 Jul, 2010 20 commits
  3. 21 Jul, 2010 14 commits
  4. 20 Jul, 2010 4 commits