[Xen-devel] [XEN][ARM64] PVUSB device attach causing DomU hang

2018-11-01 Thread 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: 80001cd69c00 task.stack: 0954
[   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 : [] lr : [] pstate:
21c5
[   25.689800] sp : 09543950
[   25.689811] x29: 09543950 x28: 8f8d1200
[   25.689831] x27: 0001 x26: 0001
[   25.689847] x25:  x24: 80001da7a000
[   25.689864] x23:  x22: 
[   25.689880] x21: 80001c70b1b8 x20: 
[   25.689900] x19: 80001db64228 x18: 0010
[   25.689918] x17: af33bb60 x16: 0020
[   25.689935] x15:  x14: 8919537f
[   25.689954] x13: 0919538d x12: 09069df0
[   25.689973] x11: 0858afc8 x10: 09543890
[   25.689990] x9 : 0914a000 x8 : 80001c70b1e0
[   25.690009] x7 :  x6 : 0040
[   25.690027] x5 : 0001 x4 : 00ce
[   25.690043] x3 : 80001d941000 x2 : 0017
[   25.690059] x1 : 0001 x0 : 0040
[   25.690078] Process kworker/0:2 (pid: 282, stack limit =
0x0954)
[   25.690100] Call trace:
[   25.690110] Exception stack(0x09543810 to 0x09543950)
[   25.690130] 3800:   0040
0001
[   25.690151] 3820: 0017 80001d941000 00ce
0001
[   25.690172] 3840: 0040  80001c70b1e0
0914a000
[   25.690194] 3860: 09543890 0858afc8 09069df0
0919538d
[   25.690218] 3880: 8919537f  0020
af33bb60
[   25.690243] 38a0: 0010 80001db64228 
80001c70b1b8
[   25.690267] 38c0:   80001da7a000

[   25.690288] 38e0: 0001 0001 8f8d1200
09543950
[   25.690312] 3900: 0883b1f0 09543950 0883b0fc
21c5
[   25.690333] 3920: 095439a0 081154c8 
0883b1dc
[   25.690354] 3940: 09543950 0883b0fc
[   25.690371] [] xenhcd_gnttab_map.isra.3+0xc/0x18
[   25.690391] [] xenhcd_urb_enqueue+0xe4/0x138
[   25.690411] [] usb_hcd_submit_urb+0xa0/0x920
[   25.690431] [] usb_submit_urb+0x31c/0x518
[   25.690447] [] usb_start_wait_urb+0x54/0xd8
[   25.690466] [] usb_control_msg+0xa4/0xf0
[   25.690482] [] hub_port_init+0x1ec/0xa28
[   25.690497] [] hub_event+0x7a4/0xf78
[   25.690517] [] process_one_work+0x1cc/0x338
[   25.690535] [] worker_thread+0x44/0x470
[   25.690553] [] kthread+0x12c/0x130
[   25.690571] [] 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.
From e8a71989a8188f9f420b58e23d723d6818e794d7 Mon Sep 17 00:00:00 2001
From: Juergen Gross 
Date: Mon, 13 Jun 2016 15:53:57 +0200
Subject: [PATCH 1/2] usb: Add Xen pvUSB protocol description
Patch-Mainline: Not yet, work in progress
References: fate#315712

Add the definition of pvUSB protocol used between the pvUSB frontend in
a Xen domU and the pvUSB backend i

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

2018-11-03 Thread 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-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel