VHUB didn't work on AST2500

xiuzhi 1450335857 at qq.com
Thu Oct 25 12:39:04 AEDT 2018


Hi Ben,
  I open the CONFIG_USB_GADGET_DEBUG . 
and input the following keys by order:
';''Enter' :work good,can see ';' on host screen
'a''Enter' :error,see anything on screen
'b''Enter' :error,see anything on screen
'1''Enter' :good
'2''Enter' :good
'3''Enter' :good
'4''Enter' :good
'5''Enter'  :error deadlock
The log is:
[   78.820671] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: request() failed for pin 67
[   78.828274] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: pin-67 (1e780000.gpio:347) status -1
[   80.698564] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: request() failed for pin 67
[   80.706166] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: pin-67 (1e780000.gpio:347) status -
[   94.447816] udc 1e6a0000.usb-vhub:p1: registering UDC driver [obmc_hid]
[   94.447909] configfs-gadget gadget: adding 'hid'/15e5a204 to config 'c'/70dd0747
[   94.447940] aspeed_vhub 1e6a0000.usb-vhub: port1 Match EP type 3
[   94.447958] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocating gen EP 0 for addr 1
[   94.448474] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocated epn#0 for port EP1
[   94.448505] aspeed_vhub 1e6a0000.usb-vhub: port1 Match EP type 3
[   94.448522] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocating gen EP 1 for addr 2
[   94.448780] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocated epn#1 for port EP2
[   94.449270] aspeed_vhub 1e6a0000.usb-vhub: port1 start
[   94.449297] aspeed_vhub 1e6a0000.usb-vhub: port1 pullup(1)
[   94.449317] aspeed_vhub 1e6a0000.usb-vhub: port1 port 1 status 0000 -> 0001 (C=1)
[  100.158377] aspeed_vhub 1e6a0000.usb-vhub: USB bus resume
[  100.158400] configfs-gadget gadget: resume
[  100.158415] aspeed_vhub 1e6a0000.usb-vhub: USB bus reset
[  100.301048] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 00/05/0002/0000/0000 [out] st=0
[  100.301081] aspeed_vhub 1e6a0000.usb-vhub: USB status=0b100000 speed=high
[  100.301096] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SET_ADDRESS: Got address 2
[  100.322061] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0100/0000/0008 [in] st=0
[  100.322090] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:1)
[  100.326625] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0100/0000/0012 [in] st=0
[  100.326656] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:1)
[  100.331359] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0200/0000/0008 [in] st=0
[  100.331392] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:2)
[  100.335194] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0200/0000/0019 [in] st=0
[  100.335221] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:2)
[  100.343939] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0300/0000/0002 [in] st=0
[  100.344272] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0300/0000/0004 [in] st=0
[  100.344647] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 00/09/0001/0000/0000 [out] st=0
[  100.378145] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/06/2900/0000/0002 [in] st=0
[  100.378178] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubDescriptor(0)
[  100.378195] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:41)
[  100.378522] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/06/2900/0000/0009 [in] st=0
[  100.378546] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubDescriptor(0)
[  100.378560] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:41)
[  100.382665] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0001/0000 [out] st=0
[  100.382697] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(1,8)

[  100.382896] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0002/0000 [out] st=0
[  100.382922] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(2,8)
[  100.383148] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0003/0000 [out] st=0
[  100.383173] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(3,8)
[  100.383396] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0004/0000 [out] st=0
[  100.383422] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(4,8)
[  100.383643] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0005/0000 [out] st=0
[  100.383668] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(5,8)
[  100.403844] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/00/0000/0000/0004 [in] st=0
[  100.403871] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubStatus
[  100.549225] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0
[  100.549257] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)
[  100.549275] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0  port status=0101 change=0001
[  100.549651] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/01/0010/0001/0000 [out] st=0
[  100.549681] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 ClearPortFeature(1,16)
[  100.664592] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0004/0001/0000 [out] st=0
[  100.664625] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(1,4)
[  100.664639] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 Port reset !
[  100.664658] aspeed_vhub 1e6a0000.usb-vhub: port1 port 1 status 0001 -> 0011 (C=0)
[  100.664672] aspeed_vhub 1e6a0000.usb-vhub: port1 Reset at unknown speed of disabled device, enabling.
[  100.664689] aspeed_vhub 1e6a0000.usb-vhub: port1 port 1 status 0011 -> 0403 (C=1)
[  100.684840] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0
[  100.684867] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)
[  100.684885] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0  port status=0503 change=0012
[  100.685276] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/01/0011/0001/0000 [out] st=0
[  100.685306] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 ClearPortFeature(1,17)
[  100.685518] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/01/0014/0001/0000 [out] st=0
[  100.685544] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 ClearPortFeature(1,20)
[  100.698539] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 00/05/0003/0000/0000 [out] st=0
[  100.698568] aspeed_vhub 1e6a0000.usb-vhub: port1 fist packet, captured speed 3
[  100.698585] aspeed_vhub 1e6a0000.usb-vhub: port1 SET_ADDRESS: Got address 3
[  100.714314] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0
[  100.714339] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)
[  100.714354] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0  port status=0503 change=0000
[  100.729165] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0100/0000/0008 [in] st=0
[  100.729195] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.729227] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.733627] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0100/0000/0012 [in] st=0

[  100.733658] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.733690] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.738363] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0200/0000/0008 [in] st=0
[  100.738391] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.738427] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.742195] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0200/0000/0029 [in] st=0
[  100.742225] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.742262] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.750944] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0300/0000/0002 [in] st=0
[  100.750972] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.751006] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.751400] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0300/0000/0004 [in] st=0
[  100.751425] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.751455] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.751777] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 00/09/0001/0000/0000 [out] st=0
[  100.751803] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.751821] configfs-gadget gadget: high-speed config #1: c
[  100.757460] aspeed_vhub 1e6a0000.usb-vhub: port1:EP1 Enabling [in] intr num 1 maxpacket=11
[  100.757502] aspeed_vhub 1e6a0000.usb-vhub: port1:EP2 Enabling [out] intr num 2 maxpacket=11
[  100.757549] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.820566] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/08/0000/0000/0001 [in] st=0
[  100.820594] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.820621] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.821026] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet a1/03/0000/0000/0001 [in] st=0
[  100.821050] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.821076] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.821397] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 21/0b/0000/0000/0000 [out] st=0
[  100.821422] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.821451] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0
[  100.821643] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 21/09/0200/0000/0001 [out] st=0
[  100.821666] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.821685] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned -95
[  100.821697] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 stalling
[  100.821735] aspeed_vhub 1e6a0000.usb-vhub: status direction mismatch
[  100.913006] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 21/09/0200/0000/0001 [out] st=0
[  100.913034] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...
[  100.913056] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned -95
[  100.913067] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 stalling
[  100.946228] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0

[  100.946257] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)
[  100.946274] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0  port status=0503 change=0000
[  100.946645] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/00/0000/0000/0004 [in] st=0
[  100.946672] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubStatus
[  399.741059] aspeed_vhub 1e6a0000.usb-vhub: USB bus suspend
[  399.741081] configfs-gadget gadget: suspend

Best,
Xiuzhi


------------------ Original ------------------
From:  "Benjamin Herrenschmidt";<benh at kernel.crashing.org>;
Send time: Thursday, Oct 25, 2018 6:42 AM
To: "Joel Stanley"<joel at jms.id.au>; "xiuzhi"<1450335857 at qq.com>; 
Cc: "a.filippov"<a.filippov at yadro.com>; "OpenBMC Maillist"<openbmc at lists.ozlabs.org>; 
Subject:  Re: VHUB didn't work on AST2500



On Wed, 2018-10-24 at 17:02 +1030, Joel Stanley wrote:
> On Wed, 24 Oct 2018 at 17:00, xiuzhi <1450335857 at qq.com> wrote:
> >  I am porting obmc-ikvm to my hardware platform. The host screen can be seen by vncviewer , but the mouse and keyboard didn't work on AST2500
> > . Only the keys ';' , 'Enter',  '1','2','3','4' work. others keyinput will deadlock the host screen .
> > The kernel error log:
> > [   99.326586] configfs-gadget gadget: high-speed config #1: c
> > [   99.403704] aspeed_vhub 1e6a0000.usb-vhub: status direction mismatch
> > [   99.492831] aspeed_vhub 1e6a0000.usb-vhub: status direction mismatch
> > The kernel version is : video-dev5,
> > commit 2acbc35adcfe15971b701770e1105276a18da9f7
> > 
> > Who can give me some suggestions to  debug it?
> 
> Ben, do you have any advice?

I need to know a bit more. What is used as a gadget driver on the BMC ?

I would probably need to reproduce with some added traces to the driver
to figure out what's going on.

One first thing to try would be a run with CONFIG_USB_GADGET_DEBUG
along with some indication of what actions happen corresponding to what
part of the log (ie, press key 'a' etc...).

Cheers,
Ben.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20181025/dd225fa3/attachment-0001.html>


More information about the openbmc mailing list