From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763274AbXJFRno (ORCPT ); Sat, 6 Oct 2007 13:43:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758159AbXJFRnc (ORCPT ); Sat, 6 Oct 2007 13:43:32 -0400 Received: from wa-out-1112.google.com ([209.85.146.177]:17564 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756750AbXJFRnb (ORCPT ); Sat, 6 Oct 2007 13:43:31 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bKNlb/YD2H5f6kKJfUf33OwrBbGT4JxUR8SpoOhNTGzXaW3/dPo6EBC8f4SgVzUFCgVSTle6VWUr7+3lHnssfZ8WkfK57cls5r1zVskebrQM5uqrr5/LzVNgpzqITgIsyM9o9ELecKlAn1Ah8D5iVfvlXy/qrsL7/4wc4maE4ps= Message-ID: <86802c440710061043u6e51cd7q468346bd06b08657@mail.gmail.com> Date: Sat, 6 Oct 2007 10:43:30 -0700 From: "Yinghai Lu" To: "Jeff Garzik" Subject: Re: MSI interrupts and disable_irq Cc: "Ayaz Abdulla" , "Manfred Spraul" , nedev , "Linux Kernel Mailing List" , "David Miller" , "Andrew Morton" In-Reply-To: <46FDBCB4.9090802@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46FC15A9.1070803@nvidia.com> <46FDBCB4.9090802@pobox.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 9/28/07, Jeff Garzik wrote: > Ayaz Abdulla wrote: > > I am trying to track down a forcedeth driver issue described by bug 9047 > > in bugzilla (2.6.23-rc7-git1 forcedeth w/ MCP55 oops under heavy load). > > I added a patch to synchronize the timer handlers so that one handler > > doesn't accidently enable the IRQ while another timer handler is running > > (see attachment 'Add timer lock' in bug report) and for other processing > > protection. > > > > However, the system still had an Oops. So I added a lock around the > > nv_rx_process_optimized() and the Oops has not happened (see attachment > > 'New patch for locking' in bug report). This would imply a > > synchronization issue. However, the only callers of that function are > > the IRQ handler and the timer handlers (in non-NAPI case). The timer > > handlers use disable_irq so that the IRQ handler does not contend with > > them. It looks as if disable_irq is not working properly. > > > > This issue repros only with MSI interrupt and not legacy INTx > > interrupts. Any ideas? > > (added linux-kernel to CC, since I think it's more of a general kernel > issue) > I wonder if the race is between soft_timer for nv_do_nic_poll from different CPUs YH