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

Cédric Le Goater clg at kaod.org
Fri Sep 13 03:22:04 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 174e648ab9b2..ca8044985662 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -2529,7 +2529,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