Commit 97db7f7d authored by Geoff Levand's avatar Geoff Levand Committed by Benjamin Herrenschmidt

powerpc/ps3: Increase verbosity of htab errors

Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 4a564c4d
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <asm/lv1call.h> #include <asm/lv1call.h>
#include <asm/ps3fb.h> #include <asm/ps3fb.h>
#define PS3_VERBOSE_RESULT
#include "platform.h" #include "platform.h"
/** /**
...@@ -75,8 +76,9 @@ static long ps3_hpte_insert(unsigned long hpte_group, unsigned long vpn, ...@@ -75,8 +76,9 @@ static long ps3_hpte_insert(unsigned long hpte_group, unsigned long vpn,
if (result) { if (result) {
/* all entries bolted !*/ /* all entries bolted !*/
pr_info("%s:result=%d vpn=%lx pa=%lx ix=%lx v=%llx r=%llx\n", pr_info("%s:result=%s vpn=%lx pa=%lx ix=%lx v=%llx r=%llx\n",
__func__, result, vpn, pa, hpte_group, hpte_v, hpte_r); __func__, ps3_result(result), vpn, pa, hpte_group,
hpte_v, hpte_r);
BUG(); BUG();
} }
...@@ -125,8 +127,8 @@ static long ps3_hpte_updatepp(unsigned long slot, unsigned long newpp, ...@@ -125,8 +127,8 @@ static long ps3_hpte_updatepp(unsigned long slot, unsigned long newpp,
&hpte_rs); &hpte_rs);
if (result) { if (result) {
pr_info("%s: res=%d read vpn=%lx slot=%lx psize=%d\n", pr_info("%s: result=%s read vpn=%lx slot=%lx psize=%d\n",
__func__, result, vpn, slot, psize); __func__, ps3_result(result), vpn, slot, psize);
BUG(); BUG();
} }
...@@ -170,8 +172,8 @@ static void ps3_hpte_invalidate(unsigned long slot, unsigned long vpn, ...@@ -170,8 +172,8 @@ static void ps3_hpte_invalidate(unsigned long slot, unsigned long vpn,
result = lv1_write_htab_entry(PS3_LPAR_VAS_ID_CURRENT, slot, 0, 0); result = lv1_write_htab_entry(PS3_LPAR_VAS_ID_CURRENT, slot, 0, 0);
if (result) { if (result) {
pr_info("%s: res=%d vpn=%lx slot=%lx psize=%d\n", pr_info("%s: result=%s vpn=%lx slot=%lx psize=%d\n",
__func__, result, vpn, slot, psize); __func__, ps3_result(result), vpn, slot, psize);
BUG(); BUG();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment