Re: [PATCH v15 3/9] PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices

2018-05-09 Thread poza
On 2018-05-09 18:37, Bjorn Helgaas wrote: On Tue, May 08, 2018 at 06:53:30PM -0500, Bjorn Helgaas wrote: On Thu, May 03, 2018 at 01:03:52AM -0400, Oza Pawandeep wrote: > This patch alters the behavior of handling of ERR_FATAL, where removal > of devices is initiated, followed by reset link,

Re: [PATCH v15 3/9] PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices

2018-05-10 Thread poza
On 2018-05-10 18:45, ok...@codeaurora.org wrote: On 2018-05-10 14:10, Bjorn Helgaas wrote: On Thu, May 10, 2018 at 12:31:16PM +0530, p...@codeaurora.org wrote: On 2018-05-10 04:51, Bjorn Helgaas wrote: > On Wed, May 09, 2018 at 06:44:53PM +0530, p...@codeaurora.org wrote: > > On 2018-05-09

Re: [PATCH v15 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-10 Thread poza
On 2018-05-10 18:52, Bjorn Helgaas wrote: On Thu, May 03, 2018 at 01:03:57AM -0400, Oza Pawandeep wrote: Current DPC driver does not do recovery, e.g. calling end-point's driver's callbacks, which sanitize the sw. DPC driver implements link_reset callback, and calls pci_do_recovery().

Re: [PATCH v15 3/9] PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices

2018-05-10 Thread poza
On 2018-05-10 04:51, Bjorn Helgaas wrote: On Wed, May 09, 2018 at 06:44:53PM +0530, p...@codeaurora.org wrote: On 2018-05-09 18:37, Bjorn Helgaas wrote: > On Tue, May 08, 2018 at 06:53:30PM -0500, Bjorn Helgaas wrote: > > On Thu, May 03, 2018 at 01:03:52AM -0400, Oza Pawandeep wrote: > > > This

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-11 Thread poza
On 2018-05-11 16:13, Oza Pawandeep wrote: DPC driver implements link_reset callback, and calls pci_do_fatal_recovery(). Which follows standard path of ERR_FATAL recovery. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index

Re: [PATCH v16 5/9] PCI/AER: Factor out error reporting from AER

2018-05-11 Thread poza
On 2018-05-11 18:28, Lukas Wunner wrote: On Fri, May 11, 2018 at 06:43:24AM -0400, Oza Pawandeep wrote: +void pcie_do_fatal_recovery(struct pci_dev *dev) +{ + struct pci_dev *udev; + struct pci_bus *parent; + struct pci_dev *pdev, *temp; + pci_ers_result_t result =

Re: [PATCH v16 5/9] PCI/AER: Factor out error reporting from AER

2018-05-11 Thread poza
On 2018-05-11 21:24, Lukas Wunner wrote: On Fri, May 11, 2018 at 09:04:36PM +0530, p...@codeaurora.org wrote: On 2018-05-11 18:28, Lukas Wunner wrote: >On Fri, May 11, 2018 at 06:43:24AM -0400, Oza Pawandeep wrote: >>+void pcie_do_fatal_recovery(struct pci_dev *dev) >>+{ >>+ struct

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 05:26, Bjorn Helgaas wrote: On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora.org wrote: On 2018-05-11 16:13, Oza Pawandeep wrote: > DPC driver implements link_reset callback, and calls > pci_do_fatal_recovery(). > > Which follows standard path of ERR_FATAL recovery. > >

Re: [PATCH INTERNAL 3/3] PCI: iproc: Disable MSI parsing in certain PAXC blocks

2018-05-18 Thread poza
On 2018-05-17 22:51, Ray Jui wrote: The internal MSI parsing logic in certain revisions of PAXC root complexes does not work properly and can casue corruptions on the writes. They need to be disabled Signed-off-by: Ray Jui Reviewed-by: Scott Branden

Re: [PATCH INTERNAL 2/3] PCI: iproc: Fix up corrupted PAXC root complex config registers

2018-05-18 Thread poza
On 2018-05-17 22:51, Ray Jui wrote: On certain versions of Broadcom PAXC based root complexes, certain regions of the configuration space are corrupted. As a result, it prevents the Linux PCIe stack from traversing the linked list of the capability registers completely and therefore the root

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 18:34, Bjorn Helgaas wrote: On Wed, May 16, 2018 at 05:45:58PM +0530, p...@codeaurora.org wrote: On 2018-05-16 16:22, Bjorn Helgaas wrote: > On Wed, May 16, 2018 at 01:46:25PM +0530, p...@codeaurora.org wrote: > > On 2018-05-16 05:26, Bjorn Helgaas wrote: > > > On Fri, May 11,

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 18:34, Bjorn Helgaas wrote: On Wed, May 16, 2018 at 05:45:58PM +0530, p...@codeaurora.org wrote: On 2018-05-16 16:22, Bjorn Helgaas wrote: > On Wed, May 16, 2018 at 01:46:25PM +0530, p...@codeaurora.org wrote: > > On 2018-05-16 05:26, Bjorn Helgaas wrote: > > > On Fri, May 11,

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 16:22, Bjorn Helgaas wrote: On Wed, May 16, 2018 at 01:46:25PM +0530, p...@codeaurora.org wrote: On 2018-05-16 05:26, Bjorn Helgaas wrote: > On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora.org wrote: > > On 2018-05-11 16:13, Oza Pawandeep wrote: > > > DPC driver

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 16:22, Bjorn Helgaas wrote: On Wed, May 16, 2018 at 01:46:25PM +0530, p...@codeaurora.org wrote: On 2018-05-16 05:26, Bjorn Helgaas wrote: > On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora.org wrote: > > On 2018-05-11 16:13, Oza Pawandeep wrote: > > > DPC driver

Re: [PATCH v16 3/9] PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices

2018-05-15 Thread poza
On 2018-05-16 05:29, Bjorn Helgaas wrote: On Fri, May 11, 2018 at 06:43:22AM -0400, Oza Pawandeep wrote: This patch alters the behavior of handling of ERR_FATAL, where removal of devices is initiated, followed by reset link, followed by re-enumeration. So the errors are handled in a different

Re: [PATCH v2 2/5] PCI: iproc: Fix up corrupted PAXC root complex config registers

2018-06-12 Thread poza
On 2018-06-12 13:57, p...@codeaurora.org wrote: On 2018-06-12 05:51, Ray Jui wrote: On certain versions of Broadcom PAXC based root complexes, certain regions of the configuration space are corrupted. As a result, it prevents the Linux PCIe stack from traversing the linked list of the

Re: [PATCH v2 4/5] PCI: iproc: Reject unconfigured physical functions from PAXC

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: PAXC is an emulated PCIe root complex internally in various Broadcom based SoCs. PAXC internally connects to the embedded network processor within these SoCs, with the embedeed network processor exposed as an endpoint device The number of physical functions

Re: [PATCH v2 3/5] PCI: iproc: Disable MSI parsing in certain PAXC blocks

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: The internal MSI parsing logic in certain revisions of PAXC root complexes does not work properly and can casue corruptions on the writes. They need to be disabled Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- drivers/pci/host/pcie-iproc.c | 34

Re: [PATCH v2 2/5] PCI: iproc: Fix up corrupted PAXC root complex config registers

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: On certain versions of Broadcom PAXC based root complexes, certain regions of the configuration space are corrupted. As a result, it prevents the Linux PCIe stack from traversing the linked list of the capability registers completely and therefore the root

Re: [PATCH v2 5/5] PCI: iproc: Reduce inbound/outbound mapping print level

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: Reduce inbound/outbound mapping print level from dev_info to dev_dbg. This reduces the console logs during Linux boot process Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- drivers/pci/host/pcie-iproc.c | 34 +- 1

Re: [PATCH v2 1/5] PCI: iproc: Activate PAXC bridge quirk for more devices

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: Activate PAXC bridge quirk for more PAXC based PCIe root complex with the following PCIe device ID: 0xd750, 0xd802, 0xd804 Signed-off-by: Ray Jui --- drivers/pci/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/quirks.c

Re: [PATCH 2/6] PCI: iproc: Add INTx support with better modeling

2018-06-12 Thread poza
On 2018-05-30 03:28, Ray Jui wrote: Add PCIe legacy interrupt INTx support to the iProc PCIe driver by modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, INTD share the same interrupt line connected to the GIC in the system, while the status of each INTx can be obtained

Re: [PATCH NEXT 6/6] PCI/PORTDRV: Remove ERR_FATAL handling from pcie_portdrv_slot_reset()

2018-06-07 Thread poza
On 2018-06-07 11:30, Oza Pawandeep wrote: We are handling ERR_FATAL by resetting the Link in software,skipping the driver pci_error_handlers callbacks, removing the devices from the PCI subsystem, and re-enumerating, as a result of that, no more calling pcie_portdrv_slot_reset in ERR_FATAL

Re: [PATCH NEXT 1/6] PCI/AER: Take mask into account while clearing error bits

2018-06-07 Thread poza
On 2018-06-07 18:51, Bjorn Helgaas wrote: On Thu, Jun 07, 2018 at 02:00:29AM -0400, Oza Pawandeep wrote: PCIe ERR_NONFATAL and ERR_FATAL are uncorrectable errors, and clearing uncorrectable error bits should take error mask into account. Signed-off-by: Oza Pawandeep If/when you repost

Re: [PATCH v2 3/5] PCI: iproc: Disable MSI parsing in certain PAXC blocks

2018-06-12 Thread poza
On 2018-06-12 22:28, Ray Jui wrote: On 6/12/2018 1:29 AM, p...@codeaurora.org wrote: On 2018-06-12 05:51, Ray Jui wrote: The internal MSI parsing logic in certain revisions of PAXC root complexes does not work properly and can casue corruptions on the writes. They need to be disabled

Re: [RFC PATCH v1 0/9] PCI/portdrv: Squash into one file

2018-06-11 Thread poza
On 2018-06-09 01:42, Bjorn Helgaas wrote: The portdrv code is scattered across several files, which makes it a bit of a hassle to browse. Consolidate it all in a single file. Although I do not have any objection is merging the code, It looks to me that the 2 files served purpose of keeping

Re: [PATCH NEXT 6/6] PCI/PORTDRV: Remove ERR_FATAL handling from pcie_portdrv_slot_reset()

2018-06-11 Thread poza
On 2018-06-08 03:04, Bjorn Helgaas wrote: On Thu, Jun 07, 2018 at 07:18:03PM +0530, p...@codeaurora.org wrote: On 2018-06-07 11:30, Oza Pawandeep wrote: > We are handling ERR_FATAL by resetting the Link in software,skipping the > driver pci_error_handlers callbacks, removing the devices from

Re: [PATCH NEXT 6/6] PCI/PORTDRV: Remove ERR_FATAL handling from pcie_portdrv_slot_reset()

2018-06-11 Thread poza
On 2018-06-11 15:31, p...@codeaurora.org wrote: On 2018-06-08 03:04, Bjorn Helgaas wrote: On Thu, Jun 07, 2018 at 07:18:03PM +0530, p...@codeaurora.org wrote: On 2018-06-07 11:30, Oza Pawandeep wrote: > We are handling ERR_FATAL by resetting the Link in software,skipping the > driver

Re: [PATCH NEXT 6/6] PCI/PORTDRV: Remove ERR_FATAL handling from pcie_portdrv_slot_reset()

2018-06-07 Thread poza
On 2018-06-08 03:04, Bjorn Helgaas wrote: On Thu, Jun 07, 2018 at 07:18:03PM +0530, p...@codeaurora.org wrote: On 2018-06-07 11:30, Oza Pawandeep wrote: > We are handling ERR_FATAL by resetting the Link in software,skipping the > driver pci_error_handlers callbacks, removing the devices from

Re: [PATCH NEXT 6/6] PCI/PORTDRV: Remove ERR_FATAL handling from pcie_portdrv_slot_reset()

2018-06-07 Thread poza
On 2018-06-08 03:04, Bjorn Helgaas wrote: On Thu, Jun 07, 2018 at 07:18:03PM +0530, p...@codeaurora.org wrote: On 2018-06-07 11:30, Oza Pawandeep wrote: > We are handling ERR_FATAL by resetting the Link in software,skipping the > driver pci_error_handlers callbacks, removing the devices from

Re: [PATCH] PCI/AER: Adopt lspci naming convention for AER prints

2018-06-26 Thread poza
On 2018-06-26 21:14, Tyler Baicar wrote: lspci uses abbreviated naming for AER error strings. Adopt the same naming convention for the AER printing so they match. Signed-off-by: Tyler Baicar --- drivers/pci/pcie/aer.c | 46 +++--- 1 file changed, 23

Re: [PATCH V5 3/3] PCI: Mask and unmask hotplug interrupts during reset

2018-07-03 Thread poza
On 2018-07-03 14:04, Lukas Wunner wrote: On Mon, Jul 02, 2018 at 06:52:47PM -0400, Sinan Kaya wrote: If a bridge supports hotplug and observes a PCIe fatal error, the following events happen: 1. AER driver removes the devices from PCI tree on fatal error 2. AER driver brings down the link by

Re: [PATCH v14 0/9] Address error and recovery for AER and DPC

2018-04-25 Thread poza
On 2018-04-23 20:53, Oza Pawandeep wrote: This patch set brings in error handling support for DPC The current implementation of AER and error message broadcasting to the EP driver is tightly coupled and limited to AER service driver. It is important to factor out broadcasting and other link

Re: [PATCH v14 0/9] Address error and recovery for AER and DPC

2018-05-01 Thread poza
On 2018-05-01 04:10, Bjorn Helgaas wrote: On Thu, Apr 26, 2018 at 11:00:52AM +0530, p...@codeaurora.org wrote: On 2018-04-23 20:53, Oza Pawandeep wrote: > This patch set brings in error handling support for DPC > > The current implementation of AER and error message broadcasting to the > EP

Re: [PATCH v15 5/9] PCI/AER: Factor out error reporting from AER

2018-05-04 Thread poza
On 2018-05-03 10:33, Oza Pawandeep wrote: This patch factors out error reporting callbacks, which are currently tightly coupled with AER. DPC should be able to register callbacks and attempt recovery when DPC trigger event occurs. Signed-off-by: Oza Pawandeep diff --git

Re: [PATCH V5 3/3] PCI: Mask and unmask hotplug interrupts during reset

2018-07-03 Thread poza
On 2018-07-03 19:42, Lukas Wunner wrote: On Tue, Jul 03, 2018 at 07:30:28AM -0400, ok...@codeaurora.org wrote: On 2018-07-03 04:34, Lukas Wunner wrote: >On Mon, Jul 02, 2018 at 06:52:47PM -0400, Sinan Kaya wrote: >>If a bridge supports hotplug and observes a PCIe fatal error, the >>following

Re: [PATCH V5 3/3] PCI: Mask and unmask hotplug interrupts during reset

2018-07-03 Thread poza
On 2018-07-03 20:04, Lukas Wunner wrote: On Mon, Jul 02, 2018 at 06:52:47PM -0400, Sinan Kaya wrote: @@ -308,8 +310,17 @@ void pcie_do_fatal_recovery(struct pci_dev *dev, u32 service) pci_dev_put(pdev); } + hpsvc = pcie_port_find_service(udev,

Re: [PATCH V5 3/3] PCI: Mask and unmask hotplug interrupts during reset

2018-07-03 Thread poza
On 2018-07-03 19:29, Lukas Wunner wrote: On Tue, Jul 03, 2018 at 09:31:24AM -0400, Sinan Kaya wrote: Issue is observing hotplug link down event in the middle of AER recovery as in my previous reply. If we mask hotplug interrupts before secondary bus reset via my patch, then hotplug driver

Re: [PATCH V5 3/3] PCI: Mask and unmask hotplug interrupts during reset

2018-07-03 Thread poza
On 2018-07-03 17:00, ok...@codeaurora.org wrote: On 2018-07-03 04:34, Lukas Wunner wrote: On Mon, Jul 02, 2018 at 06:52:47PM -0400, Sinan Kaya wrote: If a bridge supports hotplug and observes a PCIe fatal error, the following events happen: 1. AER driver removes the devices from PCI tree on

Re: [PATCH v2 2/4] PCI/DPC/AER: Address Concurrency between AER and DPC

2017-12-29 Thread poza
On 2017-12-29 22:53, Keith Busch wrote: On Fri, Dec 29, 2017 at 12:54:17PM +0530, Oza Pawandeep wrote: This patch addresses the race condition between AER and DPC for recovery. Current DPC driver does not do recovery, e.g. calling end-point's driver's callbacks, which sanitize the device.

Re: [PATCH v2 2/4] PCI/DPC/AER: Address Concurrency between AER and DPC

2017-12-29 Thread poza
On 2017-12-29 23:43, Keith Busch wrote: On Fri, Dec 29, 2017 at 11:30:02PM +0530, p...@codeaurora.org wrote: On 2017-12-29 22:53, Keith Busch wrote: > 2. A DPC event suppresses the error message required for the Linux > AER driver to run. How can AER and DPC run concurrently? I afraid I could

Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC

2018-01-18 Thread poza
On 2018-01-18 22:01, Sinan Kaya wrote: On 1/18/2018 12:57 AM, p...@codeaurora.org wrote: On 2018-01-18 10:47, p...@codeaurora.org wrote: On 2018-01-17 22:16, Sinan Kaya wrote: On 1/17/2018 5:37 AM, Oza Pawandeep wrote: +++ b/include/linux/dpc.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier:

Re: [PATCH v6 7/7] PCI: Unify wait for link active into generic pci

2018-01-19 Thread poza
On 2018-01-19 19:49, Stefan Roese wrote: On 19.01.2018 12:10, Oza Pawandeep wrote: Clients such as pciehp, dpc are using pcie_wait_link_active, which waits till the link becomes active or inactive. Made generic function and moved it to drivers/pci/pci.c Signed-off-by: Oza Pawandeep

Re: [PATCH v6 7/7] PCI: Unify wait for link active into generic pci

2018-01-19 Thread poza
On 2018-01-19 19:47, Sinan Kaya wrote: On 1/19/2018 6:10 AM, Oza Pawandeep wrote: +++ b/drivers/pci/pcie/pcie-dpc.c @@ -150,37 +150,9 @@ static void dpc_wait_link_inactive(struct dpc_dev *dpc) struct pci_dev *pdev = dpc->dev->port; struct device *dev = >dev->device;

Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC

2018-01-19 Thread poza
On 2018-01-19 10:14, Sinan Kaya wrote: On 1/18/2018 11:23 PM, p...@codeaurora.org wrote: On 2018-01-18 23:33, Sinan Kaya wrote: On 1/18/2018 1:00 PM, p...@codeaurora.org wrote: I think you would put into include/linux/pci.h only if there is an external use of constant outside of drivers/pci

Re: [PATCH v4 2/5] PCI/ERR: Rename error reporting to generic pci naming

2018-01-17 Thread poza
On 2018-01-17 13:54, p...@codeaurora.org wrote: On 2018-01-17 06:46, Bjorn Helgaas wrote: On Tue, Jan 16, 2018 at 03:28:40PM +0530, Oza Pawandeep wrote: This patch renames error reporting to generic function with pci prefix Signed-off-by: Oza Pawandeep diff --git

Re: [PATCH v4 2/5] PCI/ERR: Rename error reporting to generic pci naming

2018-01-17 Thread poza
On 2018-01-17 06:46, Bjorn Helgaas wrote: On Tue, Jan 16, 2018 at 03:28:40PM +0530, Oza Pawandeep wrote: This patch renames error reporting to generic function with pci prefix Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/aer/aerdrv_core.c

Re: [PATCH v5 4/4] PCI/DPC: Enumerate the devices after DPC trigger event

2018-01-17 Thread poza
On 2018-01-17 21:57, Sinan Kaya wrote: On 1/17/2018 5:37 AM, Oza Pawandeep wrote: +static bool dpc_wait_link_active(struct pci_dev *pdev) +{ I think you can also make this function common instead of making another copy here. Of course, this would be another patch. ok I will make a separate

Re: [PATCH v5 4/4] PCI/DPC: Enumerate the devices after DPC trigger event

2018-01-17 Thread poza
On 2018-01-18 08:26, Keith Busch wrote: On Wed, Jan 17, 2018 at 08:27:39AM -0800, Sinan Kaya wrote: On 1/17/2018 5:37 AM, Oza Pawandeep wrote: > +static bool dpc_wait_link_active(struct pci_dev *pdev) > +{ I think you can also make this function common instead of making another copy here. Of

Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC

2018-01-17 Thread poza
On 2018-01-17 22:16, Sinan Kaya wrote: On 1/17/2018 5:37 AM, Oza Pawandeep wrote: +++ b/include/linux/dpc.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef _DPC_H_ +#define _DPC_H_ + +#define DPC_FATAL 4 + +#endif //_DPC_H_ + can you keep this in drivers/pci.h

Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC

2018-01-17 Thread poza
On 2018-01-17 22:15, Sinan Kaya wrote: On 1/17/2018 5:37 AM, Oza Pawandeep wrote: + driver = pci_find_dpc_service(udev); +#endif #if IS_ENABLED(CONFIG_PCIEAER) - /* Use the aer driver of the component firstly */ - driver = pci_find_aer_service(udev); I think we need

Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC

2018-01-17 Thread poza
On 2018-01-18 10:47, p...@codeaurora.org wrote: On 2018-01-17 22:16, Sinan Kaya wrote: On 1/17/2018 5:37 AM, Oza Pawandeep wrote: +++ b/include/linux/dpc.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef _DPC_H_ +#define _DPC_H_ + +#define DPC_FATAL 4 + +#endif

Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC

2018-01-17 Thread poza
On 2018-01-18 10:52, p...@codeaurora.org wrote: On 2018-01-17 22:15, Sinan Kaya wrote: On 1/17/2018 5:37 AM, Oza Pawandeep wrote: + driver = pci_find_dpc_service(udev); +#endif #if IS_ENABLED(CONFIG_PCIEAER) - /* Use the aer driver of the component firstly */ -

Re: [PATCH v7 0/7] Address error and recovery for AER and DPC

2018-02-19 Thread poza
On 2018-01-20 12:05, Oza Pawandeep wrote: This patch set brings in error handling support for DPC The current implementation of AER and error message broadcasting to the EP driver is tightly coupled and limited to AER service driver. It is important to factor out broadcasting and other link

Re: [PATCH v10 5/7] PCI/AER: Unify aer error defines at single space

2018-02-22 Thread poza
On 2018-02-22 21:32, Oza Pawandeep wrote: This patch moves AER error defines to drivers/pci/pci.h. So that it unifies the error repoting codes at single place along with dpc Signed-off-by: Oza Pawandeep diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c

Re: [PATCH v9 7/7] PCI/DPC: Enumerate the devices after DPC trigger event

2018-02-22 Thread poza
On 2018-02-23 00:53, Randy Dunlap wrote: On 02/21/2018 11:46 PM, Oza Pawandeep wrote: Implement error_resume callback in DPC so, after DPC trigger event enumerates the devices beneath. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/pcie-dpc.c

Re: [PATCH v9 4/7] PCI/DPC: Unify and plumb error handling into DPC

2018-02-22 Thread poza
On 2018-02-23 00:53, Randy Dunlap wrote: On 02/21/2018 11:46 PM, Oza Pawandeep wrote: Current DPC driver does not do recovery, e.g. calling end-point's driver's callbacks, which sanitize the sw. DPC driver implements link_reset callback, and calls pci_do_recovery. Hi, What does DPC mean?

Re: [PATCH v10 4/7] PCI/DPC: Unify and plumb error handling into DPC

2018-02-22 Thread poza
On 2018-02-23 00:09, Christoph Hellwig wrote: On Thu, Feb 22, 2018 at 09:32:09PM +0530, Oza Pawandeep wrote: Current DPC driver does not do recovery, e.g. calling end-point's driver's callbacks, which sanitize the sw. DPC driver implements link_reset callback, and calls pci_do_recovery.

Re: [PATCH v10 3/7] PCI/ERR: add mutex to synchronize recovery

2018-02-22 Thread poza
On 2018-02-23 00:06, Christoph Hellwig wrote: On Thu, Feb 22, 2018 at 09:32:08PM +0530, Oza Pawandeep wrote: This patch protects pci_do_recovery with mutex. Do we really want a global mutex for this and not one per root complex at very least? This protects pcie_do_recovery, which is called

Re: [PATCH v10 1/7] PCI/AER: Rename error recovery to generic pci naming

2018-02-22 Thread poza
On 2018-02-23 00:04, Christoph Hellwig wrote: On Thu, Feb 22, 2018 at 09:32:06PM +0530, Oza Pawandeep wrote: This patch renames error recovery to generic name with pci prefix Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/aer/aerdrv_core.c

Re: [PATCH v9 2/7] PCI/AER: factor out error reporting from AER

2018-02-22 Thread poza
On 2018-02-23 00:53, Randy Dunlap wrote: On 02/21/2018 11:46 PM, Oza Pawandeep wrote: Hi, Just minor stuff: diff --git a/drivers/pci/pcie/pcie-err.c b/drivers/pci/pcie/pcie-err.c new file mode 100644 index 000..a532fe0 --- /dev/null +++ b/drivers/pci/pcie/pcie-err.c @@ -0,0 +1,334 @@ +//

Re: [PATCH v9 2/7] PCI/AER: factor out error reporting from AER

2018-02-22 Thread poza
On 2018-02-23 00:53, Randy Dunlap wrote: On 02/21/2018 11:46 PM, Oza Pawandeep wrote: Hi, Just minor stuff: diff --git a/drivers/pci/pcie/pcie-err.c b/drivers/pci/pcie/pcie-err.c new file mode 100644 index 000..a532fe0 --- /dev/null +++ b/drivers/pci/pcie/pcie-err.c @@ -0,0 +1,334 @@ +//

Re: [PATCH v10 6/7] PCI: Unify wait for link active into generic pci

2018-02-22 Thread poza
On 2018-02-23 00:13, Christoph Hellwig wrote: +/** + * pci__wait_for_link - Wait for link till its active/inactive typo - just wants a single underscore. + pcie_capability_read_word(pdev, PCI_EXP_LNKSTA, _status); + ret = !!(lnk_status & PCI_EXP_LNKSTA_DLLLA); no need for the

Re: [PATCH v11 2/7] PCI/AER: factor out error reporting from AER

2018-02-25 Thread poza
On 2018-02-24 05:12, Bjorn Helgaas wrote: On Fri, Feb 23, 2018 at 01:53:59PM +0530, Oza Pawandeep wrote: This patch factors out error reporting callbacks, which are currently tightly coupled with AER. Add blank line between paragraphs. DPC should be able to register callbacks and attmept

Re: [PATCH v11 2/7] PCI/AER: factor out error reporting from AER

2018-02-25 Thread poza
On 2018-02-26 11:02, p...@codeaurora.org wrote: On 2018-02-24 05:12, Bjorn Helgaas wrote: On Fri, Feb 23, 2018 at 01:53:59PM +0530, Oza Pawandeep wrote: This patch factors out error reporting callbacks, which are currently tightly coupled with AER. Add blank line between paragraphs. DPC

Re: [PATCH 0/4] Address error and recovery for AER and DPC

2017-12-28 Thread poza
On 2017-12-28 23:04, Keith Busch wrote: On Wed, Dec 27, 2017 at 02:20:18AM -0800, Oza Pawandeep wrote: DPC should enumerate the devices after recovering the link, which is achieved by implementing error_resume callback. Wouldn't that race with the link-up event that pciehp currently handles?

Re: [PATCH v2 0/4] Address error and recovery for AER and DPC

2018-01-02 Thread poza
On 2018-01-03 00:32, Bjorn Helgaas wrote: On Fri, Dec 29, 2017 at 12:54:15PM +0530, Oza Pawandeep wrote: This patch set brings in support for DPC and AER to co-exist and not to race for recovery. The current implementation of AER and error message broadcasting to the EP driver is tightly

Re: [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-08-02 Thread poza
On 2018-08-01 04:17, Bjorn Helgaas wrote: On Thu, Jul 12, 2018 at 08:15:19PM +0530, Bharat Kumar Gogada wrote: Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. This bit is required for forwarding errors reported by EP devices to upstream device. This patch enables SERR# for

Re: [PATCH] PCI/AER: Remove duplicate PCI_EXP_AER_FLAGS definition

2018-08-02 Thread poza
On 2018-08-01 04:20, Bjorn Helgaas wrote: From: Bjorn Helgaas PCI_EXP_AER_FLAGS was defined twice (with identical definitions), once under #ifdef CONFIG_ACPI_APEI, and again at the top level. This looks like my merge error from these commits: fd3362cb73de ("PCI/AER: Squash aerdrv_core.c

Re: [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-08-02 Thread poza
On 2018-08-02 11:53, p...@codeaurora.org wrote: On 2018-08-01 04:17, Bjorn Helgaas wrote: On Thu, Jul 12, 2018 at 08:15:19PM +0530, Bharat Kumar Gogada wrote: Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. This bit is required for forwarding errors reported by EP devices to

Re: [PATCH v2] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-08-09 Thread poza
On 2018-08-09 20:27, Bharat Kumar Gogada wrote: As per Figure 6-3 in PCIe r4.0, sec 6.2.6, ERR_ messages will be forwarded from the secondary interface to the primary interface, if the SERR# Enable bit in the Bridge Control register is set. Currently PCI_BRIDGE_CTL_SERR is being enabled only

Re: [PATCH v3 0/7] Fix issues and cleanup for ERR_FATAL and ERR_NONFATAL

2018-07-18 Thread poza
On 2018-07-19 01:14, Bjorn Helgaas wrote: This is a v3 of Oza's patches [1]. It's available at [2] if you prefer git. v3 changes: - Add pci_aer_clear_fatal_status() to clear ERR_FATAL bits, only called from pcie_do_fatal_recovery(). Moved to first in series to avoid a window where

Re: [PATCH v2 1/6] PCI/AER: Take severity mask into account while clearing error bits

2018-07-18 Thread poza
On 2018-07-18 03:06, Bjorn Helgaas wrote: On Tue, Jul 17, 2018 at 02:03:29PM -0500, Bjorn Helgaas wrote: Hi Oza, Thanks for doing this! On Fri, Jun 22, 2018 at 05:58:09AM -0400, Oza Pawandeep wrote: > pci_cleanup_aer_uncorrect_error_status() is called by different slot_reset > callbacks in

Re: [PATCH V5 3/3] PCI: Mask and unmask hotplug interrupts during reset

2018-07-25 Thread poza
On 2018-07-21 11:37, Sinan Kaya wrote: On 7/20/2018 7:58 PM, Sinan Kaya wrote: We need to figure out how to gracefully return inside hotplug driver if link down happened and there is an error pending. How about adding the following into the hotplug ISR? 1. check if firmware first is disabled

Re: [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-07-23 Thread poza
On 2018-07-18 19:04, Bharat Kumar Gogada wrote: On 2018-07-13 19:25, Bharat Kumar Gogada wrote: >> > Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. >> > This bit is required for forwarding errors reported by EP devices >> > to upstream device. >> > This patch enables SERR# for

[RFC] SERR# handling by Linux

2018-07-23 Thread poza
Hi Bjorn and Keith, This discussion is to extend the idea of follwing patch. [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow PCIe Spec 7.6.2.1.3 Command Register (Offset 04h) SERR# Enable – See Section 7.6.2.1.14. When Set, this bit enables reporting upstream of Non-fatal and Fatal

Re: [PATCH v3 0/7] Fix issues and cleanup for ERR_FATAL and ERR_NONFATAL

2018-07-19 Thread poza
On 2018-07-19 01:14, Bjorn Helgaas wrote: This is a v3 of Oza's patches [1]. It's available at [2] if you prefer git. v3 changes: - Add pci_aer_clear_fatal_status() to clear ERR_FATAL bits, only called from pcie_do_fatal_recovery(). Moved to first in series to avoid a window where

Re: [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-07-14 Thread poza
On 2018-07-13 19:25, Bharat Kumar Gogada wrote: > Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. > This bit is required for forwarding errors reported by EP devices to > upstream device. > This patch enables SERR# for Type-1 PCI device. > > Signed-off-by: Bharat Kumar Gogada

Re: [PATCH v2] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-09-10 Thread poza
On 2018-09-06 01:40, Bjorn Helgaas wrote: On Thu, Aug 09, 2018 at 08:41:27PM +0530, p...@codeaurora.org wrote: On 2018-08-09 20:27, Bharat Kumar Gogada wrote: > As per Figure 6-3 in PCIe r4.0, sec 6.2.6, ERR_ messages > will be forwarded from the secondary interface to the primary interface, >

Re: [PATCH v2 0/6] Fix issues and cleanup for ERR_FATAL and ERR_NONFATAL

2018-07-05 Thread poza
Hi Bjorn, Could you help to review this series ? Regards, Oza. On 2018-06-22 15:28, Oza Pawandeep wrote: These are follow up patches for the series which modifies ERR_FATAL handling. although there were couple of problems existed before which, itis also fixing. patch-1: Fixes the problem

Re: [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-07-12 Thread poza
On 2018-07-12 20:15, Bharat Kumar Gogada wrote: Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. This bit is required for forwarding errors reported by EP devices to upstream device. This patch enables SERR# for Type-1 PCI device. Signed-off-by: Bharat Kumar Gogada ---

Re: [PATCH v3 1/3] PCI/AER: factor out error reporting from AER

2018-01-13 Thread poza
On 2018-01-13 06:27, Bjorn Helgaas wrote: On Mon, Jan 08, 2018 at 01:25:03PM +0530, Oza Pawandeep wrote: This patch factors out error reporting callbacks, which are currently tightly coupled with AER. DPC should be able to call these callbacks when DPC trigger event occurs. Signed-off-by:

Re: [PATCH v5 4/4] PCI/DPC: Enumerate the devices after DPC trigger event

2018-01-18 Thread poza
On 2018-01-19 07:13, Keith Busch wrote: On Thu, Jan 18, 2018 at 11:35:59AM -0500, Sinan Kaya wrote: On 1/18/2018 12:32 AM, p...@codeaurora.org wrote: > On 2018-01-18 08:26, Keith Busch wrote: >> On Wed, Jan 17, 2018 at 08:27:39AM -0800, Sinan Kaya wrote: >>> On 1/17/2018 5:37 AM, Oza Pawandeep

Re: [PATCH v5 3/4] PCI/DPC: Unify and plumb error handling into DPC

2018-01-18 Thread poza
On 2018-01-18 23:33, Sinan Kaya wrote: On 1/18/2018 1:00 PM, p...@codeaurora.org wrote: I think you would put into include/linux/pci.h only if there is an external use of constant outside of drivers/pci directory. Otherwise, you should keep the setting inside one of the header files in

Re: [PATCH v12 3/6] PCI/PORTDRV: Implement generic find service

2018-03-07 Thread poza
On 2018-03-06 19:32, Sinan Kaya wrote: On 2/28/2018 12:04 PM, Oza Pawandeep wrote: +struct pcie_port_service_driver *pcie_port_find_service(struct pci_dev *dev, + u32 service) +{ + struct pcie_port_service_driver *drv = NULL; Remove

Re: [PATCH v12 0/6] Address error and recovery for AER and DPC

2018-03-12 Thread poza
On 2018-03-12 19:55, Keith Busch wrote: On Sun, Mar 11, 2018 at 11:03:58PM -0400, Sinan Kaya wrote: On 3/11/2018 6:03 PM, Bjorn Helgaas wrote: > On Wed, Feb 28, 2018 at 10:34:11PM +0530, Oza Pawandeep wrote: > That difference has been there since the beginning of DPC, so it has > nothing to do

Re: [PATCH v12 0/6] Address error and recovery for AER and DPC

2018-03-12 Thread poza
On 2018-03-12 03:33, Bjorn Helgaas wrote: On Wed, Feb 28, 2018 at 10:34:11PM +0530, Oza Pawandeep wrote: This patch set brings in error handling support for DPC The current implementation of AER and error message broadcasting to the EP driver is tightly coupled and limited to AER service

Re: [PATCH v12 0/6] Address error and recovery for AER and DPC

2018-03-12 Thread poza
On 2018-03-12 20:28, Keith Busch wrote: On Mon, Mar 12, 2018 at 08:16:38PM +0530, p...@codeaurora.org wrote: On 2018-03-12 19:55, Keith Busch wrote: > On Sun, Mar 11, 2018 at 11:03:58PM -0400, Sinan Kaya wrote: > > On 3/11/2018 6:03 PM, Bjorn Helgaas wrote: > > > On Wed, Feb 28, 2018 at

Re: [PATCH] PCI/DPC: Fix INT legacy interrupt in dpc_irq

2018-03-01 Thread poza
On 2018-03-01 21:08, Bjorn Helgaas wrote: Hi Oza, On Wed, Jan 31, 2018 at 09:48:55PM +0530, Oza Pawandeep wrote: Current dpc driver acknowledge the interrupt in deferred work, which works okay since LPI are edge triggered. But when RP does not have MSI support, port service driver falls back

Re: [PATCH] PCI/DPC: Fix INT legacy interrupt in dpc_irq

2018-03-08 Thread poza
On 2018-03-01 21:08, Bjorn Helgaas wrote: Hi Oza, On Wed, Jan 31, 2018 at 09:48:55PM +0530, Oza Pawandeep wrote: Current dpc driver acknowledge the interrupt in deferred work, which works okay since LPI are edge triggered. But when RP does not have MSI support, port service driver falls back

Re: [PATCH v2] PCI/DPC: Fix PCI legacy interrupt acknowledgement

2018-03-15 Thread poza
On 2018-03-15 02:22, Keith Busch wrote: On Wed, Mar 14, 2018 at 09:20:48PM +0530, Oza Pawandeep wrote: Current DPC driver acknowledges the interrupt in deferred work, which works since MSI are edge triggered. But when MSI is disabled (e.g. pci=nomsi boot option) port service driver falls back

Re: [PATCH v13 5/6] PCI: Unify wait for link active into generic PCI

2018-04-12 Thread poza
On 2018-04-10 04:55, Keith Busch wrote: On Mon, Apr 09, 2018 at 10:41:53AM -0400, Oza Pawandeep wrote: +/** + * pcie_wait_for_link - Wait for link till it's active/inactive + * @pdev: Bridge device + * @active: waiting for active or inactive ? + * + * Use this to wait till link becomes active

Re: [PATCH v13 6/6] PCI/DPC: Do not do recovery for hotplug enabled system

2018-04-16 Thread poza
On 2018-04-16 20:16, Sinan Kaya wrote: On 4/15/2018 11:17 PM, Bjorn Helgaas wrote: It doesn't seem right to me that we handle both ERR_NONFATAL and ERR_FATAL events differently if we happen to have DPC support in a switch. Maybe we should consider triggering DPC only on ERR_FATAL? That would

Re: [PATCH v13 0/6] Address error and recovery for AER and DPC

2018-04-16 Thread poza
On 2018-04-16 18:57, Bjorn Helgaas wrote: On Mon, Apr 16, 2018 at 11:33:13AM +0530, p...@codeaurora.org wrote: On 2018-04-16 09:23, Sinan Kaya wrote: > On 4/15/2018 11:16 PM, Bjorn Helgaas wrote: > > On Mon, Apr 09, 2018 at 10:41:48AM -0400, Oza Pawandeep wrote: > > > This patch set brings in

Re: [PATCH v13 6/6] PCI/DPC: Do not do recovery for hotplug enabled system

2018-04-15 Thread poza
On 2018-04-16 08:47, Bjorn Helgaas wrote: On Sat, Apr 14, 2018 at 11:53:17AM -0400, Sinan Kaya wrote: You indicated that you want to unify the AER and DPC behavior. Let's settle on what we want to do one more time. We have been going forth and back on the direction. My thinking is that as

Re: [PATCH v13 0/6] Address error and recovery for AER and DPC

2018-04-16 Thread poza
On 2018-04-16 09:23, Sinan Kaya wrote: On 4/15/2018 11:16 PM, Bjorn Helgaas wrote: On Mon, Apr 09, 2018 at 10:41:48AM -0400, Oza Pawandeep wrote: This patch set brings in error handling support for DPC The current implementation of AER and error message broadcasting to the EP driver is

Re: [PATCH v13 6/6] PCI/DPC: Do not do recovery for hotplug enabled system

2018-04-15 Thread poza
On 2018-04-16 11:03, p...@codeaurora.org wrote: On 2018-04-16 08:47, Bjorn Helgaas wrote: On Sat, Apr 14, 2018 at 11:53:17AM -0400, Sinan Kaya wrote: You indicated that you want to unify the AER and DPC behavior. Let's settle on what we want to do one more time. We have been going forth and

Re: [PATCH v2] PCI/DPC: Fix PCI legacy interrupt acknowledgement

2018-03-28 Thread poza
On 2018-03-15 02:26, Keith Busch wrote: On Wed, Mar 14, 2018 at 02:52:30PM -0600, Keith Busch wrote: Reviewed-by: Keith Busch Whoops, I accidentally truncated my message. My correct tag: Reviewed-by: Keith Busch Hi Bjorn, Can this be merged ? Regards, Oza.

Re: [PATCH v11 5/7] PCI/AER: Unify aer error defines at single space

2018-02-26 Thread poza
On 2018-02-24 21:06, Bjorn Helgaas wrote: On Fri, Feb 23, 2018 at 01:54:02PM +0530, Oza Pawandeep wrote: This patch moves AER error defines to drivers/pci/pci.h. So that it unifies the error repoting codes at single place along with dpc s/repoting/reporting/ s/dpc/DPC/ (in English text)

Re: [PATCH v11 3/7] PCI/ERR: add mutex to synchronize recovery

2018-02-26 Thread poza
On 2018-02-24 05:15, Bjorn Helgaas wrote: On Fri, Feb 23, 2018 at 01:54:00PM +0530, Oza Pawandeep wrote: This patch protects pci_do_recovery with mutex. pcie_do_recovery() Please explain why the mutex is necessary. What bad things happen without the mutex? You named (some) of the other

  1   2   3   >