From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Richard A Lary <rlary@linux.vnet.ibm.com>
Cc: antonb@au1.ibm.com, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 3/3] [repost] powerpc/eeh: Display eeh error location for bus and device
Date: Fri, 06 May 2011 10:50:09 +1000 [thread overview]
Message-ID: <1304643009.2513.488.camel@pasglop> (raw)
In-Reply-To: <1304642771.2513.487.camel@pasglop>
On Fri, 2011-05-06 at 10:46 +1000, Benjamin Herrenschmidt wrote:
> On Wed, 2011-05-04 at 15:57 -0700, Richard A Lary wrote:
> > From: Richard A Lary <rlary@linux.vnet.ibm.com>
> >
> > 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 <rlary@linux.vnet.ibm.com>
> > ---
>
> Not sure what you're doing but it still doesn't apply for me. I think
> the patch is whitespace damaged. IE. Some spaces have been added at
> the beginning of each line. IE. "context" lines (nor patch lines
> that start with - or +) seem to have -two- spaces at the beginning
> of each line for some reason.
>
> I suspect whatever you're using for email is corrupting patches.
BTW. I've hand applied it this time.
Cheers,
Ben.
> Cheers,
> Ben.
>
> > ---
> > arch/powerpc/platforms/pseries/eeh_driver.c | 22 13 + 9 - 0 !
> > 1 file changed, 13 insertions(+), 9 deletions(-)
> >
> > Index: b/arch/powerpc/platforms/pseries/eeh_driver.c
> > ===================================================================
> > --- a/arch/powerpc/platforms/pseries/eeh_driver.c
> > +++ b/arch/powerpc/platforms/pseries/eeh_driver.c
> > @@ -328,7 +328,7 @@ struct pci_dn * handle_eeh_events (struc
> > struct pci_bus *frozen_bus;
> > int rc = 0;
> > enum pci_ers_result result = PCI_ERS_RESULT_NONE;
> > - const char *location, *pci_str, *drv_str;
> > + const char *location, *pci_str, *drv_str, *bus_pci_str, *bus_drv_str;
> >
> > frozen_dn = find_device_pe(event->dn);
> > if (!frozen_dn) {
> > @@ -364,13 +364,8 @@ struct pci_dn * handle_eeh_events (struc
> > frozen_pdn = PCI_DN(frozen_dn);
> > frozen_pdn->eeh_freeze_count++;
> >
> > - if (frozen_pdn->pcidev) {
> > - pci_str = pci_name (frozen_pdn->pcidev);
> > - drv_str = pcid_name (frozen_pdn->pcidev);
> > - } else {
> > - pci_str = eeh_pci_name(event->dev);
> > - drv_str = pcid_name (event->dev);
> > - }
> > + pci_str = eeh_pci_name(event->dev);
> > + drv_str = pcid_name(event->dev);
> >
> > if (frozen_pdn->eeh_freeze_count > EEH_MAX_ALLOWED_FREEZES)
> > goto excess_failures;
> > @@ -378,8 +373,17 @@ struct pci_dn * handle_eeh_events (struc
> > printk(KERN_WARNING
> > "EEH: This PCI device has failed %d times in the last hour:\n",
> > frozen_pdn->eeh_freeze_count);
> > +
> > + if (frozen_pdn->pcidev) {
> > + bus_pci_str = pci_name(frozen_pdn->pcidev);
> > + bus_drv_str = pcid_name(frozen_pdn->pcidev);
> > + printk(KERN_WARNING
> > + "EEH: Bus location=%s driver=%s pci addr=%s\n",
> > + location, bus_drv_str, bus_pci_str);
> > + }
> > +
> > printk(KERN_WARNING
> > - "EEH: location=%s driver=%s pci addr=%s\n",
> > + "EEH: Device location=%s driver=%s pci addr=%s\n",
> > location, drv_str, pci_str);
> >
> > /* Walk the various device drivers attached to this slot through
>
prev parent reply other threads:[~2011-05-06 0:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 22:57 [PATCH 3/3] [repost] powerpc/eeh: Display eeh error location for bus and device Richard A Lary
2011-05-06 0:46 ` Benjamin Herrenschmidt
2011-05-06 0:50 ` Benjamin Herrenschmidt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1304643009.2513.488.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=antonb@au1.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=rlary@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.