Received: with ECARTIS (v1.0.0; list netdev); Thu, 26 May 2005 19:17:47 -0700 (PDT) Received: from mail.dvmed.net (mail.dvmed.net [216.237.124.58]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j4R2HhXq015111 for ; Thu, 26 May 2005 19:17:44 -0700 Received: from cpe-065-184-065-144.nc.res.rr.com ([65.184.65.144] helo=[10.10.10.88]) by mail.dvmed.net with esmtpsa (Exim 4.51 #1 (Red Hat Linux)) id 1DbUP6-000384-AY; Fri, 27 May 2005 02:16:52 +0000 Message-ID: <42968312.90901@pobox.com> Date: Thu, 26 May 2005 22:16:50 -0400 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Fedora/1.7.6-1.2.5 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Francois Romieu CC: Grant Grundler , akpm@osdl.org, T-Bone@parisc-linux.org, varenet@parisc-linux.org, Linux Kernel , Netdev Subject: Re: patch tulip-natsemi-dp83840a-phy-fix.patch added to -mm tree References: <200505101955.j4AJtX9x032464@shell0.pdx.osdl.net> <42881C58.40001@pobox.com> <20050516050843.GA20107@colo.lackof.org> <4288CE51.1050703@pobox.com> <20050521223959.GA4337@electric-eye.fr.zoreil.com> In-Reply-To: <20050521223959.GA4337@electric-eye.fr.zoreil.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 1725 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: jgarzik@pobox.com Precedence: bulk X-list: netdev Content-Length: 818 Lines: 28 Francois Romieu wrote: > Jeff Garzik : > [tulip_media_select] > >>1) called from timer context, from the media poll timer >> >>2) called from spin_lock_irqsave() context, in the ->tx_timeout hook. >> >>The first case can be fixed by moved all the timer code to a workqueue. >> Then when the existing timer fires, kick the workqueue. >> >>The second case can be fixed by kicking the workqueue upon tx_timeout >>(which is the reason why I did not suggest queue_delayed_work() use). > > > First try below. It only moves tulip_select_media() to process context. > The original patch (with s/udelay/msleep/ or such) is not included. > > Patch applies/compiles against 2.6.12-rc4. Looks pretty good to me, at first look. I'll give it some thought, and probably apply it, in a few days. Jeff