From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMnYk-0000lI-3t for qemu-devel@nongnu.org; Tue, 13 Jan 2009 13:00:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMnYi-0000jk-GZ for qemu-devel@nongnu.org; Tue, 13 Jan 2009 13:00:13 -0500 Received: from [199.232.76.173] (port=51096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMnYi-0000jb-C6 for qemu-devel@nongnu.org; Tue, 13 Jan 2009 13:00:12 -0500 Received: from mr01.hansenet.de ([213.191.74.10]:45703) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMnYc-00067y-U6 for qemu-devel@nongnu.org; Tue, 13 Jan 2009 13:00:11 -0500 Message-ID: <496CD699.9020704@exactcode.de> Date: Tue, 13 Jan 2009 18:59:53 +0100 From: =?ISO-8859-1?Q?Ren=E9_Rebe?= MIME-Version: 1.0 Subject: Re: [Qemu-devel] Preliminary patch to implement ehci References: <11d301c93090$7e06d290$7a1477b0$@com> <010f01c93810$47ccb500$d7661f00$@com> <4905C997.5060801@codemonkey.ws> <01d701c93aae$af7487a0$0e5d96e0$@com> <4909EC32.1090504@codemonkey.ws> <490CC0F8.9030108@kernel.org> <52r2h45ejjl3197srdp75hlcf0hj1uegd1@4ax.com> In-Reply-To: <52r2h45ejjl3197srdp75hlcf0hj1uegd1@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: Quoted-Printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu@emutex.com Hi Mark, I started to add your EHCI patch to our T2 SDE KVM package: http://www.t2-project.org/packages/kvm.html Which includes some re-diffing to current KVM HEAD: =20 http://svn.exactcode.de/t2/trunk/package/emulators/kvm/99-ehci.patch.disa= bled It's named .disabled as it's currently not yet built by default as it did not yet work for me. I'll keep reviewing it as a functional USB 2 controller would greatly help my debugging needs. PS: The above package also contains the Mactel patches from Alexander Graf, forward ported to current Qemu/KVM HEAD. Cherry picking welcome. Ren=E9 Mark Burkley wrote: > On Sat, 01 Nov 2008 13:50:00 -0700, you wrote: > > =20 >> I just tried EHCI patch on top of latest KVM/QEMU. >> XP just hangs at boot. >> >> Here is the debug output from EHCI. >> >> 000.000 ehci init : registering USB ports with no device attached >> 000.000 Alloc new timer for 0x1f26fa0 >> 000.000 ehci init : registering MMIO size 4096 >> 000.000 *** ehci init : under development 16-OCT-08 *** >> >> 251.048 ehci_map: region 0, addr F0000000, size 4096, s->mem 00000068 >> 395.068 ehci_map: region 0, addr F0000000, size 4096, s->mem 00000068 >> 300.331 ehci_map: region 0, addr F0000000, size 4096, s->mem 00000068 >> 002.163 mem_readl : addr=3D0x00000000, val=3D0x01000020 >> 000.117 mem_readb : addr=3D0x00000009, val=3D68 >> 000.178 mem_readl : addr=3D0x00000020, val=3D0x00080000 >> 000.020 mem_writel : USBCMD resetting ... >> 000.010 mem_writel : USBCMD reset done, clear reset request bit >> 000.005 mem_writel : addr=3D0x00000020, val=3D0x00080000 >> 000.015 mem_readl : addr=3D0x00000020, val=3D0x00080000 >> 000.016 mem_readl : addr=3D0x00000004, val=3D0x00000004 >> 000.017 mem_writel : addr=3D0x00000038, val=3D0x00000000 >> 000.025 mem_writel : addr=3D0x00000034, val=3D0x00000000 >> 000.111 mem_writel : addr=3D0x00000034, val=3D0x0193B000 >> 000.017 mem_writel : addr=3D0x00000038, val=3D0x0193C002 >> 000.074 mem_writel : addr=3D0x00000060, val=3D0x00000001 >> 000.016 mem_readl : addr=3D0x00000020, val=3D0x00080000 >> 000.017 mem_writel : addr=3D0x00000020, val=3D0x00010000 >> 000.017 mem_readl : addr=3D0x00000020, val=3D0x00010000 >> 000.016 mem_writel : USBCMD run, clear halt >> 000.011 mem_writel : addr=3D0x00000020, val=3D0x00010001 >> 504.026 mem_readl : addr=3D0x00000020, val=3D0x00010001 >> 000.084 mem_readl : addr=3D0x00000028, val=3D0x0000003B >> 510.650 mem_readl : addr=3D0x00000020, val=3D0x00010001 >> 000.077 mem_readl : addr=3D0x00000028, val=3D0x0000003B >> 510.544 mem_readl : addr=3D0x00000020, val=3D0x00010001 >> 000.067 mem_readl : addr=3D0x00000028, val=3D0x0000003B >> 324.302 WARNING - EHCI skipped 10 frames >> 960.583 WARNING - EHCI skipped 4 frames >> 019.186 WARNING - EHCI skipped 10 frames >> 819.797 WARNING - EHCI skipped 3 frames >> 023.364 WARNING - EHCI skipped 1 frames >> =20 > > Sorry for delayed reply. I tried but I can't reproduce this. All the > above output looks normal. But it seems XP just stops reading the > device for some reason. Is your PCI configuration different to me or > something like that? > > Mark > =20 --=20 Ren=E9 Rebe - ExactCODE GmbH - Europe, Germany, Berlin http://exactcode.de | http://t2-project.org | http://rene.rebe.name