From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsAUL-0007Fu-LI for qemu-devel@nongnu.org; Mon, 28 Sep 2009 03:17:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsAUH-0007EG-2u for qemu-devel@nongnu.org; Mon, 28 Sep 2009 03:17:37 -0400 Received: from [199.232.76.173] (port=47609 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsAUG-0007E4-TX for qemu-devel@nongnu.org; Mon, 28 Sep 2009 03:17:32 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2209) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsAUG-0002Db-DT for qemu-devel@nongnu.org; Mon, 28 Sep 2009 03:17:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsAUE-0005Xv-UM for qemu-devel@nongnu.org; Mon, 28 Sep 2009 03:17:31 -0400 Message-ID: <4AC06304.4050506@redhat.com> Date: Mon, 28 Sep 2009 09:17:24 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] Problems with USB Mass Storage emulation References: <1253983134.3374.12.camel@codedot> <90edad820909260942w64f183d1wc2ebdc377249c2dd@mail.gmail.com> In-Reply-To: <90edad820909260942w64f183d1wc2ebdc377249c2dd@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------030008090904030007030000" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dmitri Vorobiev Cc: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------030008090904030007030000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 09/26/09 18:42, Dmitri Vorobiev wrote: > Hello, > > We tried to use an emulated USB Mass Storage device with my QEMU-emulated > system (Debian GNU/Linux, MIPS architecture, but the same problem is > present also for a similar x86 version). fdisk(1) works fine. However, > when formatting is going on or a big file is being copied into the > USB-MS partition, some errors occur and the system starts working > extremely slowly. qemu emulates usb 1.1, which *is* slow. Attached patch gets usb-storage going for me, but I'd classify it as 'hack', not as 'fix'. Fixing it for real would be adding usb 2.0 supprt to qemu. Or fix the linux kernel to deal with usb 1.1 more sanely, which is probably just adjusting the scsi timeouts to the device speed ... cheers, Gerd --------------030008090904030007030000 Content-Type: text/plain; name="0001-make-usb-1.1-go-insane-fast.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-make-usb-1.1-go-insane-fast.patch" >>From 540a948fed07ef3e686097083f078b4803939fb4 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 8 Sep 2009 13:53:15 +0200 Subject: [PATCH] make usb 1.1 go insane fast --- hw/usb-uhci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 6807413..3a770e5 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -63,7 +63,7 @@ #define UHCI_PORT_CSC (1 << 1) #define UHCI_PORT_CCS (1 << 0) -#define FRAME_TIMER_FREQ 1000 +#define FRAME_TIMER_FREQ 100000 #define FRAME_MAX_LOOPS 100 -- 1.6.2.5 --------------030008090904030007030000--