[Skiboot] [PATCH 03/13] xive: Cache scrub needs a sync
Benjamin Herrenschmidt
benh at kernel.crashing.org
Mon Jan 16 15:36:25 AEDT 2017
After a scrub, use a sync to order any load to the newly updated
memory.
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
hw/xive.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/xive.c b/hw/xive.c
index 3d29e0e..7aff35a 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -1229,6 +1229,7 @@ static int64_t __xive_cache_scrub(struct xive *x, enum xive_cache_type ctype,
/* Small delay */
time_wait(100);
}
+ sync();
return 0;
}
--
2.9.3
More information about the Skiboot
mailing list