powerpc/xive: prepare all hcalls to support long busy delays
authorCédric Le Goater <clg@kaod.org>
Tue, 8 May 2018 07:05:17 +0000 (09:05 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 May 2018 13:25:10 +0000 (23:25 +1000)
commit282498d65fb4740c2e9212a79c6888887d0be6cf
tree56488e4fac23b1eae5373093e5c83b4d58ef8e49
parent72224846fb1f066cc04dc0a38d910221b5719bdf
powerpc/xive: prepare all hcalls to support long busy delays

This is not the case for the moment, but future releases of pHyp might
need to introduce some synchronisation routines under the hood which
would make the XIVE hcalls longer to complete.

As this was done for H_INT_RESET, let's wrap the other hcalls in a
loop catching the H_LONG_BUSY_* codes.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xive/spapr.c