Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262145AbTELNxJ (ORCPT ); Mon, 12 May 2003 09:53:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262151AbTELNxI (ORCPT ); Mon, 12 May 2003 09:53:08 -0400 Received: from h-68-165-86-241.DLLATX37.covad.net ([68.165.86.241]:14631 "EHLO sol.microgate.com") by vger.kernel.org with ESMTP id S262145AbTELNxG (ORCPT ); Mon, 12 May 2003 09:53:06 -0400 Subject: Re: 2.5.69 Interrupt Latency From: Paul Fulghum To: Andrew Morton Cc: "linux-kernel@vger.kernel.org" , Arnd Bergmann , johannes@erdfelt.com In-Reply-To: <1052747862.1996.9.camel@diemos> References: <1052323940.2360.7.camel@diemos> <1052336482.2020.8.camel@diemos> <20030507152856.2a71601d.akpm@digeo.com> <1052402187.1995.13.camel@diemos> <20030508122205.7b4b8a02.akpm@digeo.com> <1052503920.2093.5.camel@diemos> <1052512235.2997.8.camel@diemos> <20030509142828.59552d0a.akpm@digeo.com> <1052747862.1996.9.camel@diemos> Content-Type: text/plain Organization: Message-Id: <1052748369.1996.15.camel@diemos> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 12 May 2003 09:06:09 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2156 Lines: 59 On Mon, 2003-05-12 at 08:57, Paul Fulghum wrote: > On Fri, 2003-05-09 at 16:28, Andrew Morton wrote: > > > This code was added to wakeup_hc(). It is called from uhci_irq(): > > > > + /* Global resume for 20ms */ > > + outw(USBCMD_FGR | USBCMD_EGSM, io_addr + USBCMD); > > + wait_ms(20); > > > > The changelog just says "Minor patch for uhci-hcd.c" > > > > Can you delete the wait_ms() and see if that is our culprit? > > This is the culprit. > > Removing this line corrects the latency problems on > the server. A 20ms delay seems pretty excessive for an > interrupt handler. I'm not sure what it is supposed to > accomplish, but this seems like something that should > be scheduled to run outside of the ISR. > > I must have messed up a test on the laptop that is > also showing latency problems. On the laptop the > problem *is* in both 2.5.68/2.5.69 and *is not* > eliminated by turning off USB. The laptop uses the > ohci driver anyways which is not effected by this patch. > The laptop does not show latency problems on 2.4.20. > > So the patch above is definately a problem, > but the problem I am seeing on the laptop > is something unrelated, but part of 2.5.x > (which I will investigate further). > > Thanks, > Paul I forgot to add this snippet from the /var/log/messages file of the server in case it helps the USB maintainer in evaluating what to do about the above patch. kernel: drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.0 kernel: uhci-hcd 00:04.2: Intel Corp. 82371AB/EB/MB PIIX4 kernel: uhci-hcd 00:04.2: irq 19, io base 0000fce0 kernel: Please use the 'usbfs' filetype instead, the 'usbdevfs' name is deprecated. kernel: uhci-hcd 00:04.2: new USB bus registered, assigned bus number 1 kernel: hub 1-0:0: USB hub found kernel: hub 1-0:0: 2 ports detected -- Paul Fulghum, paulkf@microgate.com Microgate Corporation, http://www.microgate.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/