[XEN][ARM64] PVUSB device attach causing DomU hang

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[XEN][ARM64] PVUSB device attach causing DomU hang

Vikram K
Hi,

We are using xen-4.8 stable version. Our board has only USB-3.0.
We trying to achieve PVUSB. Added following in the DomU config file.
Applied the attached patch for USB front-end driver. Using qemu as back-end.

domu.cfg
usbctrl=['version=2, ports=8', ]
usb=['1.6, controller=0, port=1']

Attached the USB device(mouse and keyboard) using below commands.
 xl usbdev-attach domU hostbus=1 hostaddr=6 controller=0 port=1 (Mouse)
 xl usbdev-attach debian hostbus=1 hostaddr=7 controller=0 port=1 (Keyboard)

After executing above getting below logs.
[    2.986905] synth uevent: /devices/virtual/input/input0: failed to send uevent
[    2.986919] input input0: uevent: failed to send synthetic uevent
[   25.689516] usb 1-1: new low-speed USB device number 2 using vusb
[   25.689664] CPU: 0 PID: 282 Comm: kworker/0:2 Not tainted 4.14.0-rc7-linaro-hikey960 #54
[   25.689683] Hardware name: XENVM-4.8 (DT)
[   25.689706] Workqueue: usb_hub_wq hub_event
[   25.689721] task: ffff80001cd69c00 task.stack: ffff000009540000
[   25.689743] PC is at xenhcd_gnttab_map.isra.3+0xc/0x18
[   25.689762] LR is at xenhcd_do_request+0xe8/0x330
[   25.689778] pc : [<ffff00000883b0fc>] lr : [<ffff00000883b1f0>] pstate: 200001c5
[   25.689800] sp : ffff000009543950
[   25.689811] x29: ffff000009543950 x28: ffff80000f8d1200
[   25.689831] x27: 0000000000000001 x26: 0000000000000001
[   25.689847] x25: 0000000000000000 x24: ffff80001da7a000
[   25.689864] x23: 0000000000000000 x22: 0000000000000000
[   25.689880] x21: ffff80001c70b1b8 x20: 0000000000000000
[   25.689900] x19: ffff80001db64228 x18: 0000000000000010
[   25.689918] x17: 0000ffffaf33bb60 x16: 0000000000000020
[   25.689935] x15: ffffffffffffffff x14: ffff00008919537f
[   25.689954] x13: ffff00000919538d x12: ffff000009069df0
[   25.689973] x11: ffff00000858afc8 x10: ffff000009543890
[   25.689990] x9 : ffff00000914a000 x8 : ffff80001c70b1e0
[   25.690009] x7 : 0000000000000000 x6 : 0000000000000040
[   25.690027] x5 : 0000000000000001 x4 : 00000000000000ce
[   25.690043] x3 : ffff80001d941000 x2 : 0000000000000017
[   25.690059] x1 : 0000000000000001 x0 : 0000000000000040
[   25.690078] Process kworker/0:2 (pid: 282, stack limit = 0xffff000009540000)
[   25.690100] Call trace:
[   25.690110] Exception stack(0xffff000009543810 to 0xffff000009543950)
[   25.690130] 3800:                                   0000000000000040 0000000000000001
[   25.690151] 3820: 0000000000000017 ffff80001d941000 00000000000000ce 0000000000000001
[   25.690172] 3840: 0000000000000040 0000000000000000 ffff80001c70b1e0 ffff00000914a000
[   25.690194] 3860: ffff000009543890 ffff00000858afc8 ffff000009069df0 ffff00000919538d
[   25.690218] 3880: ffff00008919537f ffffffffffffffff 0000000000000020 0000ffffaf33bb60
[   25.690243] 38a0: 0000000000000010 ffff80001db64228 0000000000000000 ffff80001c70b1b8
[   25.690267] 38c0: 0000000000000000 0000000000000000 ffff80001da7a000 0000000000000000
[   25.690288] 38e0: 0000000000000001 0000000000000001 ffff80000f8d1200 ffff000009543950
[   25.690312] 3900: ffff00000883b1f0 ffff000009543950 ffff00000883b0fc 00000000200001c5
[   25.690333] 3920: ffff0000095439a0 ffff0000081154c8 ffffffffffffffff ffff00000883b1dc
[   25.690354] 3940: ffff000009543950 ffff00000883b0fc
[   25.690371] [<ffff00000883b0fc>] xenhcd_gnttab_map.isra.3+0xc/0x18
[   25.690391] [<ffff00000883b7ac>] xenhcd_urb_enqueue+0xe4/0x138
[   25.690411] [<ffff0000087d42d8>] usb_hcd_submit_urb+0xa0/0x920
[   25.690431] [<ffff0000087d5c04>] usb_submit_urb+0x31c/0x518
[   25.690447] [<ffff0000087d6444>] usb_start_wait_urb+0x54/0xd8
[   25.690466] [<ffff0000087d656c>] usb_control_msg+0xa4/0xf0
[   25.690482] [<ffff0000087cd244>] hub_port_init+0x1ec/0xa28
[   25.690497] [<ffff0000087d09c4>] hub_event+0x7a4/0xf78
[   25.690517] [<ffff0000080dedc4>] process_one_work+0x1cc/0x338
[   25.690535] [<ffff0000080def74>] worker_thread+0x44/0x470
[   25.690553] [<ffff0000080e5134>] kthread+0x12c/0x130
[   25.690571] [<ffff000008084b58>] ret_from_fork+0x10/0x18

Able to see that front-end is able attached these devices.
But the problem is DomU hangs.




--
Thanks & Regards
Vikram KS

This message contains confidential information and is intended only for the individual(s) named. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this mail and attached file/s is strictly prohibited. Please notify the sender immediately and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users

0001-usb-Add-Xen-pvUSB-protocol-description.patch (12K) Download Attachment
0002-usb-Introduce-Xen-pvUSB-frontend-xen-hcd.patch (60K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [XEN][ARM64] PVUSB device attach causing DomU hang

Vikram K
Hello,

Please provide inputs on how to debug this issue.
Is this due to some wrong configuration provide in the config file?

This message contains confidential information and is intended only for the individual(s) named. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this mail and attached file/s is strictly prohibited. Please notify the sender immediately and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users