All of lore.kernel.org
 help / color / mirror / Atom feed
From: keith.busch@intel.com (Busch, Keith)
Subject: Help with NVMe Driver on Altera SoCs
Date: Tue, 20 Oct 2015 14:17:44 +0000	[thread overview]
Message-ID: <20151020141744.GA18345@localhost.localdomain> (raw)
In-Reply-To: <20B8CF9DC7757148B9D6420301E14D590AE5E744@SJ-ITEXCH02.altera.priv.altera.com>

On Tue, Oct 20, 2015@02:02:02PM +0000, Chris Martin wrote:
> Kernel messages (output from 'dmesg | grep -i pci'):
> [    0.198390] PCI host bridge /pcie at 0x010000000 ranges:
> [    0.198541] altera-pcie d0000000.pcie: PCI host bridge to bus 0000:00
> [    0.198553] pci_bus 0000:00: root bus resource [bus 00-ff]
> [    0.198565] pci_bus 0000:00: root bus resource [mem 0xd0000000-0xdfffffff] (bus address [0x00000000-0x0fffffff])
> [    0.198721] pci 0000:00:00.0: [1172:e000] type 01 class 0x060400
> [    0.199111] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
> [    0.199605] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
> [    0.200005] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [    0.200709] pci 0000:01:00.0: [11f8:f117] type 00 class 0x010802
> [    0.201271] pci 0000:01:00.0: reg 0x10: [mem 0xd0000000-0xd0003fff 64bit]
> [    0.201734] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x3fffffff 64bit pref]
> [    0.202827] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
> [    0.203196] pci 0000:00:00.0: BAR 8: no space for [mem size 0x60000000]
> [    0.203205] pci 0000:00:00.0: BAR 8: failed to assign [mem size 0x60000000]
> [    0.203215] pci 0000:01:00.0: BAR 4: no space for [mem size 0x40000000 64bit pref]
> [    0.203222] pci 0000:01:00.0: BAR 4: failed to assign [mem size 0x40000000 64bit pref]
> [    0.203229] pci 0000:01:00.0: BAR 0: no space for [mem size 0x00004000 64bit]
> [    0.203236] pci 0000:01:00.0: BAR 0: failed to assign [mem size 0x00004000 64 bit]
> [    0.203243] pci 0000:00:00.0: PCI bridge to [bus 01]
> 
> 
> Output from 'insmod nvme.ko':
> [  321.835507] nvme 0000:01:00.0: Device failed to resume
> 
> Would the PCIe driver failing to assign BARs cause the NVMe driver to fail?

Yes, this says that there were no memory resources available to assign
to BAR0, which is the controller registers. If the driver is unable to
remap the controller registers, it won't be able to drive it. It returns
-ENOMEM since the error is a memory resource.

  reply	other threads:[~2015-10-20 14:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20 14:02 Help with NVMe Driver on Altera SoCs Chris Martin
2015-10-20 14:17 ` Busch, Keith [this message]
2015-10-20 14:38   ` Chris Martin

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=20151020141744.GA18345@localhost.localdomain \
    --to=keith.busch@intel.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 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.