From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScakT-0007Qw-VI for qemu-devel@nongnu.org; Thu, 07 Jun 2012 07:19:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScakP-0001y1-3R for qemu-devel@nongnu.org; Thu, 07 Jun 2012 07:19:29 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:39684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScakO-0001xk-Hr for qemu-devel@nongnu.org; Thu, 07 Jun 2012 07:19:25 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 7 Jun 2012 12:06:58 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q57BJHWo6423008 for ; Thu, 7 Jun 2012 21:19:17 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q57BJGwV003797 for ; Thu, 7 Jun 2012 21:19:17 +1000 Message-ID: <1339067956.24838.27.camel@pasglop> From: Benjamin Herrenschmidt Date: Thu, 07 Jun 2012 21:19:16 +1000 In-Reply-To: <4FD07971.1020205@redhat.com> References: <1338953515.7150.150.camel@pasglop> <4FCEEDC5.7090807@us.ibm.com> <1339017219.7150.170.camel@pasglop> <4FD06725.70905@redhat.com> <1339058438.24838.15.camel@pasglop> <4FD06BE3.3070506@redhat.com> <1339060579.24838.19.camel@pasglop> <4FD07971.1020205@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [Qemu-devel] [qemu-devel][RFC] Enable usb with default options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hans de Goede Cc: Anthony Liguori , li zhang , qemu-devel@nongnu.org, zhlcindy@linux.vnet.ibm.com On Thu, 2012-06-07 at 11:50 +0200, Hans de Goede wrote: > > In the meantime, this approach you experimented with would be very > > useful for us in the common case where there is no isochronous device. > > It shouldn't be too hard for the emulator to switch back to "normal" > > frames if an ISO EP is present, no ? > > That should be possible yes. Note though that although slowing down the > timer will only break isoc. stuff, it will for example also slow down > usb mass storage devices. Sure, I was thinking about something a bit smarter that would "throttle" the timer based on what kind of EPs have active TDs (that might imply a delay reacting to a brand new TD but with a bit of smarts such as a delay before throttling back, "completions" from sub-devices in qemu triggering an immediate processing, etc... should be doable). However... > > That would solve the 99% case of just keyboard and mouse on all those > > machines. > > > > Do you have some patches around from those earlier experiments that we > > could try to revive, at least for OHCI ? > > No, I only did this for EHCI, which may still have an option to enable > this today. Gerd may have done this for UHCI too, Gerd ? Ok, what I really care about is OHCI, so at this point, it's basically not there. So either I decide what Linux does today to enable PM is good enough or I get my hands dirty :-) We'll see, it's not an emergency at this stage, I might come up with something if I get a chance. Cheers, Ben.