Handle Cavium ThunderX2 PCI topology quirk
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest0 of 2 patches 0 repliesNew
Patches in v4 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
| Patch | David Daney |
|---|---|
| Series | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/2] Handle Cavium ThunderX2 PCI topology quirk
Quoted 5 lines · Bjorn Helgaas
[+cc David]
I forgot to mention that I'm also hoping for an ack from David, since he's listed as the maintainer of the ThunderX drivers.
JC is really leading the development of this particular PCI implementation, but I am happy to supply my:
Quoted 75 lines · Jayachandran C
Quoted 60 lines
Hi Bjorn, Alex,
Sending this again (with a trivial fix to author name), please review. Updated summary below:
Here is v4 of the patchset to handle the PCIe topology quirk of Cavium ThunderX2 systems (previously known as Broadcom Vulcan).
The earlier discussions on this can be seen at:
http://www.spinics.net/lists/linux-pci/msg51001.html
https://patchwork.ozlabs.org/patch/582633/ and
https://lists.linuxfoundation.org/pipermail/iommu/2016-June/017681.htmlThe earlier discussion on this patchset ended with a suggestion that it may be possible to fix up this quirk by handling the issue in the function argument of
pci_for_each_dma_alias(). But at that point we did not have the codebase to make the changes since the full ACPI and OF code for SMMU and GIC ITS was not upstream.Now that the changes are upstream, I tried to fix it in both the SMMU and the GIC ITS code based on this suggestion, the changes needed are at:
https://github.com/jchandra-cavm/linux/commits/rid-xlate-fixupThe problems with this approach are:
- of the 14 uses ofpci_for_each_dma_aliasin the function in the kernel tree, I have to fixup 6 callers (which is all but one ofthe callers outside x86)
- 4 of these can be reasonably handled (please see the github repo above), but the calls indrivers/irqchip/irq-gic-v3-its-pci-msi.canddrivers/iommu/iommu.ccannot be reasonably fixed up.
- Even without the 2 above two changes I can get it to work for now. Butpci_for_each_dma_aliasdoes not work as expected on this platform and we have to be aware of that for all future uses of the function.For now, I have ruled out the approach, and I have rebased the earlier patch on to 4.11-rc and submitting again for review. The changes are:
v3->v4:
- new address of authorv2>v3:
- changed device flag name fromPCI_DEV_FLAGS_DMA_ALIAS_ROOTtoPCI_DEV_FLAGS_BRIDGE_XLATE_ROOT
- updated commit message to make the quirk clearer.Let me know your comments and suggestions.
Thanks,
JC.Jayachandran C (2):
PCI: Add device flagPCI_DEV_FLAGS_BRIDGE_XLATE_ROOT
PCI: quirks: Fix ThunderX2 dma alias handlingdrivers/pci/quirks.c | 14 ++++++++++++++ drivers/pci/search.c | 4 ++++ include/linux/pci.h | 2 ++ 3 files changed, 20 insertions(+)Quoted 8 lines
--
2.7.4_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel