Re: [PATCH v6] PCI hotplug: rpaphp: Error out on busy status from get-sensor-state

2022-06-12 Thread Mahesh J Salgaonkar
On 2022-04-28 15:47:40 Thu, Bjorn Helgaas wrote: > On Tue, Apr 26, 2022 at 11:07:39PM +0530, Mahesh Salgaonkar wrote: > > When certain PHB HW failure causes phyp to recover PHB, it marks the PE > > state as temporarily unavailable until recovery is complete. This also > > triggers an EEH handler in

Re: [PATCH v6] PCI hotplug: rpaphp: Error out on busy status from get-sensor-state

2022-04-29 Thread Bjorn Helgaas
On Thu, Apr 28, 2022 at 05:31:38PM -0500, Nathan Lynch wrote: > Bjorn Helgaas writes: > > On Tue, Apr 26, 2022 at 11:07:39PM +0530, Mahesh Salgaonkar wrote: > >> +/* > >> + * RTAS call get-sensor-state(DR_ENTITY_SENSE) return values as per PAPR: > >> + *-1: Hardware Error > >> + *-2: RTAS_

Re: [PATCH v6] PCI hotplug: rpaphp: Error out on busy status from get-sensor-state

2022-04-28 Thread Nathan Lynch
Bjorn Helgaas writes: > On Tue, Apr 26, 2022 at 11:07:39PM +0530, Mahesh Salgaonkar wrote: >> +/* >> + * RTAS call get-sensor-state(DR_ENTITY_SENSE) return values as per PAPR: >> + *-1: Hardware Error >> + *-2: RTAS_BUSY >> + *-3: Invalid sensor. RTAS Parameter Error. >> + * -9000: Nee

Re: [PATCH v6] PCI hotplug: rpaphp: Error out on busy status from get-sensor-state

2022-04-28 Thread Bjorn Helgaas
On Tue, Apr 26, 2022 at 11:07:39PM +0530, Mahesh Salgaonkar wrote: > When certain PHB HW failure causes phyp to recover PHB, it marks the PE > state as temporarily unavailable until recovery is complete. This also > triggers an EEH handler in Linux which needs to notify drivers, and perform > recov

[PATCH v6] PCI hotplug: rpaphp: Error out on busy status from get-sensor-state

2022-04-26 Thread Mahesh Salgaonkar
When certain PHB HW failure causes phyp to recover PHB, it marks the PE state as temporarily unavailable until recovery is complete. This also triggers an EEH handler in Linux which needs to notify drivers, and perform recovery. But before notifying the driver about the PCI error it uses get_adapte