diff mbox

[03/13] xive: Cache scrub needs a sync

Message ID 20170116043635.25849-3-benh@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt Jan. 16, 2017, 4:36 a.m. UTC
After a scrub, use a sync to order any load to the newly updated
memory.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 hw/xive.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

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;
 }