Skip to content

ARM: tegra: Add PCIe device tree support

Thierry Reding linux-arm-kernel linux-devicetree linux-pci linux-tegra 12 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 10/100 of 10 patches 0 repliesNew
  2. v3 posting 9/100 of 10 patches 0 repliesSuperseded
  3. v3 posting 8/100 of 10 patches 0 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v3 posting 7/100 of 10 patches0 repliesSuperseded
v3 posting 6/100 of 10 patches0 repliesSuperseded
v3 posting 5/100 of 10 patches0 repliesSuperseded
v3 posting 4/100 of 10 patches0 repliesSuperseded
v3 posting 3/100 of 10 patches0 repliesSuperseded
v3 posting 2/100 of 10 patches0 repliesSuperseded
v3 posting 1/1010 patches0 repliesSuperseded
v210 patches0 repliesSuperseded
v10 of 11 patches0 repliesSuperseded

Patches in v3 posting 10/10 No applies recorded yet

None of the 10 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support
Quoted 31 lines · Bjorn Helgaas
Quoted 13 lines · Russell King - ARM Linux
Quoted 5 lines · Stephen Warren

I guess it's a pretty basic premise of the current PCI code that all the PCI scanning happens well before any device drivers are registered, which in turn means that device_add() doesn't trigger the device's probe() until much later, after all the fixups and resource assignments are done?

Are you saying that the PCI layer is again screwed up after all my hard work several years ago to ensure that PCI devices are properly setup _before_ they're made available to the PCI drivers then? That was around the time I was looking at Cardbus stuff, ensuring that that worked with the same guarantees.

Quoted 5 lines

Not amused.

What is wrong with the "probe devices, apply fixups, setup resources, apply more fixups, publish" process that it's had to be yet again broken?

It seems that there are some bugs in the PCI layer, no doubt introduced after all your hard work. We'll do our best to fix them.

The particular issue of pci_fixup_irqs() has been on my list for a while, and we talked about it at the recent PCI mini-summit. It's clearly broken that we do this with for_each_pci_dev() once at boot-time because that does nothing for hot-added devices. It's also broken that it is called after device_add() because the core shouldn't touch the device after it's available to drivers.

Quoted 3 lines

This should get fixed reasonably soon, probably not in v3.6, but hopefully in v3.7. It's not completely trivial because many arches have the same problem, and we need to fix all of them.

Has there been any progress on this? I've read the PCI mini summit notes that you posted a while ago but it doesn't mention the pci_fixup_irqs() issue. Was there some decision as to how this should be solved? If I understand correctly this should solve the issue that Stephen has been seeing with bogus interrupt assignments, so we'll need this to fix PCIe on Tegra. Is there anything I can do to help move this forward?

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120918/8c0a26ef/attachment.sig>