]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/pseries/eeh: Handle RTAS delay requests in configure_bridge
authorRussell Currey <ruscur@russell.cc>
Thu, 7 Apr 2016 06:28:26 +0000 (16:28 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jun 2016 17:15:29 +0000 (10:15 -0700)
commit9a074a6c265a11003ed1779fa5810cb0bcbc21cc
treed9030412223300a6e81def69cc6627a21b1deba3
parent46f9f1a2dc455b435bbe864ba8a970dd6b2b004b
powerpc/pseries/eeh: Handle RTAS delay requests in configure_bridge

commit 871e178e0f2c4fa788f694721a10b4758d494ce1 upstream.

In the "ibm,configure-pe" and "ibm,configure-bridge" RTAS calls, the
spec states that values of 9900-9905 can be returned, indicating that
software should delay for 10^x (where x is the last digit, i.e. 990x)
milliseconds and attempt the call again. Currently, the kernel doesn't
know about this, and respecting it fixes some PCI failures when the
hypervisor is busy.

The delay is capped at 0.2 seconds.

Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Russell Currey <ruscur@russell.cc>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/eeh_pseries.c