<div>Hi Ben,</div><div> I use vncviewer , xtightvncviewer 1.3.9-6.4ubuntu1.</div><div>And I also tested the ikvm by webui vnc(<u style="color: rgb(0, 0, 128); font-family: "Liberation Serif", serif; font-size: 12pt;"><span style="font-variant-numeric: normal; font-variant-east-asian: normal;"><font color="#3d5e86"><font face="lucida Grande, Verdana, serif"><font style="font-size: 10pt"><a href="https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-webui/+/10268/">https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-webui/+/10268/</a></font></font></font></span></u>) ,the same errors occured.</div>
<style type="text/css">
<!--
@page { margin: 0.79in }
p { margin-bottom: 0.1in; direction: ltr; color: #00000a; line-height: 120%; text-align: left; widows: 0; orphans: 0 }
p.western { font-family: "Liberation Serif", serif; font-size: 12pt; so-language: en-US }
p.cjk { font-family: "Droid Sans Fallback"; font-size: 12pt; so-language: zh-CN }
p.ctl { font-family: "FreeSans"; font-size: 12pt; so-language: hi-IN }
a:link { so-language: zxx }
-->
</style>
<div><div> </div></div><div>The same source code obmc-ikvm and this kernel branch video-dev5 works on my other AST2400 hardware machine. </div><div>I remembered only one kernel version seemed to work on ast2500 ,I tested it six weeks ago .</div><div> the kernel version is:</div><div><br></div><div><div>KBRANCH ?= "video-dev"</div><div>LINUX_VERSION ?= "4.17.11"</div><div>SRCREV="09a65900b2fc7aab9caf9d0dfabc7ba80525b1dd"</div></div><div><div>the git repo is from git://github.com/eddiejames/linux/,</div><div><br></div><div>https://gerrit.openbmc-project.xyz/#/c/openbmc/openbmc/+/11500/5/meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed_git.bb</div><div>I want to test this kernel version ,but now this git repo is not available ,</div><div> I asked Eddiejames week ago, and get no response until now .</div><div> It is so bad that I did not backup this kernel on my local machice.</div><div><br></div><div>Best.</div><div>Xiuzhi</div></div><div>On Thu, 2018-10-25 at 09:39 +0800, xiuzhi wrote:<br>> Hi Ben,<br>> I open the CONFIG_USB_GADGET_DEBUG . <br>> and input the following keys by order:<br>> ';''Enter' :work good,can see ';' on host screen<br>> 'a''Enter' :error,see anything on screen<br>> 'b''Enter' :error,see anything on screen<br>> '1''Enter' :good<br>> '2''Enter' :good<br>> '3''Enter' :good<br>> '4''Enter' :good<br>> '5''Enter' :error deadlock<br>> The log is:<br><br>Can you tell me more about the userspace components you use to send<br>those keys ? I'd like to try to reproduce here.<br><br>> [ 78.820671] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: request() failed for pin 67<br>> [ 78.828274] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: pin-67 (1e780000.gpio:347) status -1<br>> [ 80.698564] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: request() failed for pin 67<br>> [ 80.706166] aspeed-g5-pinctrl 1e6e2000.syscon:pinctrl: pin-67 (1e780000.gpio:347) status -<br>> [ 94.447816] udc 1e6a0000.usb-vhub:p1: registering UDC driver [obmc_hid]<br>> [ 94.447909] configfs-gadget gadget: adding 'hid'/15e5a204 to config 'c'/70dd0747<br>> [ 94.447940] aspeed_vhub 1e6a0000.usb-vhub: port1 Match EP type 3<br>> [ 94.447958] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocating gen EP 0 for addr 1<br>> [ 94.448474] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocated epn#0 for port EP1<br>> [ 94.448505] aspeed_vhub 1e6a0000.usb-vhub: port1 Match EP type 3<br>> [ 94.448522] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocating gen EP 1 for addr 2<br>> [ 94.448780] aspeed_vhub 1e6a0000.usb-vhub: port1 Allocated epn#1 for port EP2<br>> [ 94.449270] aspeed_vhub 1e6a0000.usb-vhub: port1 start<br>> [ 94.449297] aspeed_vhub 1e6a0000.usb-vhub: port1 pullup(1)<br>> [ 94.449317] aspeed_vhub 1e6a0000.usb-vhub: port1 port 1 status 0000 -> 0001 (C=1)<br>> [ 100.158377] aspeed_vhub 1e6a0000.usb-vhub: USB bus resume<br>> [ 100.158400] configfs-gadget gadget: resume<br>> [ 100.158415] aspeed_vhub 1e6a0000.usb-vhub: USB bus reset<br>> [ 100.301048] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 00/05/0002/0000/0000 [out] st=0<br>> [ 100.301081] aspeed_vhub 1e6a0000.usb-vhub: USB status=0b100000 speed=high<br>> [ 100.301096] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SET_ADDRESS: Got address 2<br>> [ 100.322061] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0100/0000/0008 [in] st=0<br>> [ 100.322090] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:1)<br>> [ 100.326625] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0100/0000/0012 [in] st=0<br>> [ 100.326656] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:1)<br>> [ 100.331359] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0200/0000/0008 [in] st=0<br>> [ 100.331392] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:2)<br>> [ 100.335194] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0200/0000/0019 [in] st=0<br>> [ 100.335221] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:2)<br>> [ 100.343939] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0300/0000/0002 [in] st=0<br>> [ 100.344272] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 80/06/0300/0000/0004 [in] st=0<br>> [ 100.344647] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 00/09/0001/0000/0000 [out] st=0<br>> [ 100.378145] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/06/2900/0000/0002 [in] st=0<br>> [ 100.378178] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubDescriptor(0)<br>> [ 100.378195] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:41)<br>> [ 100.378522] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/06/2900/0000/0009 [in] st=0<br>> [ 100.378546] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubDescriptor(0)<br>> [ 100.378560] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GET_DESCRIPTOR(type:41)<br>> [ 100.382665] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0001/0000 [out] st=0<br>> [ 100.382697] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(1,8)<br>> [ 100.382896] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0002/0000 [out] st=0<br>> [ 100.382922] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(2,8)<br>> [ 100.383148] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0003/0000 [out] st=0<br>> [ 100.383173] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(3,8)<br>> [ 100.383396] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0004/0000 [out] st=0<br>> [ 100.383422] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(4,8)<br>> [ 100.383643] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0008/0005/0000 [out] st=0<br>> [ 100.383668] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(5,8)<br>> [ 100.403844] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/00/0000/0000/0004 [in] st=0<br>> [ 100.403871] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubStatus<br>> [ 100.549225] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0<br>> [ 100.549257] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)<br>> [ 100.549275] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 port status=0101 change=0001<br>> [ 100.549651] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/01/0010/0001/0000 [out] st=0<br>> [ 100.549681] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 ClearPortFeature(1,16)<br>> [ 100.664592] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/03/0004/0001/0000 [out] st=0<br>> [ 100.664625] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SetPortFeature(1,4)<br>> [ 100.664639] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 Port reset !<br>> [ 100.664658] aspeed_vhub 1e6a0000.usb-vhub: port1 port 1 status 0001 -> 0011 (C=0)<br>> [ 100.664672] aspeed_vhub 1e6a0000.usb-vhub: port1 Reset at unknown speed of disabled device, enabling.<br>> [ 100.664689] aspeed_vhub 1e6a0000.usb-vhub: port1 port 1 status 0011 -> 0403 (C=1)<br>> [ 100.684840] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0<br>> [ 100.684867] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)<br>> [ 100.684885] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 port status=0503 change=0012<br>> [ 100.685276] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/01/0011/0001/0000 [out] st=0<br>> [ 100.685306] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 ClearPortFeature(1,17)<br>> [ 100.685518] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet 23/01/0014/0001/0000 [out] st=0<br>> [ 100.685544] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 ClearPortFeature(1,20)<br>> [ 100.698539] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 00/05/0003/0000/0000 [out] st=0<br>> [ 100.698568] aspeed_vhub 1e6a0000.usb-vhub: port1 fist packet, captured speed 3<br>> [ 100.698585] aspeed_vhub 1e6a0000.usb-vhub: port1 SET_ADDRESS: Got address 3<br>> [ 100.714314] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0<br>> [ 100.714339] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)<br>> [ 100.714354] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 port status=0503 change=0000<br>> [ 100.729165] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0100/0000/0008 [in] st=0<br>> [ 100.729195] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.729227] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.733627] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0100/0000/0012 [in] st=0<br>> [ 100.733658] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.733690] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.738363] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0200/0000/0008 [in] st=0<br>> [ 100.738391] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.738427] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.742195] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0200/0000/0029 [in] st=0<br>> [ 100.742225] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.742262] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.750944] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0300/0000/0002 [in] st=0<br>> [ 100.750972] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.751006] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.751400] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/06/0300/0000/0004 [in] st=0<br>> [ 100.751425] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.751455] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.751777] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 00/09/0001/0000/0000 [out] st=0<br>> [ 100.751803] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.751821] configfs-gadget gadget: high-speed config #1: c<br>> [ 100.757460] aspeed_vhub 1e6a0000.usb-vhub: port1:EP1 Enabling [in] intr num 1 maxpacket=11<br>> [ 100.757502] aspeed_vhub 1e6a0000.usb-vhub: port1:EP2 Enabling [out] intr num 2 maxpacket=11<br>> [ 100.757549] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.820566] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 80/08/0000/0000/0001 [in] st=0<br>> [ 100.820594] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.820621] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.821026] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet a1/03/0000/0000/0001 [in] st=0<br>> [ 100.821050] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.821076] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.821397] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 21/0b/0000/0000/0000 [out] st=0<br>> [ 100.821422] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.821451] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned 0<br>> [ 100.821643] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 21/09/0200/0000/0001 [out] st=0<br>> [ 100.821666] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.821685] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned -95<br>> [ 100.821697] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 stalling<br>> [ 100.821735] aspeed_vhub 1e6a0000.usb-vhub: status direction mismatch<br>> [ 100.913006] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 SETUP packet 21/09/0200/0000/0001 [out] st=0<br>> [ 100.913034] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 forwarding to gadget...<br>> [ 100.913056] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 driver returned -95<br>> [ 100.913067] aspeed_vhub 1e6a0000.usb-vhub: port1:EP0 stalling<br>> [ 100.946228] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a3/00/0000/0001/0004 [in] st=0<br>> [ 100.946257] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetPortStatus(1)<br>> [ 100.946274] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 port status=0503 change=0000<br>> [ 100.946645] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 SETUP packet a0/00/0000/0000/0004 [in] st=0<br>> [ 100.946672] aspeed_vhub 1e6a0000.usb-vhub: hub:EP0 GetHubStatus<br>> [ 399.741059] aspeed_vhub 1e6a0000.usb-vhub: USB bus suspend<br>> [ 399.741081] configfs-gadget gadget: suspend<br>> Best,<br>> Xiuzhi<br>> <br>> ------------------ Original ------------------<br>> From: "Benjamin Herrenschmidt";<benh@kernel.crashing.org>;<br>> Send time: Thursday, Oct 25, 2018 6:42 AM<br>> To: "Joel Stanley"<joel@jms.id.au>; "xiuzhi"<1450335857@qq.com>;<br>> Cc: "a.filippov"<a.filippov@yadro.com>; "OpenBMC Maillist"<openbmc@lists.ozlabs.org>;<br>> Subject: Re: VHUB didn't work on AST2500<br>> <br>> On Wed, 2018-10-24 at 17:02 +1030, Joel Stanley wrote:<br>> > On Wed, 24 Oct 2018 at 17:00, xiuzhi <1450335857@qq.com> wrote:<br>> > > 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<br>> > > . Only the keys ';' , 'Enter', '1','2','3','4' work. others keyinput will deadlock the host screen .<br>> > > The kernel error log:<br>> > > [ 99.326586] configfs-gadget gadget: high-speed config #1: c<br>> > > [ 99.403704] aspeed_vhub 1e6a0000.usb-vhub: status direction mismatch<br>> > > [ 99.492831] aspeed_vhub 1e6a0000.usb-vhub: status direction mismatch<br>> > > The kernel version is : video-dev5,<br>> > > commit 2acbc35adcfe15971b701770e1105276a18da9f7<br>> > > <br>> > > Who can give me some suggestions to debug it?<br>> > <br>> > Ben, do you have any advice?<br>> <br>> I need to know a bit more. What is used as a gadget driver on the BMC ?<br>> <br>> I would probably need to reproduce with some added traces to the driver<br>> to figure out what's going on.<br>> <br>> One first thing to try would be a run with CONFIG_USB_GADGET_DEBUG<br>> along with some indication of what actions happen corresponding to what<br>> part of the log (ie, press key 'a' etc...).<br>> <br>> Cheers,<br>> Ben.<br>> <br></div>