diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2020-06-30 11:56:59 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-06-30 11:57:01 +1000 |
commit | 86b617c7f74a9122e9572657a9ab9b4c6ba13c4c (patch) | |
tree | 41535a3a276cf90e9a69b892a9b7f074b50125fa /hw/xive.c | |
parent | 7b7df5057e7e66a8ec53ac08b0a88a49663234d0 (diff) | |
download | skiboot-86b617c7f74a9122e9572657a9ab9b4c6ba13c4c.zip skiboot-86b617c7f74a9122e9572657a9ab9b4c6ba13c4c.tar.gz skiboot-86b617c7f74a9122e9572657a9ab9b4c6ba13c4c.tar.bz2 |
hw/xive: Use XIVE_VSD_SIZE more
I think Cedric forgot this patch at some point.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw/xive.c')
-rw-r--r-- | hw/xive.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1672,7 +1672,7 @@ static bool xive_prealloc_tables(struct xive *x) } memset(x->eq_ind_base, 0, al); xive_dbg(x, "EQi at %p size 0x%llx\n", x->eq_ind_base, al); - x->eq_ind_count = XIVE_EQ_TABLE_SIZE / 8; + x->eq_ind_count = XIVE_EQ_TABLE_SIZE / XIVE_VSD_SIZE; /* Indirect VP table. Limited to one top page. */ al = ALIGN_UP(XIVE_VP_TABLE_SIZE, 0x10000); @@ -1686,7 +1686,7 @@ static bool xive_prealloc_tables(struct xive *x) return false; } xive_dbg(x, "VPi at %p size 0x%llx\n", x->vp_ind_base, al); - x->vp_ind_count = XIVE_VP_TABLE_SIZE / 8; + x->vp_ind_count = XIVE_VP_TABLE_SIZE / XIVE_VSD_SIZE; memset(x->vp_ind_base, 0, al); /* Populate/initialize VP/EQs indirect backing */ |