From: nix.wie.weg@gmx.de
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Large USB patch
Date: Sun, 23 Apr 2006 23:54:06 +0200 [thread overview]
Message-ID: <444BF77E.3040101@gmx.de> (raw)
In-Reply-To: <444AF6B7.1030606@austin.rr.com>
Hello,
Lonnie Mendez wrote:
>
> That works but not in the literal means of the attached device
> actually functioning (see below). Here is something interesting:
>
> (qemu) usb_add mouse
> Controller 001: uhci
> 001:001 = mouse
> Summary: 1 USB Controller, 1 USB Devices
> (qemu) usb_add tablet,addto 001:001:001
> (qemu) info usb
> Controller 001: uhci
> 001:001 = mouse
> 001:001:001 = tablet
> Summary: 1 USB Controller, 2 USB Devices
> (qemu)
I have changed that, the usb_dummy_ funtions did return 0, but must
return -1
> The device attached on the hub doesn't seem to be receiving
> transactions (like before with the emulated devices):
>
> frame 1227: pid=SETUP addr=0x00 ep=0 len=8
> data_out= 80 06 00 01 00 00 40 00
> uhci readw port=0x0002 val=0x0001
> uhci writew port=0x0002 val=0x0001
> uhci readw port=0x0006 val=0x04cc
> frame 1228: pid=SETUP addr=0x00 ep=0 len=8
> data_out= 80 06 00 01 00 00 40 00
> frame 1229: pid=SETUP addr=0x00 ep=0 len=8
> data_out= 80 06 00 01 00 00 40 00
> uhci readw port=0x0002 val=0x0002
> uhci writew port=0x0002 val=0x0002
>
> There are some problems with the port status request traffic from
> the hub as well:
>
> frame 1174: pid=SETUP addr=0x03 ep=0 len=8
> data_out= 23 03 04 00 01 00 00 00
> error usb_generic_handle_packet: unknown USB-Token - 258
> ret=0
Yes this is clear, the usbhub does not work at all. If I find the time I
will look at it, this week.
>
> The interface is also giving incorrect errors at certain times:
>
> (qemu) usb_add usbhub
> usb_add: extraneous characters at the end of line
> (qemu)
Yes I also noticed this. It's very strange. If you add the same line
again, it will work in most cases. I don't know why it happens. It is a
bug which is located in monitor.c.
>
> Attached is a patch to get the linux redirector working with the
> changes. It has a few other modifications as well but nothing
> radical. The default redirector for linux host was changed to the
> linux redirector as well (just a heads up). I'm still using the
> libusb redirector for testing here but it's good to restore the linux
> redirector as default on linux host.
Thanks works very well.
I have found today an error in the state machine and fixed it. You will
find the fix in the patch:
http://217.20.126.200/tino/usb-2006-04-23.patch
which includes all of our patches until today.
With kind regards,
Tino H. Seifert
next prev parent reply other threads:[~2006-04-23 21:54 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-20 19:59 [Qemu-devel] Large USB patch nix.wie.weg
2006-04-21 2:23 ` Lonnie Mendez
2006-04-21 5:59 ` nix.wie.weg
2006-04-21 7:04 ` Lonnie Mendez
2006-04-21 14:53 ` Lonnie Mendez
2006-04-21 15:00 ` Lonnie Mendez
2006-04-21 15:50 ` Lonnie Mendez
2006-04-21 16:19 ` Lonnie Mendez
2006-04-21 16:29 ` nix.wie.weg
2006-04-21 17:28 ` Lonnie Mendez
2006-04-21 18:06 ` Lonnie Mendez
2006-04-21 18:38 ` Lonnie Mendez
2006-04-21 20:50 ` Lonnie Mendez
2006-04-22 9:33 ` nix.wie.weg
2006-04-22 14:36 ` Lonnie Mendez
2006-04-22 15:36 ` nix.wie.weg
2006-04-22 15:38 ` nix.wie.weg
2006-04-22 16:00 ` nix.wie.weg
2006-04-22 16:19 ` Lonnie Mendez
2006-04-22 16:35 ` nix.wie.weg
2006-04-23 3:38 ` Lonnie Mendez
2006-04-23 21:54 ` nix.wie.weg [this message]
2006-04-29 1:03 ` Lonnie Mendez
2006-04-29 3:29 ` Lonnie Mendez
2006-04-30 0:46 ` Lonnie Mendez
2006-04-30 20:56 ` Lonnie Mendez
2006-04-21 16:26 ` nix.wie.weg
2006-04-22 14:15 ` nix.wie.weg
2006-04-23 15:02 ` Fabrice Bellard
2006-04-23 16:11 ` nix.wie.weg
2006-04-24 23:50 ` [Qemu-devel] Update for cvs 2006-04-24 nix.wie.weg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=444BF77E.3040101@gmx.de \
--to=nix.wie.weg@gmx.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).