toggle quoted messageShow quoted text
Ops, hit "send" by mistake earlier
Thanks for jumping in! I think Tonny (who initiated this thread) was further than that. Edwin had indicated the error came from an MSIx access error and had asked for the 'lspci' output to debug this. Tonny provided it here: https://lists.projectacrn.org/g/acrn-users/message/23
. I haven't seen any follow-up after that and that was what I was asking in my mail below (unfortunately, I responded from the web interface and it did not include any of the thread history :()
From: VanCutsem, Geoffroy
Sent: Thursday, September 6, 2018 10:46 PM
Cc: Tzeng, Tonny <tonny.tzeng@...>
Subject: RE: [acrn-users] How to pass through off-chip USB controller
Thanks for jumping in! I think Tonny (who initiated this thread) was further
than that, you suspected
From: acrn-users@... [mailto:acrn-
users@...] On Behalf Of Wu, Binbin
Sent: Thursday, September 6, 2018 3:49 PM
Subject: Re: [acrn-users] How to pass through off-chip USB controller
Resend due to format issue.
If lspci is not found in your clearlinux sos, you can install the tool by:
$ swupd bundle-add sysadmin-basic
The following instruction will take PCI device 'USB Host 00:15.0' as
an example to show the set-up steps.
Hide PCI device in SOS
1) Find out the physical BDF (bus:device.function) for USB Host
00:15.0 USB controller: Intel Corporation Celeron N3350/Pentium
N4200/Atom E3900 Series USB xHCI (rev 0b) ...
2) Find out the numeric PCI ID for USB Host
$ lspci -n
00:15.0 0c03: 8086:5aa8 (rev 0b)
3) Hide the PCI device in SOS via stub driver
Execute the following commands to hide the PCI device "00:15.0" in SOS
echo "8086 5aa8" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:15.0" > /sys/bus/pci/devices/0000:00:15.0/driver/unbind
echo "0000:00:15.0" > /sys/bus/pci/drivers/pci-stub/bind
You could double-check whether the PCI device is hidden successfully
via the following command.
$ cat /sys/bus/pci/devices/0000:00:15.0/uevent
If it is done successfully, the driver will be shown as 'pci-stub'.
root@jiechen-xubuntu:~# cat /sys/bus/pci/devices/0000:00:15.0/uevent
4) Add parameters in the boot-up command for UOS Add the following
parameters in the boot-up command to pass PCI device
0:15.0 to guest @ virtual PCI 0:7.0
You could change '7' to any other number as long as it's not used by
other devices yet.
On 9/6/2018 8:47 PM, Geoffroy Van Cutsem wrote:
Any update on this?