From aa1f3190cdea6287b8c1f84644bea7e48d09d25a Mon Sep 17 00:00:00 2001 From: Ananth N Mavinakayanahalli Date: Thu, 31 Jul 2014 13:04:53 +0530 Subject: FSP: Make mbx error messages more verbose ... helps figure out what the cause of the failure was. Signed-off-by: Ananth N Mavinakayanahalli Acked-by: Stewart Smith Signed-off-by: Benjamin Herrenschmidt --- hw/fsp/fsp.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'hw/fsp') diff --git a/hw/fsp/fsp.c b/hw/fsp/fsp.c index 75ef2a0..b87c8b3 100644 --- a/hw/fsp/fsp.c +++ b/hw/fsp/fsp.c @@ -1351,9 +1351,10 @@ static void fsp_handle_incoming(struct fsp *fsp) __fsp_drop_incoming(fsp); return; } - - if (!cmdclass->busy || list_empty(&cmdclass->msgq)) { - prerror("FSP #%d: Got orphan response !\n", fsp->index); + + if (!cmdclass->busy || list_empty(&cmdclass->msgq)) { + prerror("FSP #%d: Got orphan response! w0 = 0x%08x w1 = 0x%08x\n", + fsp->index, w0, w1); __fsp_drop_incoming(fsp); return; } @@ -1364,8 +1365,8 @@ static void fsp_handle_incoming(struct fsp *fsp) (req->word0 & 0xff) != (w0 & 0xff) || (req->word1 & 0xff) != (w1 & 0x7f)) { __fsp_drop_incoming(fsp); - prerror("FSP #%d: Response doesn't match pending msg\n", - fsp->index); + prerror("FSP #%d: Response doesn't match pending msg. w0 = 0x%08x w1 = 0x%08x\n", + fsp->index, w0, w1); return; } else { u64 resetbit = ~fsp_get_class_bit(req->word0 & 0xff); -- cgit v1.1