Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751269AbWAZA2x (ORCPT ); Wed, 25 Jan 2006 19:28:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751275AbWAZA2x (ORCPT ); Wed, 25 Jan 2006 19:28:53 -0500 Received: from xproxy.gmail.com ([66.249.82.202]:47939 "EHLO xproxy.gmail.com") by vger.kernel.org with ESMTP id S1751253AbWAZA2w convert rfc822-to-8bit (ORCPT ); Wed, 25 Jan 2006 19:28:52 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PLfkjxeXJm/VEqEOCfSrNC9RbFVC/l7s9A2KaAT4gokJ0iDh4BYVRpSRoMJgRIyGXC4yhbg+tasRj5elIk2kqC3hAYSOJ4xh6RtPBmhFTpi1ZUnfMdfXcHcJbpPeiYjx/PTFlOSYmmjhXWM8uckj7KjrGkWS+H8U8qrcY8xIqa4= Message-ID: <4807377b0601251628k4227dad0ld731f2c25c211b91@mail.gmail.com> Date: Wed, 25 Jan 2006 16:28:48 -0800 From: Jesse Brandeburg To: Olaf Kirch Subject: Re: e100 oops on resume Cc: Stefan Seyfried , Linux Kernel Mailing List , netdev@vger.kernel.org In-Reply-To: <4807377b0601251137r7621216byc47b03a3c634557c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <20060124225919.GC12566@suse.de> <20060124232142.GB6174@inferi.kami.home> <20060125090240.GA12651@suse.de> <20060125121125.GH5465@suse.de> <4807377b0601251137r7621216byc47b03a3c634557c@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1503 Lines: 33 On 1/25/06, Jesse Brandeburg wrote: > On 1/25/06, Olaf Kirch wrote: > > On Wed, Jan 25, 2006 at 10:02:40AM +0100, Olaf Kirch wrote: > > > I'm not sure what the right fix would be. e100_resume would probably > > > have to call e100_alloc_cbs early on, while e100_up should avoid > > > calling it a second time if nic->cbs_avail != 0. A tentative patch > > > for testing is attached. > > > > Reportedly, the patch fixes the crash on resume. > > Cool, thanks for the research, I have a concern about this however. > > its an interesting patch, but it raises the question why does > e100_init_hw need to be called at all in resume? I looked back > through our history and that init_hw call has always been there. I > think its incorrect, but its taking me a while to set up a system with > the ability to resume. > > everywhere else in the driver alloc_cbs is called before init_hw so it > just seems like a long standing bug. > > comments? anyone want to test? i compile tested this, but it is untested. Okay I reproduced the issue on 2.6.15.1 (with S1 sleep) and was able to show that my patch that just removes e100_init_hw works okay for me. Let me know how it goes for you, I think this is a good fix. Jesse - 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/