Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756205AbZCGSVF (ORCPT ); Sat, 7 Mar 2009 13:21:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755586AbZCGSUu (ORCPT ); Sat, 7 Mar 2009 13:20:50 -0500 Received: from out02.mta.xmission.com ([166.70.13.232]:37164 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbZCGSUt convert rfc822-to-8bit (ORCPT ); Sat, 7 Mar 2009 13:20:49 -0500 To: Yinghai Lu Cc: Jesse Brandeburg , David Miller , "Rafael J. Wysocki" , Ingo Molnar , Andrew Morton , "linux-kernel\@vger.kernel.org" , NetDev References: <49B1F934.5050006@kernel.org> <4807377b0903062318q15ba52a7n82d4c9399b8a7fa8@mail.gmail.com> <86802c440903062331j22aa57c7r93c84da880a8e572@mail.gmail.com> From: ebiederm@xmission.com (Eric W. Biederman) Date: Sat, 07 Mar 2009 10:20:42 -0800 In-Reply-To: <86802c440903062331j22aa57c7r93c84da880a8e572@mail.gmail.com> (Yinghai Lu's message of "Fri\, 6 Mar 2009 23\:31\:17 -0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-XM-SPF: eid=;;;mid=;;;hst=in01.mta.xmission.com;;;ip=67.169.126.145;;;frm=ebiederm@xmission.com;;;spf=neutral X-SA-Exim-Connect-IP: 67.169.126.145 X-SA-Exim-Rcpt-To: yinghai@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, mingo@elte.hu, rjw@sisk.pl, davem@davemloft.net, jesse.brandeburg@gmail.com X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-DCC: XMission; sa01 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Yinghai Lu X-Spam-Relay-Country: X-Spam-Report: * -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 T_TM2_M_HEADER_IN_MSG BODY: T_TM2_M_HEADER_IN_MSG * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 XM_SPF_Neutral SPF-Neutral Subject: Re: [PATCH] igb: fix kexec with igb X-SA-Exim-Version: 4.2.1 (built Thu, 25 Oct 2007 00:26:12 +0000) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2350 Lines: 67 Yinghai Lu writes: > On Fri, Mar 6, 2009 at 11:18 PM, Jesse Brandeburg > wrote: >> On Fri, Mar 6, 2009 at 8:33 PM, Yinghai Lu wrote: >>> >>> Impact: could probe igb >>> >>> Found one system with 82575EB, in the kernel that is kexeced, probe igb >>> failed with -2. >>> >>> it looks like the same behavior happened on forcedeth. >>> >>> try to check system_state to make sure if put it on D3 >>> >>> Signed-off-by: Yinghai Lu >>> >>> --- >>>  drivers/net/igb/igb_main.c |   19 ++++++++++++++----- >>>  1 file changed, 14 insertions(+), 5 deletions(-) >> >> I see the point of the patch, but I know for a fact that ixgbe when >> enabled for MSI-X also doesn't work with kexec. >> >> so my questions are: >> are you going to change every driver? > > i tend to only change driver that i have related HW. > >> why can't this be fixed in core kernel code instead? > will check it. > >> Shouldn't pci_enable_device take it out of D3? >> Or maybe it should be taken out of D3 immediately if someone tries to >> ioremap any of the BARx registers? > > > looks like second kernel can not detect the state any more. I know this has historically been a problem with the e1000 NICs. Placing the hardware in a state they can not get them out of on the reboot path. Last I heard (a couple of weeks ago?) we had code to bring devices out of a low power state that was working for the e1000 driver. YH can you look and see if you can find that code and if it works? Frankly I don't understand why anyone would want to power down a device when they are rebooting or shutting down a computer. That is a system state change. But it seems to be bleed over from the confusion that has been the power management code. If we can teach the kernel to handle this case with the proper enables and disables that would be great. Otherwise let's look at getting the responsibilities of the various methods sorted out so we can at least say with certainty what the various methods are supposed to do and not do. Eric -- 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/