[RFC 06/10] powerpc/pseries/msi: convert to rtas_sched_if_busy()
Nathan Lynch
nathanl at linux.ibm.com
Tue May 4 13:03:54 AEST 2021
rtas_sched_if_busy() has better behavior for RTAS_BUSY (-2) and small
extended delay values.
Signed-off-by: Nathan Lynch <nathanl at linux.ibm.com>
---
arch/powerpc/platforms/pseries/msi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/platforms/pseries/msi.c
index 637300330507..df434b8a3aa7 100644
--- a/arch/powerpc/platforms/pseries/msi.c
+++ b/arch/powerpc/platforms/pseries/msi.c
@@ -49,7 +49,7 @@ static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs)
func, num_irqs, seq_num);
seq_num = rtas_ret[1];
- } while (rtas_busy_delay(rc));
+ } while (rtas_sched_if_busy(rc));
/*
* If the RTAS call succeeded, return the number of irqs allocated.
@@ -100,7 +100,7 @@ static int rtas_query_irq_number(struct pci_dn *pdn, int offset)
do {
rc = rtas_call(query_token, 4, 3, rtas_ret, addr,
BUID_HI(buid), BUID_LO(buid), offset);
- } while (rtas_busy_delay(rc));
+ } while (rtas_sched_if_busy(rc));
if (rc) {
pr_debug("rtas_msi: error (%d) querying source number\n", rc);
--
2.30.2
More information about the Linuxppc-dev
mailing list