[Q4.0] sys-usb fails to start with xHCI controller

170 views
Skip to first unread message

glu...@gmail.com

unread,
Apr 25, 2018, 8:53:08 PM4/25/18
to qubes-users
The USB mouse worked on the Lenovo Flex 3-1570 during the installation process, but once installed, sys-usb (based on fedora-26) fails to start.

When I tried starting manually the following error was displayed:
ERROR: Start failed: internal error: Unale to reset PCI device 0000:00:14.0: internal error: libxenlight failed to create new domain 'sys-usb', see /var/log/libvirt/libxl/libxl-driver.log for details

/var/log/libvirt/libxl
2018-04-25 15:08:20.363+0000: libxl: libxl_pci.c:1176:libxl__device_pci_reset: The kernel doesn't support reset from sysfs for PCI device 0000:00:14.0
2018-04-25 15:08:20.363+0000: libxl: libxl_pci.c:1095:do_pci_add: Error: xc_physdev_map_pirq irq=-2147483648: Invalid argument
2018-04-25 15:08:20.363+0000: libxl: libxl_pci.c:1338:libxl__add_pcidevs: libxl_device_pci_add failed: -3
2018-04-25 15:08:20.363+0000: libxl: libxl_create.c:1512:domcreate_attach_devices: unable to add pci devices

There are two USB controllers (Intel Wildcat - xHCI and EHCI) but only xHCI seems to be an issue since if I remove it sys-usb starts up, however; the USB ports do not work.
Info from lspci -v -s 00:14
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03) (prog-if 30 [XHCI])
Subsystem: Lenovo Device 3820
Flags: medium devsel, IRQ -2147483648
Memory at d4500000 (64-bit, non-prefetchable) [disabled] [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable- Count=1/8 Maskable- 64bit+
Kernel driver in use: pciback
Kernel modules: xhci_pci

Based on recommendations for other, similar issues, I tried using PV instead of HVM, but it still wouldn't start.

Any help/suggests would be appreciated! -Thanks!

awokd

unread,
Apr 26, 2018, 1:01:30 AM4/26/18
to glu...@gmail.com, qubes-users
On Thu, April 26, 2018 12:53 am, glu...@gmail.com wrote:

> libxl_pci.c:1176:libxl__device_pci_reset: The kernel doesn't support
> reset from sysfs for PCI device 0000:00:14.0 2018-04-25 15:08:20.363+0000:
> libxl: libxl_pci.c:1095:do_pci_add: Error: xc_physdev_map_pirq
> irq=-2147483648: Invalid argument

Try setting it to not require strict reset.

glu...@gmail.com

unread,
Apr 26, 2018, 10:26:53 AM4/26/18
to qubes-users
On Wednesday, April 25, 2018 at 10:01:30 PM UTC-7, awokd wrote:

> On Thu, April 26, 2018 12:53 am, Fox Gluv wrote:
>
> > libxl_pci.c:1176:libxl__device_pci_reset: The kernel doesn't support
> > reset from sysfs for PCI device 0000:00:14.0 2018-04-25 15:08:20.363+0000:
> > libxl: libxl_pci.c:1095:do_pci_add: Error: xc_physdev_map_pirq
> > irq=-2147483648: Invalid argument
>
> Try setting it to not require strict reset.

I think it was already set to no-strict-reset. Here's the qvm-pci entry:
dom0:00_14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller sys-usb (no-strict-reset=True)

To be sure I went into Qube Manager, sys-usb->Qubes Setting->Devices and used the "Configure strict reset for PCI devices" button to set it on 00:14.0. It still did not start up afterwards, and gave the same error message.

awokd

unread,
Apr 27, 2018, 12:03:27 PM4/27/18
to glu...@gmail.com, qubes-users
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI
Controller
(rev 03) (prog-if 30 [XHCI])
Subsystem: Lenovo Device 3820
Flags: medium devsel, IRQ -2147483648

The IRQ looks very odd. Check your "xl dmesg" and "sudo journalctl -b" for
errors relating to this device. Maybe check your UEFI config to see if you
can set it to USB 2.0 mode?


Reply all
Reply to author
Forward
0 new messages