Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-05 Thread Richard A Lary
On 7/5/2011 1:34 PM, Richard A Lary wrote: On 7/5/2011 10:22 AM, Richard A Lary wrote: On 7/5/2011 9:18 AM, Jon Mason wrote: On Tue, Jul 5, 2011 at 10:41 AM, Richard A Lary wrote: On 7/1/2011 1:00 PM, Richard A Lary wrote: On 7/1/2011 12:02 PM, Jon Mason wrote: On Fri, Jul 1, 2011 at 1

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-05 Thread Richard A Lary
On 7/5/2011 10:22 AM, Richard A Lary wrote: On 7/5/2011 9:18 AM, Jon Mason wrote: On Tue, Jul 5, 2011 at 10:41 AM, Richard A Lary wrote: On 7/1/2011 1:00 PM, Richard A Lary wrote: On 7/1/2011 12:02 PM, Jon Mason wrote: On Fri, Jul 1, 2011 at 1:30 PM, Richard A Lary wrote: On 7/1/2011 8

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-05 Thread Richard A Lary
On 7/5/2011 9:18 AM, Jon Mason wrote: On Tue, Jul 5, 2011 at 10:41 AM, Richard A Lary wrote: On 7/1/2011 1:00 PM, Richard A Lary wrote: On 7/1/2011 12:02 PM, Jon Mason wrote: On Fri, Jul 1, 2011 at 1:30 PM, Richard A Lary wrote: On 7/1/2011 8:24 AM, Jon Mason wrote: I recently sent

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-05 Thread Richard A Lary
On 7/1/2011 1:00 PM, Richard A Lary wrote: On 7/1/2011 12:02 PM, Jon Mason wrote: On Fri, Jul 1, 2011 at 1:30 PM, Richard A Lary wrote: On 7/1/2011 8:24 AM, Jon Mason wrote: I recently sent out a number of patches to migrate drivers calling `pci_find_capability(pdef, PCI_CAP_ID_EXP)` to

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-01 Thread Richard A Lary
On 7/1/2011 12:02 PM, Jon Mason wrote: On Fri, Jul 1, 2011 at 1:30 PM, Richard A Lary wrote: On 7/1/2011 8:24 AM, Jon Mason wrote: I recently sent out a number of patches to migrate drivers calling `pci_find_capability(pdef, PCI_CAP_ID_EXP)` to pci_pcie_cap. This function takes uses a PCI-E

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-01 Thread Richard A Lary
On 7/1/2011 8:24 AM, Jon Mason wrote: I recently sent out a number of patches to migrate drivers calling `pci_find_capability(pdef, PCI_CAP_ID_EXP)` to pci_pcie_cap. This function takes uses a PCI-E capability offset that was determined by calling pci_find_capability during the PCI bus walking.

[PATCH 3/3] [repost] powerpc/eeh: Display eeh error location for bus and device

2011-05-04 Thread Richard A Lary
From: Richard A Lary For adapters which have devices under a PCIe switch/bridge it is informative to display information for both the PCIe switch/bridge and the device on which the bus error was detected. rebased to powerpc-next Signed-off-by: Richard A Lary --- --- arch/powerpc

[PATCH 3/3] powerpc/eeh: Display eeh error location for bus and device (resend)

2011-04-22 Thread Richard A Lary
From: Richard A Lary For adapters which have devices under a PCIe switch/bridge it is informative to display information for both the PCIe switch/bridge and the device on which the bus error was detected. Signed-off-by: Richard A Lary --- arch/powerpc/platforms/pseries/eeh_driver.c | 24

[PATCH 3/3] powerpc/eeh: Handle functional reset on non-PCIe device

2011-04-22 Thread Richard A Lary
From: Richard A Lary For adapters which have devices under a PCIe switch/bridge it is informative to display information for both the PCIe switch/bridge and the device on which the bus error was detected. Signed-off-by: Richard A Lary --- arch/powerpc/platforms/pseries/eeh_driver.c | 24

[PATCH 2/3] powerpc/eeh: Handle functional reset on non-PCIe device

2011-04-22 Thread Richard A Lary
From: Richard A Lary Fundamental reset is an optional reset type supported only by PCIe adapters. Handle the unexpected case where a non-PCIe device has requested a fundamental reset. Try hot-reset as a fallback to handle this case. Signed-off-by: Richard A Lary --- arch/powerpc/platforms

[PATCH 1/3] [PATCH 1/3]powerpc/eeh: Propagate needs_freset flag to device at PE

2011-04-22 Thread Richard A Lary
From: Richard A Lary For multifunction adapters with a PCI bridge or switch as the device at the Partitionable Endpoint(PE), if one or more devices below PE sets dev->needs_freset, that value will be set for the PE device. In other words, if any device below PE requires a fundamental re

[PATCH 0/3] powerpc/eeh: Bug fix and enhancement

2011-04-22 Thread Richard A Lary
This patch set contains three patches, all to eeh.c, which fix a issue seen on PCIe adapters with devices below PCIe bridge/switch, gracefully handle case where driver sets 'needs_freset' for non-PCIe adapter, and display location information for both PCIe bus and device for the device which detec

Re: [PATCH 1/1] powerpc/eeh: Add support for ibm,configure-pe RTAS call

2011-04-08 Thread Richard A Lary
On 4/6/2011 8:35 PM, Benjamin Herrenschmidt wrote: On Wed, 2011-04-06 at 15:50 -0700, Richard A Lary wrote: From: Richard A. Lary Added support for ibm,configure-pe RTAS call introduced with PAPR 2.2. Care to tell us a bit about the difference ? :-) There's nothing obvious in the

[PATCH 1/1] powerpc/eeh: Add support for ibm,configure-pe RTAS call

2011-04-06 Thread Richard A Lary
From: Richard A. Lary Added support for ibm,configure-pe RTAS call introduced with PAPR 2.2. Signed-off-by: Richard A. Lary --- arch/powerpc/platforms/pseries/eeh.c | 1312 +1 - 0 ! 1 file changed, 12 insertions(+), 1 deletion(-) Index: b/arch/powerpc/platforms/pseries/eeh.c