aboutsummaryrefslogtreecommitdiff
path: root/hw/xive.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-09-10 17:35:59 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-09-12 22:52:08 -0500
commit3ef155f8e7d17728ab2c888294301d0d9509ef61 (patch)
tree1d66a4ccf34fd0a33a53c8f9fd1a76383212d475 /hw/xive.c
parentf02d13272ac799c3b053c7d4f47354fa870eae1b (diff)
downloadskiboot-3ef155f8e7d17728ab2c888294301d0d9509ef61.zip
skiboot-3ef155f8e7d17728ab2c888294301d0d9509ef61.tar.gz
skiboot-3ef155f8e7d17728ab2c888294301d0d9509ef61.tar.bz2
xive: Make assertion in xive_eq_for_target() more informative
If this fails, print a bit more info about it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/xive.c')
-rw-r--r--hw/xive.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/xive.c b/hw/xive.c
index 7128000..4f08e65 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -2226,7 +2226,11 @@ static inline bool xive_eq_for_target(uint32_t target, uint8_t prio,
eq_idx = vp->w1 & 0x0fffffff;
/* Currently the EQ block and VP block should be the same */
- assert(eq_blk == vp_blk);
+ if (eq_blk != vp_blk) {
+ xive_err(x, "eq_blk != vp_blk (%d vs. %d) for target 0x%08x/%d\n",
+ eq_blk, vp_blk, target, prio);
+ assert(false);
+ }
if (out_eq_blk)
*out_eq_blk = eq_blk;