From: Borislav Petkov <bp@alien8.de>
To: "Ortiz, Lance E" <lance.oritz@hp.com>
Cc: "Bruno Prémont" <bonbons@linux-vserver.org>,
LKML <linux-kernel@vger.kernel.org>,
Linux-ACPI <linux-acpi@vger.kernel.org>,
"Len Brown" <lenb@kernel.org>, "Rafael J. Wysocki" <rjw@sisk.pl>,
"Tony Luck" <tony.luck@intel.com>,
"Matthew Garrett" <mjg59@srcf.ucam.org>,
"Dall, Elizabeth J (MCLinux)" <betty.dall@hp.com>
Subject: Re: WARNING at drivers/pci/search.c:214 for 3.9
Date: Mon, 6 May 2013 23:49:13 +0200 [thread overview]
Message-ID: <20130506214913.GE22041@pd.tnic> (raw)
In-Reply-To: <A961433CDFF2F640A2866803152E61F951772648@G9W0715.americas.hpqcorp.net>
On Mon, May 06, 2013 at 09:20:04PM +0000, Ortiz, Lance E wrote:
> Right Boris, looks like we are hitting the WARN_ON(in_interrupt)
> in pci_get_dev_by_id(). We recently started seeing this on our
> test systems when injecting errors.
Ok, I think I have it. That comes from cper_print_pcie(), i.e. your
enhanced PCIe logging in 1d5210008bd3a26daf4b06aed9d6c330dd4c83e2 which
came in 3.9. And since 3.9 is just out now, people are starting to see
the issue.
If you look at the call stack, you land in cper_print_pcie() down
from ghes_proc() which can be called from the polling routine
ghes_poll_func() but also from the interrupt handler ghes_irq_func.
> The only reason we are calling pci_get_domain_bus_and_slot() is to get
> the pci_dev* to pass into cper_print_aer() so we can have the device's
> name to put into the trace event for AER. If we can find another way
> to get the device name for the trace event we could remove this call
> to pci_get_domain_bus_and_slot(). I will continue to look into an
> alternative. If you have any ideas on how to get the device data from
> this context let me know.
Hmm, not sure.
Off the top of my head, maybe add the whole code around:
#ifdef CONFIG_ACPI_APEI_PCIEAER
...
#endif
in cper_print_pcie() into a separate function which is called from a
workqueue right after the interrupt is done.. Or something to that
effect.
> I'm not sure why the pci_get_domain_bus_and_slot() is failing to find
> the PCI device though. We are not hitting that issue. We are just
> seeing the in_interrupt warning.
Well, it could be corrupted error info or such because it used to say
[ 65.782664] {1}[Hardware Error]: device_id: 0000:00:02.3
but he doesn't have a 02.3 device in the lspci output.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
next prev parent reply other threads:[~2013-05-06 21:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-06 14:21 WARNING at drivers/pci/search.c:214 for 3.9 Bruno Prémont
2013-05-06 15:07 ` Borislav Petkov
2013-05-06 15:07 ` Borislav Petkov
2013-05-06 21:20 ` Ortiz, Lance E
2013-05-06 21:20 ` Ortiz, Lance E
2013-05-06 21:49 ` Borislav Petkov [this message]
2013-05-06 22:40 ` Ortiz, Lance E
2013-05-06 22:40 ` Ortiz, Lance E
2013-05-08 17:22 ` Ortiz, Lance E
2013-05-08 17:22 ` Ortiz, Lance E
2013-05-07 6:52 ` Bruno Prémont
2013-05-07 10:38 ` Borislav Petkov
2013-05-07 10:38 ` Borislav Petkov
2013-05-07 13:33 ` Bruno Prémont
2013-05-07 13:33 ` Bruno Prémont
2013-05-07 20:49 ` Borislav Petkov
2013-05-07 20:49 ` Borislav Petkov
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=20130506214913.GE22041@pd.tnic \
--to=bp@alien8.de \
--cc=betty.dall@hp.com \
--cc=bonbons@linux-vserver.org \
--cc=lance.oritz@hp.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=rjw@sisk.pl \
--cc=tony.luck@intel.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.