aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-08-07 09:38:20 +0200
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-08-18 16:35:39 +0530
commit3edfdb57712876300eab7f570356aec11b4bddca (patch)
treeec9c1368031379897c07d5398f42665bf06f87e8 /hw
parentde7141b5e5598633385756cced6a3a499571ab24 (diff)
downloadskiboot-3edfdb57712876300eab7f570356aec11b4bddca.zip
skiboot-3edfdb57712876300eab7f570356aec11b4bddca.tar.gz
skiboot-3edfdb57712876300eab7f570356aec11b4bddca.tar.bz2
xive/p10: Fix mismatch errors when DEBUG=1
HW has some reserved fields which break the comparison when checking END cache updates. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xive2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xive2.c b/hw/xive2.c
index c09dd55..d0094e9 100644
--- a/hw/xive2.c
+++ b/hw/xive2.c
@@ -1166,6 +1166,9 @@ static bool xive_check_endc_update(struct xive *x, uint32_t idx, struct xive_end
assert(end_p);
end2 = *end_p;
+ end2.w0 &= ~END_W0_RESERVED;
+ end2.w1 &= ~END_W1_RESERVED;
+ end2.w7 &= ~END_W7_F0_RESERVED;
if (memcmp(end, &end2, sizeof(struct xive_end)) != 0) {
xive_err(x, "END update mismatch idx %d\n", idx);
xive_err(x, "want: %08x %08x %08x %08x\n",