linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* pci_pcie_cap invalid on AER/EEH enabled PPC?
@ 2011-07-01 15:24 Jon Mason
  2011-07-01 18:30 ` Richard A Lary
  0 siblings, 1 reply; 11+ messages in thread
From: Jon Mason @ 2011-07-01 15:24 UTC (permalink / raw)
  To: linuxppc-dev, linux-pci; +Cc: Richard Lary, James Smart

I recently sent out a number of patches to migrate drivers calling
`pci_find_capability(pdef, PCI_CAP_ID_EXP)` to pci_pcie_cap.  This
function takes uses a PCI-E capability offset that was determined by
calling pci_find_capability during the PCI bus walking.  In response
to one of the patches, James Smart posted:

"The reason is due to an issue on PPC platforms whereby use of
"pdev->is_pcie" and pci_is_pcie() will erroneously fail under some
conditions, but explicit search for the capability struct via
pci_find_capability() is always successful.   I expect this to be due
a shadowing of pci config space in the hal/platform that isn't
sufficiently built up.  We detected this issue while testing AER/EEH,
and are functional only if the pci_find_capability() option is used."

See http://marc.info/?l=linux-scsi&m=130946649427828&w=2 for the whole post.

Based on his description above pci_pcie_cap
andpci_find_capability(pdef, PCI_CAP_ID_EXP) should be functionally
equivalent.  If this is not safe, then the PCI bus walking code is
most likely busted on EEH enabled PPC systems (and that is a BIG
problem).  Can anyone confirm this is still an issue?

Thanks,
Jon

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-07-06  2:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 15:24 pci_pcie_cap invalid on AER/EEH enabled PPC? Jon Mason
2011-07-01 18:30 ` Richard A Lary
2011-07-01 19:02   ` Jon Mason
2011-07-01 20:00     ` Richard A Lary
2011-07-05 15:41       ` Richard A Lary
2011-07-05 16:18         ` Jon Mason
2011-07-05 17:22           ` Richard A Lary
2011-07-05 20:34             ` Richard A Lary
2011-07-06  0:14               ` Richard A Lary
2011-07-06  2:47                 ` Benjamin Herrenschmidt
2011-07-06  2:42         ` Benjamin Herrenschmidt

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).