diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-11-21 20:32:28 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-11-28 20:39:07 -0600 |
commit | 6b1cc437315d81267597756a78777da8001e2d04 (patch) | |
tree | 65dd54351d7012506262c78ad3d9c68c44d755af /hw | |
parent | 4a9288465a954a71a1f90f477df3839fd9776ed8 (diff) | |
download | skiboot-6b1cc437315d81267597756a78777da8001e2d04.zip skiboot-6b1cc437315d81267597756a78777da8001e2d04.tar.gz skiboot-6b1cc437315d81267597756a78777da8001e2d04.tar.bz2 |
xive: Properly reserve built-in VPs in non-group mode
This is not normally used but if the #define is changed to
disable block group mode we would incorrectly clear the
buddy completely without marking the built-in VPs reserved.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xive.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4546,6 +4546,8 @@ static void xive_reset_one(struct xive *x) #ifndef USE_BLOCK_GROUP_MODE /* If block group mode isn't enabled, reset VP alloc buddy */ buddy_reset(x->vp_buddy); + if (x->block_id == 0) + assert(buddy_reserve(x->vp_buddy, 0x800, 11)); #endif #ifdef USE_INDIRECT |