pci problem - can't claim BAR 0 / address conflict with System RAM

908 views
Skip to first unread message

Keld Norman

unread,
Mar 31, 2016, 3:54:34 PM3/31/16
to qubes-users
Started getting this today and lost my USB dedicated to my Standalone vm:

ERROR in output from running "dmesg" >   can't claim BAR 0 [mem 0xb4a20000-0xb4a2ffff 64bit]: address conflict with System RAM

Any one here have an idea of what could have caused that problem ?

I installed FruityWifi and plugged in some usb netcards, and after booting the usb pci assignment to the VM failed..

GOOD BOOT:

[    1.823639] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.823643] usb usb1: Product: Dummy host controller
[    1.823646] usb usb1: Manufacturer: Linux 4.1.13-9.pvops.qubes.x86_64 dummy_hcd
[    1.823649] usb usb1: SerialNumber: dummy_hcd.0
[    1.823743] hub 1-0:1.0: USB hub found
[    1.823763] hub 1-0:1.0: 1 port detected
[    1.823788] systemd[1]: Starting udev Wait for Complete Device Initialization...
[    1.824997] systemd[1]: Starting Create Static Device Nodes in /dev...
[    1.825804] systemd[1]: Starting Syslog Socket.
[    1.825880] systemd[1]: Listening on Syslog Socket.
[    1.825922] systemd[1]: Starting Journal Service...
[    1.826759] systemd[1]: Started Journal Service.
[    1.846856] systemd-udevd[216]: starting version 215
[    1.879363] input: PC Speaker as /devices/platform/pcspkr/input/input0
[    1.882349] alg: No test for crc32 (crc32-pclmul)
[    1.885658] Error: Driver 'pcspkr' is already registered, aborting...
[    1.887460] intel_rapl: Found RAPL domain package
[    1.887473] intel_rapl: Found RAPL domain dram
[    1.891408] xen_netfront: Initialising Xen virtual ethernet driver
[    1.910142] Adding 1048572k swap on /dev/xvdc1.  Priority:-1 extents:1 across:1048572k SSFS
[    2.018426] EXT4-fs (dm-0): re-mounted. Opts: (null)
[    4.873247] systemd-journald[207]: Received request to flush runtime journal from PID 1
[    5.064350] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
[    5.082180] EXT4-fs (xvdb): mounted filesystem with ordered data mode. Opts: discard
[    5.096465] Bluetooth: Core ver 2.20
[    5.096490] NET: Registered protocol family 31
[    5.096494] Bluetooth: HCI device and connection manager initialized
[    5.096502] Bluetooth: HCI socket layer initialized
[    5.223404] Bluetooth: L2CAP socket layer initialized
[    5.223413] Bluetooth: SCO socket layer initialized

BAD BOOT:

[    2.019183] xen_netfront: Initialising Xen virtual ethernet driver
[    2.021176] pcifront pci-0: claiming resource 0000:00:00.0/0
[    2.021186] pci 0000:00:00.0: can't claim BAR 0 [mem 0xb4a20000-0xb4a2ffff 64bit]: address conflict with System RAM [mem 0x00100000-0x1f9ffffff]
[    2.021195] pcifront pci-0: Could not claim resource 0000:00:00.0/0! Device offline. Try using e820_host=1 in the guest config.
[    2.021264] pci 0000:00:00.0: can't enable device: BAR 0 [mem size 0x00010000 64bit] not assigned
[    2.021271] pci 0000:00:00.0: Can't enable PCI device, BIOS handoff failed.
[    2.024076] intel_rapl: Found RAPL domain package
[    2.024092] intel_rapl: Found RAPL domain dram
[    2.024259] Error: Driver 'pcspkr' is already registered, aborting...
[    2.025897] Adding 1048572k swap on /dev/xvdc1.  Priority:-1 extents:1 across:1048572k SSFS
[    2.051371] EXT4-fs (dm-0): re-mounted. Opts: (null)
[    2.100395] xhci_hcd 0000:00:00.0: can't enable device: BAR 0 [mem size 0x00010000 64bit] not assigned <------------------------------ HERE !!
[    5.153081] systemd-journald[211]: Received request to flush runtime journal from PID 1
[    5.354463] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
[    5.369902] EXT4-fs (xvdb): mounted filesystem with ordered data mode. Opts: discard
[    5.384349] Bluetooth: Core ver 2.20
[    5.384372] NET: Registered protocol family 31
[    5.384376] Bluetooth: HCI device and connection manager initialized
[    5.506630] Bluetooth: HCI socket layer initialized
[    5.506633] Bluetooth: L2CAP socket layer initialized
[    5.506641] Bluetooth: SCO socket layer initialized

Regards Keld



Andrew

unread,
Jun 26, 2016, 1:07:53 PM6/26/16
to qubes...@googlegroups.com
Keld Norman:
Hey,

I encountered this problem, too. Turns out there's some sort of bug in
Xen: http://lists.xen.org/archives/html/xen-devel/2014-04/msg02553.html.
Basically, you might have problems assigning a PCI device to a regular
PV AppVM if you assign more than 3G of memory to it.

Trimming the memory allocated to 3G solved this problem for me.

Hope this helps,
Andrew

Marek Marczykowski-Górecki

unread,
Jun 26, 2016, 2:23:48 PM6/26/16
to Andrew, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Starting with Qubes 3.2, there is also possibility to enable e820_host
option mentioned in that error message. And actually it is enabled by
default for any VM with PCI device attached - so it should just work.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXcB2tAAoJENuP0xzK19csmc8H/2bhPntVfs/qn+25x8XVmmV1
UrTYDsqdt6khVAbXYFCpVyZJv+ova3t2vIOxSnvaWH6YNh1WDTDEuoWJF2j2p948
iRHLGfIZdLGm5I/rG9ZH5ocZQQFsiFSiTcnU1siqBEaseJJldV/aLqLJgjPPLkeY
+sgwSVSTbzYQdPareSAOeQIGAp2t2mNw16sM+1/h1E/ynPZW4Rqhzh+zPHHL/YZN
wm5pqaZZR1hzh85O1l24UEEJdExPds/k3HsuRKN70c8AU2iq1K6n6qsMHTcudixA
PSYOdVIu8hIYs8s0RImK1Yod0Jdp2l6txUED1CLB/Sky0OZLADHpaa00upriM/A=
=YgH7
-----END PGP SIGNATURE-----

Andrew

unread,
Jun 26, 2016, 2:40:12 PM6/26/16
to qubes...@googlegroups.com
Marek Marczykowski-Górecki:
Good to know. Thanks, Marek!

Andrew
Reply all
Reply to author
Forward
0 new messages