* [NET-NEXT PATCH] ixgbe: Implement PCIe AER support @ 2008-12-02 0:41 Jeff Kirsher 2008-12-02 1:47 ` Stephen Hemminger 0 siblings, 1 reply; 11+ messages in thread From: Jeff Kirsher @ 2008-12-02 0:41 UTC (permalink / raw) To: davem; +Cc: netdev, jeff, Peter P Waskiewicz Jr, Jeff Kirsher From: PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com> This patch implements the PCIe Advanced Error Reporting callbacks in ixgbe. The 82598 hardware supports AER, so we enable it. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> --- drivers/net/ixgbe/ixgbe.h | 1 + drivers/net/ixgbe/ixgbe_main.c | 26 ++++++++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index 6cbf26e..e112008 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h @@ -32,6 +32,7 @@ #include <linux/pci.h> #include <linux/netdevice.h> #include <linux/inet_lro.h> +#include <linux/aer.h> #include "ixgbe_type.h" #include "ixgbe_common.h" diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index e014a73..e9cb430 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -4021,6 +4021,8 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, goto err_pci_reg; } + pci_enable_pcie_error_reporting(pdev); + pci_set_master(pdev); pci_save_state(pdev); @@ -4296,6 +4298,8 @@ static void __devexit ixgbe_remove(struct pci_dev *pdev) free_netdev(netdev); + pci_disable_pcie_error_reporting(pdev); + pci_disable_device(pdev); } @@ -4333,21 +4337,27 @@ static pci_ers_result_t ixgbe_io_slot_reset(struct pci_dev *pdev) { struct net_device *netdev = pci_get_drvdata(pdev); struct ixgbe_adapter *adapter = netdev_priv(netdev); + pci_ers_result_t result; if (pci_enable_device(pdev)) { DPRINTK(PROBE, ERR, "Cannot re-enable PCI device after reset.\n"); - return PCI_ERS_RESULT_DISCONNECT; - } - pci_set_master(pdev); - pci_restore_state(pdev); + result = PCI_ERS_RESULT_DISCONNECT; + } else { + pci_set_master(pdev); + pci_restore_state(pdev); - pci_enable_wake(pdev, PCI_D3hot, 0); - pci_enable_wake(pdev, PCI_D3cold, 0); + pci_enable_wake(pdev, PCI_D3hot, 0); + pci_enable_wake(pdev, PCI_D3cold, 0); - ixgbe_reset(adapter); + ixgbe_reset(adapter); + + result = PCI_ERS_RESULT_RECOVERED; + } + + pci_cleanup_aer_uncorrect_error_status(pdev); - return PCI_ERS_RESULT_RECOVERED; + return result; } /** ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [NET-NEXT PATCH] ixgbe: Implement PCIe AER support 2008-12-02 0:41 [NET-NEXT PATCH] ixgbe: Implement PCIe AER support Jeff Kirsher @ 2008-12-02 1:47 ` Stephen Hemminger 2008-12-02 7:25 ` David Miller 2008-12-02 8:19 ` Waskiewicz Jr, Peter P 0 siblings, 2 replies; 11+ messages in thread From: Stephen Hemminger @ 2008-12-02 1:47 UTC (permalink / raw) To: Jeff Kirsher Cc: davem, netdev, jeff, Peter P Waskiewicz Jr, Jeff Kirsher, linux-pci On Mon, 01 Dec 2008 16:41:15 -0800 Jeff Kirsher <jeffrey.t.kirsher@intel.com> wrote: > From: PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com> > > This patch implements the PCIe Advanced Error Reporting callbacks in > ixgbe. The 82598 hardware supports AER, so we enable it. > > Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> > --- Once again: pcie-aer is not checking for mmconfig working! If you turn it on, you may get screaming errors. pci_enable_pcie_error_reporting should be checking for pci_read/pci_write config errors and does not. Your driver should be checking for pci_enable_pcie_error_reporting failing. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [NET-NEXT PATCH] ixgbe: Implement PCIe AER support 2008-12-02 1:47 ` Stephen Hemminger @ 2008-12-02 7:25 ` David Miller 2008-12-02 17:23 ` [PATCH] pciaer: report config read/write errors Stephen Hemminger 2008-12-09 7:13 ` [NET-NEXT PATCH] ixgbe: Implement PCIe AER support Waskiewicz Jr, Peter P 2008-12-02 8:19 ` Waskiewicz Jr, Peter P 1 sibling, 2 replies; 11+ messages in thread From: David Miller @ 2008-12-02 7:25 UTC (permalink / raw) To: shemminger Cc: jeffrey.t.kirsher, netdev, jeff, peter.p.waskiewicz.jr, linux-pci From: Stephen Hemminger <shemminger@vyatta.com> Date: Mon, 1 Dec 2008 17:47:54 -0800 > pci_enable_pcie_error_reporting should be checking for pci_read/pci_write > config errors and does not. > > Your driver should be checking for pci_enable_pcie_error_reporting failing. Agreed. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] pciaer: report config read/write errors 2008-12-02 7:25 ` David Miller @ 2008-12-02 17:23 ` Stephen Hemminger 2008-12-02 18:41 ` Waskiewicz Jr, Peter P 2008-12-02 19:04 ` Loic Prylli 2008-12-09 7:13 ` [NET-NEXT PATCH] ixgbe: Implement PCIe AER support Waskiewicz Jr, Peter P 1 sibling, 2 replies; 11+ messages in thread From: Stephen Hemminger @ 2008-12-02 17:23 UTC (permalink / raw) To: David Miller Cc: jeffrey.t.kirsher, netdev, jeff, peter.p.waskiewicz.jr, linux-pci This patch does more error checking in the Advanced Error Reporting code. Since AER needs to access PCI registers > 255, it won't work without MMCONFIG and other quirks may stop it as well. The code must check this by looking at return values from pci_read/write_config_XXX calls. I don't have any hardware that uses AER routines but discovered this in earlier versions of the sky2 driver that tried to use pci AER routines. Ended up just giving up and using other ways to access PCI config space on sky2 since there were too many platform glitches. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> --- a/drivers/pci/pcie/aer/aerdrv_core.c 2008-12-02 07:56:08.000000000 -0800 +++ b/drivers/pci/pcie/aer/aerdrv_core.c 2008-12-02 09:07:32.000000000 -0800 @@ -31,80 +31,92 @@ module_param(forceload, bool, 0); int pci_enable_pcie_error_reporting(struct pci_dev *dev) { u16 reg16 = 0; - int pos; + int pos, err; + u32 status; pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); if (!pos) return -EIO; + err = pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); + if (err) + return err; + pos = pci_find_capability(dev, PCI_CAP_ID_EXP); if (!pos) return -EIO; - pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); + err = pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); + if (err) + return err; + reg16 = reg16 | PCI_EXP_DEVCTL_CERE | PCI_EXP_DEVCTL_NFERE | PCI_EXP_DEVCTL_FERE | PCI_EXP_DEVCTL_URRE; - pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, - reg16); - return 0; + return pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, reg16); } int pci_disable_pcie_error_reporting(struct pci_dev *dev) { u16 reg16 = 0; - int pos; + int pos, err; pos = pci_find_capability(dev, PCI_CAP_ID_EXP); if (!pos) return -EIO; - pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); + err = pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); + if (err) + return err; + reg16 = reg16 & ~(PCI_EXP_DEVCTL_CERE | PCI_EXP_DEVCTL_NFERE | PCI_EXP_DEVCTL_FERE | PCI_EXP_DEVCTL_URRE); - pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, - reg16); - return 0; + return pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, reg16); } int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) { - int pos; + int pos, err; u32 status, mask; pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); if (!pos) return -EIO; - pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); - pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &mask); + err = pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); + if (err) + return err; + + err = pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &mask); + if (err) + return err; + if (dev->error_state == pci_channel_io_normal) status &= ~mask; /* Clear corresponding nonfatal bits */ else status &= mask; /* Clear corresponding fatal bits */ - pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, status); - - return 0; + return pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, status); } #if 0 int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) { - int pos; + int pos, err; u32 status; pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); if (!pos) return -EIO; - pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &status); - pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, status); + err = pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &status); + if (err) + return err; - return 0; + return pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, status); } #endif /* 0 */ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] pciaer: report config read/write errors 2008-12-02 17:23 ` [PATCH] pciaer: report config read/write errors Stephen Hemminger @ 2008-12-02 18:41 ` Waskiewicz Jr, Peter P 2008-12-02 19:04 ` Loic Prylli 1 sibling, 0 replies; 11+ messages in thread From: Waskiewicz Jr, Peter P @ 2008-12-02 18:41 UTC (permalink / raw) To: Stephen Hemminger Cc: David Miller, Kirsher, Jeffrey T, netdev@vger.kernel.org, jeff@garzik.org, Waskiewicz Jr, Peter P, linux-pci@vger.kernel.org On Tue, 2 Dec 2008, Stephen Hemminger wrote: > This patch does more error checking in the Advanced Error Reporting code. > Since AER needs to access PCI registers > 255, it won't work without MMCONFIG > and other quirks may stop it as well. The code must check this by looking > at return values from pci_read/write_config_XXX calls. > > I don't have any hardware that uses AER routines but discovered this > in earlier versions of the sky2 driver that tried to use > pci AER routines. Ended up just giving up and using other ways to access PCI > config space on sky2 since there were too many platform glitches. > > > Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> > > > --- a/drivers/pci/pcie/aer/aerdrv_core.c 2008-12-02 07:56:08.000000000 -0800 > +++ b/drivers/pci/pcie/aer/aerdrv_core.c 2008-12-02 09:07:32.000000000 -0800 > @@ -31,80 +31,92 @@ module_param(forceload, bool, 0); > int pci_enable_pcie_error_reporting(struct pci_dev *dev) > { > u16 reg16 = 0; > - int pos; > + int pos, err; > + u32 status; > > pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); > if (!pos) > return -EIO; > > + err = pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); > + if (err) > + return err; > + > pos = pci_find_capability(dev, PCI_CAP_ID_EXP); > if (!pos) > return -EIO; > > - pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); > + err = pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); > + if (err) > + return err; > + > reg16 = reg16 | > PCI_EXP_DEVCTL_CERE | > PCI_EXP_DEVCTL_NFERE | > PCI_EXP_DEVCTL_FERE | > PCI_EXP_DEVCTL_URRE; > - pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, > - reg16); > - return 0; > + return pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, reg16); > } > > int pci_disable_pcie_error_reporting(struct pci_dev *dev) > { > u16 reg16 = 0; > - int pos; > + int pos, err; > > pos = pci_find_capability(dev, PCI_CAP_ID_EXP); > if (!pos) > return -EIO; > > - pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); > + err = pci_read_config_word(dev, pos+PCI_EXP_DEVCTL, ®16); > + if (err) > + return err; > + > reg16 = reg16 & ~(PCI_EXP_DEVCTL_CERE | > PCI_EXP_DEVCTL_NFERE | > PCI_EXP_DEVCTL_FERE | > PCI_EXP_DEVCTL_URRE); > - pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, > - reg16); > - return 0; > + return pci_write_config_word(dev, pos+PCI_EXP_DEVCTL, reg16); > } > > int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) > { > - int pos; > + int pos, err; > u32 status, mask; > > pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); > if (!pos) > return -EIO; > > - pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); > - pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &mask); > + err = pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); > + if (err) > + return err; > + > + err = pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &mask); > + if (err) > + return err; > + > if (dev->error_state == pci_channel_io_normal) > status &= ~mask; /* Clear corresponding nonfatal bits */ > else > status &= mask; /* Clear corresponding fatal bits */ > - pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, status); > - > - return 0; > + return pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, status); > } > > #if 0 > int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) > { > - int pos; > + int pos, err; > u32 status; > > pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); > if (!pos) > return -EIO; > > - pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &status); > - pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, status); > + err = pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &status); > + if (err) > + return err; > > - return 0; > + return pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, status); > } > #endif /* 0 */ This looks fine to me. Thanks very much Stephen. -PJ Waskiewicz ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] pciaer: report config read/write errors 2008-12-02 17:23 ` [PATCH] pciaer: report config read/write errors Stephen Hemminger 2008-12-02 18:41 ` Waskiewicz Jr, Peter P @ 2008-12-02 19:04 ` Loic Prylli 2008-12-02 19:44 ` Stephen Hemminger 1 sibling, 1 reply; 11+ messages in thread From: Loic Prylli @ 2008-12-02 19:04 UTC (permalink / raw) To: Stephen Hemminger Cc: David Miller, jeffrey.t.kirsher, netdev, jeff, peter.p.waskiewicz.jr, linux-pci On 12/02/2008 12:23 PM, Stephen Hemminger wrote: > This patch does more error checking in the Advanced Error Reporting code. > Since AER needs to access PCI registers > 255, it won't work without MMCONFIG > and other quirks may stop it as well. The code must check this by looking > at return values from pci_read/write_config_XXX calls. > > I don't have any hardware that uses AER routines but discovered this > in earlier versions of the sky2 driver that tried to use > pci AER routines. Ended up just giving up and using other ways to access PCI > config space on sky2 since there were too many platform glitches. > When experimenting with sky2 driver, was pci_find_ext_capability() returning non-zero although further ext-space accesses were failing? > > Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> > > > --- a/drivers/pci/pcie/aer/aerdrv_core.c 2008-12-02 07:56:08.000000000 -0800 > +++ b/drivers/pci/pcie/aer/aerdrv_core.c 2008-12-02 09:07:32.000000000 -0800 > @@ -31,80 +31,92 @@ module_param(forceload, bool, 0); > int pci_enable_pcie_error_reporting(struct pci_dev *dev) > { > u16 reg16 = 0; > - int pos; > + int pos, err; > + u32 status; > > pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); > if (!pos) > return -EIO; > > + err = pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); > + if (err) > + return err; > + > > For legacy-conf-space, most kernel code assumes success without checking. For ext-conf-space, wouldn't it be convenient to be able to make the same assumption when pci_find_ext_capability() returns a valid offset? The patch looks good to me, but I am just asking whether there is a known case where pcie_find_ext_capability() returns a valid offset, although that offset might turn out unusable (it might be worth investigating pci_find_ext_capability() then). Loic ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] pciaer: report config read/write errors 2008-12-02 19:04 ` Loic Prylli @ 2008-12-02 19:44 ` Stephen Hemminger 2008-12-02 20:14 ` Loic Prylli 0 siblings, 1 reply; 11+ messages in thread From: Stephen Hemminger @ 2008-12-02 19:44 UTC (permalink / raw) To: Loic Prylli Cc: David Miller, jeffrey.t.kirsher, netdev, jeff, peter.p.waskiewicz.jr, linux-pci On Tue, 02 Dec 2008 14:04:15 -0500 Loic Prylli <loic@myri.com> wrote: > On 12/02/2008 12:23 PM, Stephen Hemminger wrote: > > This patch does more error checking in the Advanced Error Reporting code. > > Since AER needs to access PCI registers > 255, it won't work without MMCONFIG > > and other quirks may stop it as well. The code must check this by looking > > at return values from pci_read/write_config_XXX calls. > > > > I don't have any hardware that uses AER routines but discovered this > > in earlier versions of the sky2 driver that tried to use > > pci AER routines. Ended up just giving up and using other ways to access PCI > > config space on sky2 since there were too many platform glitches. > > > > > > > When experimenting with sky2 driver, was pci_find_ext_capability() > returning non-zero although further ext-space accesses were failing? > No pci_find_ext_capability would succeed but all access to registers >= 256 would fail if MMCONFIG failed. Since the device often asserts stray errors on boot, if the error could not be cleared, the driver would get stuck when IRQ was enabled. P.s: you can look back into LKML for Linus discussion about why MMCONFIG is broken anyway. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] pciaer: report config read/write errors 2008-12-02 19:44 ` Stephen Hemminger @ 2008-12-02 20:14 ` Loic Prylli 2008-12-02 21:41 ` Stephen Hemminger 0 siblings, 1 reply; 11+ messages in thread From: Loic Prylli @ 2008-12-02 20:14 UTC (permalink / raw) To: Stephen Hemminger Cc: David Miller, jeffrey.t.kirsher, netdev, jeff, peter.p.waskiewicz.jr, linux-pci On 12/02/2008 02:44 PM, Stephen Hemminger wrote: > pci_find_ext_capability would succeed but all access to registers >= 256 > would fail if MMCONFIG failed. Your sentence seems self-contradicting to me. pci_find_ext_capability() (!= pci_find_capability()) only tries to access registers >= 256, so I don't see how it would succeed if *all* those accesses are failing. > P.s: you can look back into LKML for Linus discussion about why MMCONFIG > is broken anyway. > I was an active participant in one of those discussions (although it is possible I missed a later one), so I am quite aware about the limitations of MMCONFIG. But pci_find_ext_capability() looked to me a good filter to check about those limitations(). This is not just about pciaer, for instance, it might be that a lot of the SR-IOV code submitted recently assumes that if the corresponding extended-capability can be detected, little checking needs to be done afterwards. Loic ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] pciaer: report config read/write errors 2008-12-02 20:14 ` Loic Prylli @ 2008-12-02 21:41 ` Stephen Hemminger 0 siblings, 0 replies; 11+ messages in thread From: Stephen Hemminger @ 2008-12-02 21:41 UTC (permalink / raw) To: Loic Prylli Cc: David Miller, jeffrey.t.kirsher, netdev, jeff, peter.p.waskiewicz.jr, linux-pci On Tue, 02 Dec 2008 15:14:35 -0500 Loic Prylli <loic@myri.com> wrote: > On 12/02/2008 02:44 PM, Stephen Hemminger wrote: > > pci_find_ext_capability would succeed but all access to registers >= 256 > > would fail if MMCONFIG failed. > > > > Your sentence seems self-contradicting to me. pci_find_ext_capability() > (!= pci_find_capability()) only tries to access registers >= 256, so I > don't see how it would succeed if *all* those accesses are failing. > > > > P.s: you can look back into LKML for Linus discussion about why MMCONFIG > > is broken anyway. > > > > > > I was an active participant in one of those discussions (although it is > possible I missed a later one), so I am quite aware about the > limitations of MMCONFIG. But pci_find_ext_capability() looked to me a > good filter to check about those limitations(). > > This is not just about pciaer, for instance, it might be that a lot of > the SR-IOV code submitted recently assumes that if the corresponding > extended-capability can be detected, little checking needs to be done > afterwards. I misremembered the issue. The problem in sky2 was related but not the same. pci_find_ext_capability would return 0, but the device driver needed to be able to clear errors (or IRQ would scream). So since the existing extended capability code wouldn't work on all platforms, another alternative had to be found. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [NET-NEXT PATCH] ixgbe: Implement PCIe AER support 2008-12-02 7:25 ` David Miller 2008-12-02 17:23 ` [PATCH] pciaer: report config read/write errors Stephen Hemminger @ 2008-12-09 7:13 ` Waskiewicz Jr, Peter P 1 sibling, 0 replies; 11+ messages in thread From: Waskiewicz Jr, Peter P @ 2008-12-09 7:13 UTC (permalink / raw) To: David Miller Cc: shemminger@vyatta.com, Kirsher, Jeffrey T, netdev@vger.kernel.org, jeff@garzik.org, linux-pci@vger.kernel.org On Mon, 1 Dec 2008, David Miller wrote: > From: Stephen Hemminger <shemminger@vyatta.com> > Date: Mon, 1 Dec 2008 17:47:54 -0800 > > > pci_enable_pcie_error_reporting should be checking for pci_read/pci_write > > config errors and does not. > > > > Your driver should be checking for pci_enable_pcie_error_reporting failing. > > Agreed. I've finally been able to get back to this. I've looked at any other prior use of the PCIe AER routines, and the only driver using it to date is the QLogic QLA2xxx driver in SCSI-land. I've also looked at the return codes, with and without Stephen's recent AER patch, and there's not much the driver can do. If it's catching the errors, the best I can do is print an error message, then continue along. I've put that patch together, and will have it sent along shortly. If there's something additional I'm missing here, please let me know. Cheers, -PJ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [NET-NEXT PATCH] ixgbe: Implement PCIe AER support 2008-12-02 1:47 ` Stephen Hemminger 2008-12-02 7:25 ` David Miller @ 2008-12-02 8:19 ` Waskiewicz Jr, Peter P 1 sibling, 0 replies; 11+ messages in thread From: Waskiewicz Jr, Peter P @ 2008-12-02 8:19 UTC (permalink / raw) To: Stephen Hemminger Cc: Kirsher, Jeffrey T, davem@davemloft.net, netdev@vger.kernel.org, jeff@garzik.org, Waskiewicz Jr, Peter P, linux-pci@vger.kernel.org On Mon, 1 Dec 2008, Stephen Hemminger wrote: > On Mon, 01 Dec 2008 16:41:15 -0800 > Jeff Kirsher <jeffrey.t.kirsher@intel.com> wrote: > > > From: PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com> > > > > This patch implements the PCIe Advanced Error Reporting callbacks in > > ixgbe. The 82598 hardware supports AER, so we enable it. > > > > Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> > > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> > > --- > > Once again: pcie-aer is not checking for mmconfig working! > If you turn it on, you may get screaming errors. > > pci_enable_pcie_error_reporting should be checking for pci_read/pci_write > config errors and does not. > > Your driver should be checking for pci_enable_pcie_error_reporting failing. I'll respin and have a new patch sent for this. I just finally saw the igb thread, so my apologies for missing this earlier. Cheers, -PJ ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-12-09 7:13 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-12-02 0:41 [NET-NEXT PATCH] ixgbe: Implement PCIe AER support Jeff Kirsher 2008-12-02 1:47 ` Stephen Hemminger 2008-12-02 7:25 ` David Miller 2008-12-02 17:23 ` [PATCH] pciaer: report config read/write errors Stephen Hemminger 2008-12-02 18:41 ` Waskiewicz Jr, Peter P 2008-12-02 19:04 ` Loic Prylli 2008-12-02 19:44 ` Stephen Hemminger 2008-12-02 20:14 ` Loic Prylli 2008-12-02 21:41 ` Stephen Hemminger 2008-12-09 7:13 ` [NET-NEXT PATCH] ixgbe: Implement PCIe AER support Waskiewicz Jr, Peter P 2008-12-02 8:19 ` Waskiewicz Jr, Peter P
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).