[PATCH 1/2] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING
Casey Leedom
leedom at chelsio.com
Thu May 4 14:01:24 PDT 2017
| From: Alexander Duyck <alexander.duyck at gmail.com>
| Sent: Wednesday, May 3, 2017 9:02 AM
| ...
| It sounds like we are more or less in agreement. My only concern is
| really what we default this to. On x86 I would say we could probably
| default this to disabled for existing platforms since my understanding
| is that relaxed ordering doesn't provide much benefit on what is out
| there right now when performing DMA through the root complex. As far
| as peer-to-peer I would say we should probably look at enabling the
| ability to have Relaxed Ordering enabled for some channels but not
| others. In those cases the hardware needs to be smart enough to allow
| for you to indicate you want it disabled by default for most of your
| DMA channels, and then enabled for the select channels that are
| handling the peer-to-peer traffic.
Yes, I think that we are mostly in agreement. I had just wanted to make
sure that whatever scheme was developed would allow for simultaneously
supporting non-Relaxed Ordering for some PCIe End Points and Relaxed
Ordering for others within the same system. I.e. not simply
enabling/disabling/etc. based solely on System Platform Architecture.
By the way, I've started our QA folks off looking at what things look like
in Linux Virtual Machines under different Hypervisors to see what
information they may provide to the VM in the way of what Root Complex Port
is being used, etc. So far they've got Windows HyperV done and there
there's no PCIe Fabric exposed in any way: just the attached device. I'll
have to see what pci_find_pcie_root_port() returns in that environment.
Maybe NULL?
With your reservations (which I also share), I think that it probably
makes sense to have a per-architecture definition of the "Can I Use Relaxed
Ordering With TLPs Directed At This End Point" predicate, with the default
being "No" for any architecture which doesn't implement the predicate. And
if the specified (struct pci_dev *) End Node is NULL, it ought to return
False for that as well. I can't see any reason to pass in the Source End
Node but I may be missing something.
At this point, this is pretty far outside my level of expertise. I'm
happy to give it a go, but I'd be even happier if someone with a lot more
experience in the PCIe Infrastructure were to want to carry the ball
forward. I'm not super familiar with the Linux Kernel "Rules Of
Engagement", so let me know what my next step should be. Thanks.
Casey
More information about the linux-arm-kernel
mailing list