Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761290AbXEURIU (ORCPT ); Mon, 21 May 2007 13:08:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756678AbXEURIC (ORCPT ); Mon, 21 May 2007 13:08:02 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:49222 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756468AbXEURIA (ORCPT ); Mon, 21 May 2007 13:08:00 -0400 Date: Mon, 21 May 2007 12:07:57 -0500 To: Sivakumar Subramani Cc: Jeff Garzik , linux-pci@atrey.karlin.mff.cuni.cz, netdev@vger.kernel.org, James.Bottomley@SteelEye.com, linux-kernel@vger.kernel.org, Ramkrishna Vepa , Rastapur Santosh , Leonid Grossman , Sreenivasa Honnur , Sriram Rapuru Subject: Re: [PATCH 1/2] s2io: add PCI error recovery support Message-ID: <20070521170757.GC5921@austin.ibm.com> References: <20070514233730.GA4511@austin.ibm.com> <78C9135A3D2ECE4B8162EBDCE82CAD77019D47CC@nekter> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78C9135A3D2ECE4B8162EBDCE82CAD77019D47CC@nekter> User-Agent: Mutt/1.5.11 From: linas@austin.ibm.com (Linas Vepstas) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1239 Lines: 36 On Fri, May 18, 2007 at 03:06:53AM -0400, Sivakumar Subramani wrote: > Hi, > > Fix looks good. I have couple of comments, > > 1) Return from s2io_updt_stats function if the PCI bus is offline > (pci_channel_offline). > if (pci_channel_offline(pdev)) > return; OK, missed that one. > 2) No Need to call netif_wake_queue() in s2io_io_resume as > netif_device_attach() will take care of calling it. OK. > 3) We need to return from s2io_msix_ring_handle(), > s2io_msix_fifo_handle(), s2io_msi_handle() if the PCI channel is > offline. Some thing similary to the below condition that is added in the > s2io_isr() I was thinking that these wouldn't be needed, as MSI should stop flowing along with everything else. However, there is a small race window where the MSI was delivered on the PCI bus, then the error was detected, and then the kernel delivers the MSI to device driver. The if statements should close that gap. I'll send an updated patch shortly. --linas - 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/