Message ID | 20210504030358.1715034-7-nathanl@linux.ibm.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | powerpc/rtas: improved busy and extended delay status handling | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch powerpc/merge (134b5c8a49b594ff6cfb4ea1a92400bb382b46d2) |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 16 lines checked |
snowpatch_ozlabs/needsstable | success | Patch has no Fixes tags |
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);
rtas_sched_if_busy() has better behavior for RTAS_BUSY (-2) and small extended delay values. Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> --- arch/powerpc/platforms/pseries/msi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)