Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 21 Aug 2002 12:02:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 21 Aug 2002 12:02:23 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.102]:34541 "EHLO e2.ny.us.ibm.com") by vger.kernel.org with ESMTP id ; Wed, 21 Aug 2002 12:02:22 -0400 Date: Wed, 21 Aug 2002 09:04:01 -0700 From: "Martin J. Bligh" Reply-To: "Martin J. Bligh" To: "Feldman, Scott" , "'Troy Wilson'" , Jeff Garzik cc: linux-kernel@vger.kernel.org, tcw@prismnet.com Subject: RE: mdelay causes BUG, please use udelay Message-ID: <2544596606.1029920638@[10.10.2.3]> In-Reply-To: <288F9BF66CD9D5118DF400508B68C4460283E4AF@orsmsx113.jf.intel.com> References: <288F9BF66CD9D5118DF400508B68C4460283E4AF@orsmsx113.jf.intel.com> X-Mailer: Mulberry/2.1.2 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1215 Lines: 28 >> - msec_delay(10); >> + usec_delay(10000); > > Jeff, 10000 seems on the border of what's OK. If it's acceptable, > then let's go for that. Otherwise, we're going to have to chain > several mod_timer callbacks together to do a controller reset. Whilst this sort of delay in interrupt context is undoubtedly bad any way we do it, I'd question the context a little more before we make a decision. This is called from e1000_reset_hw - are we likely to ever actually call this except under initialisation? If we just do it once on system boot, I'd say evil hacks (like this) are acceptable. If we're going to do this under load, it definitely needs fixing. FWIW, this is heavily tested under Apache webserver load on a maxed out 8 CPU system with at least 4 (8?) gigabit ethernet cards. Whilst undoubtedly ugly, it's better than what we have now, so might I suggest that we do this for now until a real fix is forthcoming if we decide it's needed? Martin. - 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/