linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Error assigning BAR 0 to hotplugged device
@ 2014-07-08 19:37 Chuck Tuffli
  2014-07-16 17:19 ` Chuck Tuffli
  0 siblings, 1 reply; 11+ messages in thread
From: Chuck Tuffli @ 2014-07-08 19:37 UTC (permalink / raw)
  To: linux-pci

On a system with a recent Fedora kernel (3.14.9-200.fc20.x86_64), a
hotplugged PCI device is unable to get memory mapped IO:
...
[  183.247377] pcieport 0000:9a:00.0: BAR 15: can't assign mem pref
(size 0x100000)
[  183.247384] pcieport 0000:9b:15.0: BAR 14: can't assign mem (size 0x100000)
[  183.247388] pcieport 0000:9b:15.0: BAR 15: can't assign mem pref
(size 0x100000)
[  183.247394] pci 0000:a5:00.0: BAR 6: can't assign mem pref (size 0x10000)
[  183.247397] pci 0000:a5:00.0: BAR 0: can't assign mem (size 0x4000)

The device is connected to a switch supporting hotplug (i.e. SltCap
includes HotPlug+) and I have added
pci=realloc,hpmemsize=16M
to the kernel boot parameters. This appears to have increased the
prefetchable memory but not the memory mapped IO:

99:00.0 PCI bridge: PLX Technology, Inc. Device 8733 (rev ca) (prog-if
00 [Normal decode])
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Bus: primary=99, secondary=9a, subordinate=a5, sec-latency=0
    I/O behind bridge: 0000d000-0000ffff
    Memory behind bridge: fb100000-fbafffff
    Prefetchable memory behind bridge: 0000381000000000-0000381000ffffff

Should this work or am I missing a step somewhere? TIA.

Full dmesg http://pastebin.com/pZ1zzHS6
Full lspci -vv http://pastebin.com/n57UheAE

--chuck

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-07-17 16:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-08 19:37 Error assigning BAR 0 to hotplugged device Chuck Tuffli
2014-07-16 17:19 ` Chuck Tuffli
2014-07-16 18:54   ` Bjorn Helgaas
2014-07-16 20:55     ` Yinghai Lu
2014-07-16 23:47       ` Yinghai Lu
2014-07-16 23:49         ` Yinghai Lu
2014-07-17  1:00         ` Chuck Tuffli
2014-07-17  2:15           ` Yinghai Lu
2014-07-17 15:08             ` Chuck Tuffli
2014-07-17 16:33               ` Yinghai Lu
2014-07-17 16:47                 ` Chuck Tuffli

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).