All of lore.kernel.org
 help / color / mirror / Atom feed
From: Murali Karicheri <m-karicheri2@ti.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Alex Williamson <alex.williamson@redhat.com>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>
Subject: Re: PCIe issue with NIC card that has 64bit BARs
Date: Thu, 12 May 2016 10:00:55 -0400	[thread overview]
Message-ID: <57348C97.5000002@ti.com> (raw)
In-Reply-To: <20160511225515.GE28812@localhost>

Bjorn,

On 05/11/2016 06:55 PM, Bjorn Helgaas wrote:
> On Wed, May 11, 2016 at 05:46:49PM -0400, Murali Karicheri wrote:
>> Bjorn, Alex,

>> 500200D0:00000000 00000000 00000000 00000000
>> 500200E0:00000000 00000000 00000000 00000000
>> 500200F0:00000000 00000000 00000000 00000000
>>
>> Corresponding PCI boot log
>>
>> [    2.310465] PCI host bridge /soc/pcie@21800000 ranges:
>> [    2.316146]   No bus range found for /soc/pcie@21800000, using [bus 00-ff]
>> [    2.323302]    IO 0x23250000..0x23253fff -> 0x00000000
>> [    2.328455]   MEM 0x50000000..0x5fffffff -> 0x50000000
>> [    2.335406] keystone-pcie 21801000.pcie: PCI host bridge to bus 0000:00
>> [    2.342206] pci_bus 0000:00: root bus resource [bus 00-ff]
>> [    2.347691] pci_bus 0000:00: root bus resource [io  0x0000-0x3fff]
>> [    2.353937] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
>> [    2.361483] PCI: bus0: Fast back to back transfers disabled
>> [    2.368357] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
>> [    2.378560] PCI: bus1: Fast back to back transfers disabled
>> [    2.384366] pci 0000:00:00.0: BAR 8: assigned [mem 0x50000000-0x500fffff]
>> [    2.391314] pci 0000:00:00.0: BAR 9: assigned [mem 0x50100000-0x501fffff pref]
>> [    2.398534] pci 0000:00:00.0: BAR 7: assigned [io  0x1000-0x1fff]
>> [    2.404699] pci 0000:01:00.0: BAR 0: assigned [mem 0x50000000-0x5001ffff]
>> [    2.411555] pci 0000:01:00.0: BAR 1: assigned [mem 0x50020000-0x5003ffff]
>> [    2.418348] pci 0000:01:00.0: BAR 6: assigned [mem 0x50100000-0x5011ffff pref]
>> [    2.425591] pci 0000:01:00.0: BAR 2: assigned [io  0x1000-0x101f]
>> [    2.431712] pci 0000:00:00.0: PCI bridge to [bus 01]
>> [    2.436675] pci 0000:00:00.0:   bridge window [io  0x1000-0x1fff]
>> [    2.442788] pci 0000:00:00.0:   bridge window [mem 0x50000000-0x500fffff]
>> [    2.449572] pci 0000:00:00.0:   bridge window [mem 0x50100000-0x501fffff pref]
>> [    2.457313] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
>> [    2.464412] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
>>
>>
>> Any idea where to start to debug this issue? Suggestion?
> 
> If I understand correctly, K2G is the platform where these NICs don't
> work. 

Yes.

> Do *any* PCI devices work correctly on that platform? 

No. I am trying to test a SATA controller and see if that works.
Marvel SATA controller works fine using Keystone PCIe controller, but this
is on K2E EVM and this shares the same PCIe controller hardware (designware).

> Maybe
> there's some host controller configuration problem related to the MMIO
> aperture?
> 
> If you have an analyzer, I guess you could look for your Read Requests
> and Completions, but I doubt you'd learn anything.  I assume the NICs
> are sending data over the link correctly, and something is happening
> to the data between the device and the CPU.
> 
> I would suspect something in the host controller.  Most controllers
> would give you 0xffffffff back instead of zeros if there's a problem,
> but maybe yours is special.
I will work with our hardware folks to see if they can suggest something
to debug.

Thanks for you response.

Murali
> 
> Bjorn
> 


-- 
Murali Karicheri
Linux Kernel, Keystone

  reply	other threads:[~2016-05-12 14:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-09 19:32 PCIe issue with NIC card that has 64bit BARs Murali Karicheri
2016-05-09 20:34 ` Bjorn Helgaas
2016-05-09 21:02   ` Murali Karicheri
2016-05-09 21:23     ` Alex Williamson
2016-05-09 21:31       ` Alex Williamson
2016-05-09 21:38       ` Murali Karicheri
2016-05-09 23:12         ` Alex Williamson
2016-05-10 13:56           ` Murali Karicheri
2016-05-11 21:46           ` Murali Karicheri
2016-05-11 22:55             ` Bjorn Helgaas
2016-05-12 14:00               ` Murali Karicheri [this message]
2016-05-16 16:30               ` Murali Karicheri
2016-05-09 21:33     ` Bjorn Helgaas
2016-05-09 21:49       ` Murali Karicheri

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=57348C97.5000002@ti.com \
    --to=m-karicheri2@ti.com \
    --cc=alex.williamson@redhat.com \
    --cc=bhelgaas@google.com \
    --cc=helgaas@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.