* [Qemu-devel] USB EHCI development nearing completion
@ 2006-12-23 15:46 Mark Burkley
0 siblings, 0 replies; 10+ messages in thread
From: Mark Burkley @ 2006-12-23 15:46 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 925 bytes --]
Dear list,
Just a quick note to let you know I have almost finished an implementation
of an EHCI host controller for USB (usb-ehci.c) for qemu. I am testing with
an XP guest and so far I have a mass storage flash key, a mouse and a tablet
working. I haven't yet implemented isochronous or split transactions
though. It doesn't do companion controller hand-offs for low or full speed
devices either but Windows XP doesn't mind that I am attaching low/full
speed devices through EHCI (I believe Linux guests won't like this).
I have asked the company I am working for to give me permission to GPL the
module and so far they are agreeable. So I am planning to clean up and have
an initial version for check in early in the new year. If anyone has any
inputs, please do let me know. I'm new to qemu development so am not sure
of checkin etiquette, etc. Pointers in that regard appreciated too.
Cheers,
Mark
[-- Attachment #2: Type: text/html, Size: 2950 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Qemu-devel] USB EHCI development nearing completion
@ 2006-12-24 9:57 Mark B
2006-12-24 12:18 ` Hetz Ben Hamo
0 siblings, 1 reply; 10+ messages in thread
From: Mark B @ 2006-12-24 9:57 UTC (permalink / raw)
To: qemu-devel
Dear list,
Just a quick note to let you know I have almost finished an implementation
of an EHCI host controller for USB (usb-ehci.c) for qemu. I am testing with
an XP guest and so far I have a mass storage flash key, a mouse and a tablet
working. I havent yet implemented isochronous or split transactions
though. It doesnt do companion controller hand-offs for low or full speed
devices either but Windows XP doesnt mind that I am attaching low/full
speed devices through EHCI (I believe Linux guests wont like this).
I have asked the company I am working for to give me permission to GPL the
module and so far they are agreeable. So I am planning to clean up and have
an initial version for check in early in the new year. If anyone has any
inputs, please do let me know. Im new to qemu development so am not sure
of checkin etiquette, etc. Pointers in that regard appreciated too.
Cheers,
Mark
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] USB EHCI development nearing completion
2006-12-24 9:57 [Qemu-devel] USB EHCI development nearing completion Mark B
@ 2006-12-24 12:18 ` Hetz Ben Hamo
2006-12-27 13:38 ` Fabrice Bellard
0 siblings, 1 reply; 10+ messages in thread
From: Hetz Ben Hamo @ 2006-12-24 12:18 UTC (permalink / raw)
To: qemu-devel
Hi Mark,
Well, there aren't any "written rules" but most people who contribute
sends some "proof of concept" diff'ed patch (appliable to QEMU CVS for
example) (you can look at the experimental 3D patch few weeks ago),
and then the talks begins, while others would look how portable your
code to other platforms/OS's..
Thanks,
Hetz
On 12/24/06, Mark B <qemu@corbally.net> wrote:
> Dear list,
>
> Just a quick note to let you know I have almost finished an implementation
> of an EHCI host controller for USB (usb-ehci.c) for qemu. I am testing with
> an XP guest and so far I have a mass storage flash key, a mouse and a tablet
> working. I haven't yet implemented isochronous or split transactions
> though. It doesn't do companion controller hand-offs for low or full speed
> devices either but Windows XP doesn't mind that I am attaching low/full
> speed devices through EHCI (I believe Linux guests won't like this).
>
> I have asked the company I am working for to give me permission to GPL the
> module and so far they are agreeable. So I am planning to clean up and have
> an initial version for check in early in the new year. If anyone has any
> inputs, please do let me know. I'm new to qemu development so am not sure
> of checkin etiquette, etc. Pointers in that regard appreciated too.
>
> Cheers,
>
> Mark
>
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
--
Visit my blog (hebrew) for things that (sometimes) matter:
http://wp.dad-answers.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] USB EHCI development nearing completion
2006-12-24 12:18 ` Hetz Ben Hamo
@ 2006-12-27 13:38 ` Fabrice Bellard
2006-12-27 21:21 ` Mark B
0 siblings, 1 reply; 10+ messages in thread
From: Fabrice Bellard @ 2006-12-27 13:38 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu
Another point is that I won't accept a GPL license for such a device.
LGPL or BSD would be better.
Regards,
Fabrice.
Hetz Ben Hamo wrote:
> Hi Mark,
>
> Well, there aren't any "written rules" but most people who contribute
> sends some "proof of concept" diff'ed patch (appliable to QEMU CVS for
> example) (you can look at the experimental 3D patch few weeks ago),
> and then the talks begins, while others would look how portable your
> code to other platforms/OS's..
>
> Thanks,
> Hetz
>
> On 12/24/06, Mark B <qemu@corbally.net> wrote:
>
>> Dear list,
>>
>> Just a quick note to let you know I have almost finished an
>> implementation
>> of an EHCI host controller for USB (usb-ehci.c) for qemu. I am testing
>> with
>> an XP guest and so far I have a mass storage flash key, a mouse and a
>> tablet
>> working. I haven't yet implemented isochronous or split transactions
>> though. It doesn't do companion controller hand-offs for low or full
>> speed
>> devices either but Windows XP doesn't mind that I am attaching low/full
>> speed devices through EHCI (I believe Linux guests won't like this).
>>
>> I have asked the company I am working for to give me permission to GPL
>> the
>> module and so far they are agreeable. So I am planning to clean up and
>> have
>> an initial version for check in early in the new year. If anyone has any
>> inputs, please do let me know. I'm new to qemu development so am not sure
>> of checkin etiquette, etc. Pointers in that regard appreciated too.
>>
>> Cheers,
>>
>> Mark
>>
>>
>>
>>
>> _______________________________________________
>> Qemu-devel mailing list
>> Qemu-devel@nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Qemu-devel] USB EHCI development nearing completion
2006-12-27 13:38 ` Fabrice Bellard
@ 2006-12-27 21:21 ` Mark B
2006-12-27 21:34 ` Paul Brook
0 siblings, 1 reply; 10+ messages in thread
From: Mark B @ 2006-12-27 21:21 UTC (permalink / raw)
To: qemu-devel
Thank you Fabrice and co. LGPL or BSD should be fine - I don't have any
preference on the license.
I could not find the experimental 3D patch - it seems to have expired. But
I uploaded a diff patch anyway to 4shared at this location:
http://www.4shared.com/file/7986451/d1222873/ehci.html
This is an early proof of concept with a good bit of tidying up yet to be
done. It is not yet for public release either. But of course comments and
other feedback are welcome.
Mark
-----Original Message-----
From: Fabrice Bellard [mailto:fabrice@bellard.org]
Sent: 27 December 2006 13:39
To: qemu-devel@nongnu.org
Cc: qemu@corbally.net
Subject: Re: [Qemu-devel] USB EHCI development nearing completion
Another point is that I won't accept a GPL license for such a device.
LGPL or BSD would be better.
Regards,
Fabrice.
Hetz Ben Hamo wrote:
> Hi Mark,
>
> Well, there aren't any "written rules" but most people who contribute
> sends some "proof of concept" diff'ed patch (appliable to QEMU CVS for
> example) (you can look at the experimental 3D patch few weeks ago),
> and then the talks begins, while others would look how portable your
> code to other platforms/OS's..
>
> Thanks,
> Hetz
>
> On 12/24/06, Mark B <qemu@corbally.net> wrote:
>
>> Dear list,
>>
>> Just a quick note to let you know I have almost finished an
>> implementation
>> of an EHCI host controller for USB (usb-ehci.c) for qemu. I am testing
>> with
>> an XP guest and so far I have a mass storage flash key, a mouse and a
>> tablet
>> working. I haven't yet implemented isochronous or split transactions
>> though. It doesn't do companion controller hand-offs for low or full
>> speed
>> devices either but Windows XP doesn't mind that I am attaching low/full
>> speed devices through EHCI (I believe Linux guests won't like this).
>>
>> I have asked the company I am working for to give me permission to GPL
>> the
>> module and so far they are agreeable. So I am planning to clean up and
>> have
>> an initial version for check in early in the new year. If anyone has any
>> inputs, please do let me know. I'm new to qemu development so am not sure
>> of checkin etiquette, etc. Pointers in that regard appreciated too.
>>
>> Cheers,
>>
>> Mark
>>
>>
>>
>>
>> _______________________________________________
>> Qemu-devel mailing list
>> Qemu-devel@nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] USB EHCI development nearing completion
2006-12-27 21:21 ` Mark B
@ 2006-12-27 21:34 ` Paul Brook
2007-01-04 8:44 ` Mark B
0 siblings, 1 reply; 10+ messages in thread
From: Paul Brook @ 2006-12-27 21:34 UTC (permalink / raw)
To: qemu-devel; +Cc: Mark B
On Wednesday 27 December 2006 21:21, Mark B wrote:
> Thank you Fabrice and co. LGPL or BSD should be fine - I don't have any
> preference on the license.
>
> I could not find the experimental 3D patch - it seems to have expired. But
> I uploaded a diff patch anyway to 4shared at this location:
> http://www.4shared.com/file/7986451/d1222873/ehci.html
>
> This is an early proof of concept with a good bit of tidying up yet to be
> done. It is not yet for public release either. But of course comments and
> other feedback are welcome.
Have you looked at Chromium (http://chromium.sourceforge.net/)
It looks like what they've already achieved what you're trying to implement.
It just needs a qemu specific transport implementation. It already has
multiple transport backends to support TCP/IP and FiberChannel.
Paul
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Qemu-devel] USB EHCI development nearing completion
2006-12-27 21:34 ` Paul Brook
@ 2007-01-04 8:44 ` Mark B
2007-01-04 9:53 ` Christian MICHON
0 siblings, 1 reply; 10+ messages in thread
From: Mark B @ 2007-01-04 8:44 UTC (permalink / raw)
To: qemu-devel
Paul,
I don't see anything to do with EHCI in Chromium. I was just referring to
the 3D patch as an example - maybe this is causing confusion.
Did anyone else get a chance to look at the EHCI emulation patch?
Thanks,
Mark
-----Original Message-----
From: qemu-devel-bounces+qemu=corbally.net@nongnu.org
[mailto:qemu-devel-bounces+qemu=corbally.net@nongnu.org] On Behalf Of Paul
Brook
Sent: 27 December 2006 21:34
To: qemu-devel@nongnu.org
Cc: Mark B
Subject: Re: [Qemu-devel] USB EHCI development nearing completion
On Wednesday 27 December 2006 21:21, Mark B wrote:
> Thank you Fabrice and co. LGPL or BSD should be fine - I don't have any
> preference on the license.
>
> I could not find the experimental 3D patch - it seems to have expired.
But
> I uploaded a diff patch anyway to 4shared at this location:
> http://www.4shared.com/file/7986451/d1222873/ehci.html
>
> This is an early proof of concept with a good bit of tidying up yet to be
> done. It is not yet for public release either. But of course comments
and
> other feedback are welcome.
Have you looked at Chromium (http://chromium.sourceforge.net/)
It looks like what they've already achieved what you're trying to implement.
It just needs a qemu specific transport implementation. It already has
multiple transport backends to support TCP/IP and FiberChannel.
Paul
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] USB EHCI development nearing completion
2007-01-04 8:44 ` Mark B
@ 2007-01-04 9:53 ` Christian MICHON
2007-01-04 20:24 ` Mark B
0 siblings, 1 reply; 10+ messages in thread
From: Christian MICHON @ 2007-01-04 9:53 UTC (permalink / raw)
To: qemu-devel
I tested it on win32 host.
Apparently a typo mistake (see updated patch)
how to use it ?
diff -Nur ehci.patch ehci-xian.patch
--- ehci.patch Thu Jan 4 09:50:17 2007
+++ ehci-xian.patch Thu Jan 4 10:40:26 2007
@@ -1722,7 +1722,7 @@
+ printf ("buffer is %p (+%d)\n", s->buffer, (uint8_t*)s->buffer -
(uint8_t*)s);
+
+ pci_conf = s->dev.config;
-+ pci_conf[0x00] = 0x86
++ pci_conf[0x00] = 0x86;
+ pci_conf[0x01] = 0x80; // Intel VID
+ pci_conf[0x02] = 0x55;
+ pci_conf[0x03] = 0x55; // Made up product ID
On 1/4/07, Mark B <qemu@corbally.net> wrote:
>
> Paul,
>
> I don't see anything to do with EHCI in Chromium. I was just referring to
> the 3D patch as an example - maybe this is causing confusion.
>
> Did anyone else get a chance to look at the EHCI emulation patch?
>
> Thanks,
>
> Mark
>
--
Christian
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Qemu-devel] USB EHCI development nearing completion
2007-01-04 9:53 ` Christian MICHON
@ 2007-01-04 20:24 ` Mark B
2007-01-05 21:34 ` Thiemo Seufer
0 siblings, 1 reply; 10+ messages in thread
From: Mark B @ 2007-01-04 20:24 UTC (permalink / raw)
To: qemu-devel
Apologies for the missed semi-colon - I edited the vendor id after the fact.
Looks like I chopped the call to init as well. You'll need this:
--- qemu-0.8.2/hw/pc.c 2006-07-22 17:23:34.000000000 +0100
+++ qemu-dev/hw/pc.c 2007-12-04 20:17:16.000000000 +0000
@@ -842,6 +842,8 @@
usb_uhci_init(pci_bus, piix3_devfn + 2);
}
+ usb_ehci_init(pci_bus, piix3_devfn + 4);
+
if (pci_enabled && acpi_enabled) {
piix4_pm_init(pci_bus, piix3_devfn + 3);
}
After that it should just be a question of adding devices with -usbdevice or
whatever. Since ehci is initialized after uhci, its ports are top of the
free list and get allocated first. Ehci *should* hand-off low or full speed
devices to a companion controller but that's TBD for now.
Mark
-----Original Message-----
From: qemu-devel-bounces+qemu=corbally.net@nongnu.org
[mailto:qemu-devel-bounces+qemu=corbally.net@nongnu.org] On Behalf Of
Christian MICHON
Sent: 04 January 2007 09:53
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] USB EHCI development nearing completion
I tested it on win32 host.
Apparently a typo mistake (see updated patch)
how to use it ?
diff -Nur ehci.patch ehci-xian.patch
--- ehci.patch Thu Jan 4 09:50:17 2007
+++ ehci-xian.patch Thu Jan 4 10:40:26 2007
@@ -1722,7 +1722,7 @@
+ printf ("buffer is %p (+%d)\n", s->buffer, (uint8_t*)s->buffer -
(uint8_t*)s);
+
+ pci_conf = s->dev.config;
-+ pci_conf[0x00] = 0x86
++ pci_conf[0x00] = 0x86;
+ pci_conf[0x01] = 0x80; // Intel VID
+ pci_conf[0x02] = 0x55;
+ pci_conf[0x03] = 0x55; // Made up product ID
On 1/4/07, Mark B <qemu@corbally.net> wrote:
>
> Paul,
>
> I don't see anything to do with EHCI in Chromium. I was just referring to
> the 3D patch as an example - maybe this is causing confusion.
>
> Did anyone else get a chance to look at the EHCI emulation patch?
>
> Thanks,
>
> Mark
>
--
Christian
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] USB EHCI development nearing completion
2007-01-04 20:24 ` Mark B
@ 2007-01-05 21:34 ` Thiemo Seufer
0 siblings, 0 replies; 10+ messages in thread
From: Thiemo Seufer @ 2007-01-05 21:34 UTC (permalink / raw)
To: Mark B; +Cc: qemu-devel
Mark B wrote:
> Apologies for the missed semi-colon - I edited the vendor id after the fact.
>
> Looks like I chopped the call to init as well. You'll need this:
Please post an updated (complete) patch to this mailing list.
Thiemo
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-01-05 21:33 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-24 9:57 [Qemu-devel] USB EHCI development nearing completion Mark B
2006-12-24 12:18 ` Hetz Ben Hamo
2006-12-27 13:38 ` Fabrice Bellard
2006-12-27 21:21 ` Mark B
2006-12-27 21:34 ` Paul Brook
2007-01-04 8:44 ` Mark B
2007-01-04 9:53 ` Christian MICHON
2007-01-04 20:24 ` Mark B
2007-01-05 21:34 ` Thiemo Seufer
-- strict thread matches above, loose matches on Subject: below --
2006-12-23 15:46 Mark Burkley
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).