[Skiboot] [PATCH v3 03/17] xive/p9: use MMIO access for VC_EQC_CONFIG

Cédric Le Goater clg at kaod.org
Tue Oct 1 16:59:48 AEST 2019


There is no reason to issue loads on XSCOM when syncing the interrupt
controller. All should be in place to use MMIOs.

Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
 hw/xive.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xive.c b/hw/xive.c
index 5369369b9895..89e3e2def1be 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -2530,7 +2530,7 @@ static int64_t xive_sync(struct xive *x)
 
 	/* XXX Add timeout */
 	for (;;) {
-		r = xive_regrx(x, VC_EQC_CONFIG);
+		r = xive_regr(x, VC_EQC_CONFIG);
 		if ((r & SYNC_MASK) == SYNC_MASK)
 			break;
 		cpu_relax();
-- 
2.21.0



More information about the Skiboot mailing list