diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-07-22 20:31:13 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-07-22 22:56:56 -0400 |
commit | 4b8692c022a4b149d0c2cc3f4f7a363453fde72a (patch) | |
tree | 11e71230effaa73f24d999ed7eeacb1125c8a047 /arch/powerpc/mm/hugetlbpage-hash64.c | |
parent | 171aa2caaad16ed32b655d33565e112a12cb3537 (diff) |
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: | |||
127 | */ | 127 | */ |
128 | if (unlikely(slot == -2)) { | 128 | if (unlikely(slot == -2)) { |
129 | *ptep = __pte(old_pte); | 129 | *ptep = __pte(old_pte); |
130 | hash_failure_debug(ea, access, vsid, trap, ssize, | ||
131 | mmu_psize, old_pte); | ||
130 | return -1; | 132 | return -1; |
131 | } | 133 | } |
132 | 134 | ||