aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-01-15 22:36:25 -0600
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-02-02 18:22:41 +1100
commita2cacb4b2c33ba5f87e7729002e286ed2903b9c3 (patch)
tree2d8d7ed1bf82d6d9df11591848ec9787fdcd45a8 /hw
parent7d2501a1884b412b097bbf48c2894cd239bd09f4 (diff)
downloadskiboot-a2cacb4b2c33ba5f87e7729002e286ed2903b9c3.zip
skiboot-a2cacb4b2c33ba5f87e7729002e286ed2903b9c3.tar.gz
skiboot-a2cacb4b2c33ba5f87e7729002e286ed2903b9c3.tar.bz2
xive: Cache scrub needs a sync
After a scrub, use a sync to order any load to the newly updated memory. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xive.c b/hw/xive.c
index ab8955c..a126c4c 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;
}