From owner-freebsd-stable@FreeBSD.ORG Tue Oct 24 11:50:03 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0930F16A403; Tue, 24 Oct 2006 11:50:02 +0000 (UTC) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (lath.rinet.ru [195.54.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17E7143D46; Tue, 24 Oct 2006 11:50:01 +0000 (GMT) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (localhost [127.0.0.1]) by lath.rinet.ru (8.13.6/8.13.6) with ESMTP id k9OBo0KB062582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Oct 2006 15:50:00 +0400 (MSD) (envelope-from oleg@lath.rinet.ru) Received: (from oleg@localhost) by lath.rinet.ru (8.13.6/8.13.6/Submit) id k9OBo0Hc062581; Tue, 24 Oct 2006 15:50:00 +0400 (MSD) (envelope-from oleg) Date: Tue, 24 Oct 2006 15:49:59 +0400 From: Oleg Bulyzhin To: Kris Kennaway Message-ID: <20061024114959.GA62148@lath.rinet.ru> References: <2a41acea0610181531y732cd5sa7bf733cc445491c@mail.gmail.com> <20061018171704.A3851@demos.bsdclusters.com> <4537C126.5000207@FreeBSD.org> <2a41acea0610191140j13d43e12q72fc7697652e222a@mail.gmail.com> <20061019190221.GH71000@droso.net> <2a41acea0610191418q6c6fac45xdd9ad824bd6cae2f@mail.gmail.com> <20061021061706.GN40362@FreeBSD.org> <20061021165752.GA9681@xor.obsecurity.org> <20061021173250.GB75694@cell.sick.ru> <20061021230941.GA15744@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061021230941.GA15744@xor.obsecurity.org> User-Agent: Mutt/1.5.11 Cc: Gleb Smirnoff , freebsd-stable@freebsd.org, Jack Vogel Subject: Re: em network issues X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 11:50:03 -0000 On Sat, Oct 21, 2006 at 07:09:41PM -0400, Kris Kennaway wrote: > On Sat, Oct 21, 2006 at 09:32:50PM +0400, Gleb Smirnoff wrote: > > On Sat, Oct 21, 2006 at 12:57:52PM -0400, Kris Kennaway wrote: > > K> On Sat, Oct 21, 2006 at 10:17:06AM +0400, Gleb Smirnoff wrote: > > K> > On Thu, Oct 19, 2006 at 02:18:13PM -0700, Jack Vogel wrote: > > K> > J> The engineer in our test group has installed 6.2 BETA2 and attempted via a > > K> > J> number of tests to reproduce this problem, the machine even shares the em > > K> > J> interrupt with usb, and yet so far he has been unsuccessful. > > K> > > > K> > I've failed to reproduce on a system where IRQ was shared between em(4) > > K> > and fxp(4). I've put traffic on both, but failed to reproduce. Probably > > K> > shared IRQ is required, but not sufficient. > > K> > > K> Note what I've said a couple of times now...blasting packets out over > > K> the shared em doesn't trigger it for me either. I can trigger it by > > K> fetching via FTP from a remote machine over the em. > > > > I suppose the TCP_STREAM test from the netperf is the same as ftp > > fetch. > > Maybe, but why not just try fetch? ;) > > FYI, I still get timeouts from fetch on a shared em/fxp irq with > DEVICE_POLLING configured. Turning on INTR_MPSAFE in the driver is > the only known "fix" so far for this condition. > > Kris It looks strange to me: if em(4) driver was built with DEVICE_POLLING, it should use INTR_MPSAFE handler: #ifdef DEVICE_POLLING if (adapter->int_handler_tag == NULL && (error = bus_setup_intr(dev, adapter->res_interrupt, INTR_TYPE_NET | INTR_MPSAFE, em_intr, adapte r, &adapter->int_handler_tag)) != 0) { device_printf(dev, "Failed to register interrupt handler"); return (error); } #else -- Oleg.