From: Jayachandran C <jnair@caviumnetworks.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
Joerg Roedel <joro@8bytes.org>,
"open list:INTEL IOMMU (VT-d)" <iommu@lists.linux-foundation.org>,
Jon Masters <jcm@redhat.com>, Robin Murphy <robin.murphy@arm.com>,
linux-arm <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v5 2/2] PCI: quirks: Fix ThunderX2 dma alias handling
Date: Tue, 25 Apr 2017 13:03:47 +0000 [thread overview]
Message-ID: <20170425130346.GA30542@localhost> (raw)
In-Reply-To: <20170421175705.GB17916@bhelgaas-glaptop.roam.corp.google.com>
On Fri, Apr 21, 2017 at 12:57:05PM -0500, Bjorn Helgaas wrote:
> On Fri, Apr 21, 2017 at 05:05:41PM +0000, Jayachandran C wrote:
> > On Fri, Apr 21, 2017 at 10:48:15AM -0500, Bjorn Helgaas wrote:
> > > On Mon, Apr 17, 2017 at 12:47 PM, Jayachandran C
> > > <jnair@caviumnetworks.com> wrote:
> > > > On Fri, Apr 14, 2017 at 09:00:06PM -0500, Bjorn Helgaas wrote:
>
> > > >> Could you collect "lspci -vv" output from this system? I'd like to
> > > >> archive that as background for this IOMMU issue and the ASPM tweaks I
> > > >> suspect we'll have to do. I *wish* we had more information about that
> > > >> VIA thing, because I suspect we could get rid of it if we had more
> > > >> details.
> > > >
> > > > The full logs are slightly large, so I have kept them at:
> > > > https://github.com/jchandra-cavm/thunderx2/blob/master/logs/
> > > > The lspci -vv output is lspci-vv.txt and lspci -tvn output is lspci-tvn.txt
> > > >
> > > > The output is from 2 socket system, the cards are not on the first slot
> > > > like the example above, so the bus and device numbers are different.
> > >
> > > Can somebody with this system collect the "lspci -xxxx" output as well?
> > >
> > > I'm making some lspci changes to handle the PCI-to-PCIe bridge
> > > correctly, and I can use the "lspci -xxxx" output to create an lspci
> > > test case.
> >
> > [Sorry was AFK for a few days]
> >
> > I have updated the above directory with the log. Also tested your next branch
> > and it works fine on ThunderX2.
>
> Thanks!
>
> With regard to my lspci changes, they add "Slot-" here:
>
> 01:0a.0 PCI bridge: Broadcom Corporation Device 9039
> ...
> - Capabilities: [40] Express (v2) PCI/PCI-X to PCI-Express Bridge, MSI 00
> + Capabilities: [40] Express (v2) PCI/PCI-X to PCI-Express Bridge (Slot-), MSI 00
>
> for all your PCI-to-PCIe bridges. I assume the "Slot-" is correct, i.e.,
> the link is not connected to a slot, right? This comes from the "Slot
> Implemented" bit in the PCIe Capabilities Register.
Yes, Slot- should be correct.
> I did notice that all the Root Port devices claim to *not* be connected to
> slots, which doesn't seem right. For example,
>
> 12:00.0 PCI bridge: Broadcom Corporation Device 9084
> Bus: primary=12, secondary=13, subordinate=14, sec-latency=0
> Capabilities: [ac] Express (v2) Root Port (Slot-), MSI 00
>
> 13:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection
>
> It seems strange because the 12:00.0 Root Port looks like it probably
> *does* lead to a slot where the NIC is plugged in. Or is that NIC really
> soldered down?
>
> But I assume there are *some* PCIe slots, so at some of those Root Ports
> should advertise "Slot+" (which by itself does not imply hotplug support,
> if that's the concern).
The Root Ports are connected to a slot, so I am not sure why the slot implemented
bit is not set. There seems to be nothing useful in the slot capabilites, so this
may be ok for now. I have reported this to the hardware team.
Thanks for the review and the comments,
JC.
next prev parent reply other threads:[~2017-04-25 13:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-13 20:30 [PATCH v5 0/2] Handle Cavium ThunderX2 PCI topology quirk Jayachandran C
2017-04-13 20:30 ` [PATCH v5 1/2] PCI: Add device flag PCI_DEV_FLAGS_BRIDGE_XLATE_ROOT Jayachandran C
2017-04-13 20:30 ` [PATCH v5 2/2] PCI: quirks: Fix ThunderX2 dma alias handling Jayachandran C
2017-04-14 0:19 ` Bjorn Helgaas
2017-04-14 21:06 ` Jayachandran C
2017-04-15 2:00 ` Bjorn Helgaas
2017-04-17 17:47 ` Jayachandran C
2017-04-17 19:51 ` Bjorn Helgaas
2017-04-21 15:48 ` Bjorn Helgaas
2017-04-21 17:05 ` Jayachandran C
2017-04-21 17:57 ` Bjorn Helgaas
2017-04-25 13:03 ` Jayachandran C [this message]
2017-04-25 13:37 ` Bjorn Helgaas
2017-04-19 23:38 ` Jon Masters
2017-04-20 0:25 ` Jon Masters
2017-04-20 13:20 ` Bjorn Helgaas
2017-04-20 15:12 ` Jon Masters
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=20170425130346.GA30542@localhost \
--to=jnair@caviumnetworks.com \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=iommu@lists.linux-foundation.org \
--cc=jcm@redhat.com \
--cc=joro@8bytes.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pci@vger.kernel.org \
--cc=robin.murphy@arm.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 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).