diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-07-23 04:31:13 +0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-07-23 06:56:56 +0400 |
commit | 4b8692c022a4b149d0c2cc3f4f7a363453fde72a (patch) | |
tree | 11e71230effaa73f24d999ed7eeacb1125c8a047 /arch/powerpc/mm/hugetlbpage-hash64.c | |
parent | 171aa2caaad16ed32b655d33565e112a12cb3537 (diff) | |
download | linux-4b8692c022a4b149d0c2cc3f4f7a363453fde72a.tar.xz |
powerpc/mm: Add some debug output when hash insertion fails
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
Diffstat (limited to 'arch/powerpc/mm/hugetlbpage-hash64.c')
-rw-r--r-- | arch/powerpc/mm/hugetlbpage-hash64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/hugetlbpage-hash64.c b/arch/powerpc/mm/hugetlbpage-hash64.c index faae9ec4cb04..cc5c273086cf 100644 --- a/arch/powerpc/mm/hugetlbpage-hash64.c +++ b/arch/powerpc/mm/hugetlbpage-hash64.c @@ -127,6 +127,8 @@ repeat: */ if (unlikely(slot == -2)) { *ptep = __pte(old_pte); + hash_failure_debug(ea, access, vsid, trap, ssize, + mmu_psize, old_pte); return -1; } |