aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-02-13 12:03:16 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-02-15 00:54:42 -0500
commit97db7f7d056ceb017b1bec2657c58f64e7b160ba (patch)
treee6b67ff924e529b01f66973e7ba81e032baa035f /arch/powerpc
parent4a564c4d1fc7f077c6135afe5c2890a262d71264 (diff)
powerpc/ps3: Increase verbosity of htab errors
Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/ps3/htab.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/ps3/htab.c b/arch/powerpc/platforms/ps3/htab.c
index d00d7b0a3bda..6cc58201db8c 100644
--- a/arch/powerpc/platforms/ps3/htab.c
+++ b/arch/powerpc/platforms/ps3/htab.c
@@ -27,6 +27,7 @@
27#include <asm/lv1call.h> 27#include <asm/lv1call.h>
28#include <asm/ps3fb.h> 28#include <asm/ps3fb.h>
29 29
30#define PS3_VERBOSE_RESULT
30#include "platform.h" 31#include "platform.h"
31 32
32/** 33/**
@@ -75,8 +76,9 @@ static long ps3_hpte_insert(unsigned long hpte_group, unsigned long vpn,
75 76
76 if (result) { 77 if (result) {
77 /* all entries bolted !*/ 78 /* all entries bolted !*/
78 pr_info("%s:result=%d vpn=%lx pa=%lx ix=%lx v=%llx r=%llx\n", 79 pr_info("%s:result=%s vpn=%lx pa=%lx ix=%lx v=%llx r=%llx\n",
79 __func__, result, vpn, pa, hpte_group, hpte_v, hpte_r); 80 __func__, ps3_result(result), vpn, pa, hpte_group,
81 hpte_v, hpte_r);
80 BUG(); 82 BUG();
81 } 83 }
82 84
@@ -125,8 +127,8 @@ static long ps3_hpte_updatepp(unsigned long slot, unsigned long newpp,
125 &hpte_rs); 127 &hpte_rs);
126 128
127 if (result) { 129 if (result) {
128 pr_info("%s: res=%d read vpn=%lx slot=%lx psize=%d\n", 130 pr_info("%s: result=%s read vpn=%lx slot=%lx psize=%d\n",
129 __func__, result, vpn, slot, psize); 131 __func__, ps3_result(result), vpn, slot, psize);
130 BUG(); 132 BUG();
131 } 133 }
132 134
@@ -170,8 +172,8 @@ static void ps3_hpte_invalidate(unsigned long slot, unsigned long vpn,
170 result = lv1_write_htab_entry(PS3_LPAR_VAS_ID_CURRENT, slot, 0, 0); 172 result = lv1_write_htab_entry(PS3_LPAR_VAS_ID_CURRENT, slot, 0, 0);
171 173
172 if (result) { 174 if (result) {
173 pr_info("%s: res=%d vpn=%lx slot=%lx psize=%d\n", 175 pr_info("%s: result=%s vpn=%lx slot=%lx psize=%d\n",
174 __func__, result, vpn, slot, psize); 176 __func__, ps3_result(result), vpn, slot, psize);
175 BUG(); 177 BUG();
176 } 178 }
177 179