From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932756AbXG3H3w (ORCPT ); Mon, 30 Jul 2007 03:29:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762194AbXG3H3l (ORCPT ); Mon, 30 Jul 2007 03:29:41 -0400 Received: from wa-out-1112.google.com ([209.85.146.178]:33164 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761708AbXG3H3j (ORCPT ); Mon, 30 Jul 2007 03:29:39 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IAVkLtc9lLmCvO7bPNlHplTAfAEE18h0djUBCQUGrKW8vRz71Sq1jrx6q49nvl0VQIIwmtFUHt35zDjnw+kHpAmAg/WJMovQYv4lcbvICgH40fxsTrvW52jADrfaWOtGRQR/C09n6zevIotzP9GapRhx2b2UP/BOmlxoz474pRA= Message-ID: <4bacf17f0707300029g5116e70bq4808059dc8b069f1@mail.gmail.com> Date: Mon, 30 Jul 2007 09:29:38 +0200 From: "=?ISO-8859-2?Q?Marcin_=A6lusarz?=" To: "Ingo Molnar" , "Jarek Poplawski" , "Thomas Gleixner" , "Linus Torvalds" , "Jean-Baptiste Vignaud" , linux-kernel , shemminger , linux-net , netdev , "Andrew Morton" , "Alan Cox" Subject: Re: 2.6.20->2.6.21 - networking dies after random time In-Reply-To: <20070726091254.GA8063@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070724080534.GC18740@elte.hu> <20070724200431.GA22190@elte.hu> <1185322771.4175.102.camel@chaos> <4bacf17f0707260016x14fc1c92s628ae64353663833@mail.gmail.com> <20070726081326.GA3197@ff.dom.local> <1185437431.3227.21.camel@chaos> <20070726083120.GA26910@elte.hu> <20070726085523.GA3423@ff.dom.local> <20070726091254.GA8063@elte.hu> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 2007/7/26, Ingo Molnar : > (..) > yeah - i meant to cover both arches but forgot about x86_64 - updated > patch attached below. > > Ingo > > -----------------> > Subject: x86: activate HARDIRQS_SW_RESEND > From: Ingo Molnar > > activate the software-triggered IRQ-resend logic. > > it appears some chipsets/cpus do not handle local-APIC driven IRQ > resends all that well, so always use the soft mechanism to trigger > the execution of pending interrupts. > > Signed-off-by: Ingo Molnar > --- > arch/i386/Kconfig | 4 ++++ > arch/x86_64/Kconfig | 4 ++++ > kernel/irq/manage.c | 8 ++++++++ > 3 files changed, 16 insertions(+) > > Index: linux-rt-rebase.q/arch/i386/Kconfig > =================================================================== > --- linux-rt-rebase.q.orig/arch/i386/Kconfig > +++ linux-rt-rebase.q/arch/i386/Kconfig > @@ -1284,6 +1284,10 @@ config GENERIC_PENDING_IRQ > depends on GENERIC_HARDIRQS && SMP > default y > > +config HARDIRQS_SW_RESEND > + bool > + default y > + > config X86_SMP > bool > depends on SMP && !X86_VOYAGER > Index: linux-rt-rebase.q/arch/x86_64/Kconfig > =================================================================== > --- linux-rt-rebase.q.orig/arch/x86_64/Kconfig > +++ linux-rt-rebase.q/arch/x86_64/Kconfig > @@ -721,6 +721,10 @@ config GENERIC_PENDING_IRQ > depends on GENERIC_HARDIRQS && SMP > default y > > +config HARDIRQS_SW_RESEND > + bool > + default y > + > menu "Power management options" > > source kernel/power/Kconfig > Index: linux-rt-rebase.q/kernel/irq/manage.c > =================================================================== > --- linux-rt-rebase.q.orig/kernel/irq/manage.c > +++ linux-rt-rebase.q/kernel/irq/manage.c > @@ -175,6 +175,14 @@ void enable_irq(unsigned int irq) > desc->depth--; > } > spin_unlock_irqrestore(&desc->lock, flags); > +#ifdef CONFIG_HARDIRQS_SW_RESEND > + /* > + * Do a bh disable/enable pair to trigger any pending > + * irq resend logic: > + */ > + local_bh_disable(); > + local_bh_enable(); > +#endif > } > EXPORT_SYMBOL(enable_irq); This patch didn't help (tested on 2.6.22.1) - ne2k_pci timed out. ps: I retested all patches posted in this thread on top of 2.6.22.1 and behavior from 2.6.21.3 didn't changed. My next tests will be on 2.6.22.x only. Regards, Marcin Slusarz