Skip to content

Commit 6988a17

Browse files
YangLiang3wenlingz
authored andcommitted
DM USB: xHCI: Change the default USB xHCI support to pass through.
So far, the xHCI mediator does not support USB HUB over usb pmapper. But there are some USB touch devices integrated internal USB HUB, then cause such touch models can't be supported. Will consider to re-enable xHCI mediator by default once HUB support related patches get merged in the near future. Signed-off-by: Liang Yang <liang3.yang@intel.com> Reviewed-by: Yu Wang <yu1.wang@intel.com> Reviewed-by: Binbin Wu<binbin.wu@intel.com>
1 parent 1017d91 commit 6988a17

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

devicemodel/samples/apl-mrb/launch_uos.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ fi
4040

4141
#for VT-d device setting
4242
modprobe pci_stub
43+
echo "8086 5aa8" > /sys/bus/pci/drivers/pci-stub/new_id
44+
echo "0000:00:15.0" > /sys/bus/pci/devices/0000:00:15.0/driver/unbind
45+
echo "0000:00:15.0" > /sys/bus/pci/drivers/pci-stub/bind
46+
4347
echo "8086 5aaa" > /sys/bus/pci/drivers/pci-stub/new_id
4448
echo "0000:00:15.1" > /sys/bus/pci/devices/0000:00:15.1/driver/unbind
4549
echo "0000:00:15.1" > /sys/bus/pci/drivers/pci-stub/bind
@@ -109,7 +113,7 @@ acrn-dm -A -m $mem_size -c $2$boot_GVT_option"$GVT_args" -s 0:0,hostbridge -s 1:
109113
-s 8,wdt-i6300esb \
110114
-s 3,virtio-blk$boot_dev_flag,/data/$5/$5.img \
111115
-s 4,virtio-net,$tap $boot_image_option \
112-
-s 7,xhci,1-1:1-2:1-3:2-1:2-2:2-3:cap=apl \
116+
-s 7,passthru,0/15/0 \
113117
-s 9,passthru,0/15/1 \
114118
-s 15,passthru,0/f/0 \
115119
-s 27,passthru,0/1b/0 \
@@ -168,6 +172,10 @@ fi
168172

169173
#for VT-d device setting
170174
modprobe pci_stub
175+
echo "8086 5aa8" > /sys/bus/pci/drivers/pci-stub/new_id
176+
echo "0000:00:15.0" > /sys/bus/pci/devices/0000:00:15.0/driver/unbind
177+
echo "0000:00:15.0" > /sys/bus/pci/drivers/pci-stub/bind
178+
171179
echo "8086 5aaa" > /sys/bus/pci/drivers/pci-stub/new_id
172180
echo "0000:00:15.1" > /sys/bus/pci/devices/0000:00:15.1/driver/unbind
173181
echo "0000:00:15.1" > /sys/bus/pci/drivers/pci-stub/bind
@@ -272,7 +280,7 @@ fi
272280
-l com1,stdio \
273281
-s 9,virtio-net,$tap \
274282
-s 3,virtio-blk$boot_dev_flag,/data/$5/$5.img \
275-
-s 7,xhci,1-1:1-2:1-3:2-1:2-2:2-3:cap=apl \
283+
-s 7,passthru,0/15/0 \
276284
-s 8,passthru,0/15/1 \
277285
-s 13,virtio-rpmb \
278286
-s 10,virtio-hyper_dmabuf \

0 commit comments

Comments
 (0)