From owner-freebsd-current@FreeBSD.ORG Wed Aug 25 17:52:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09EC916A4CE for ; Wed, 25 Aug 2004 17:52:54 +0000 (GMT) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC6EC43D58 for ; Wed, 25 Aug 2004 17:52:53 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 31413 invoked from network); 25 Aug 2004 17:52:53 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail2.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 25 Aug 2004 17:52:53 -0000 Received: from hydrogen.funkthat.com (fwdixg@localhost.funkthat.com [127.0.0.1])i7PHqpuU004672 for ; Wed, 25 Aug 2004 10:52:52 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i7PHqo4H004671 for freebsd-current@freebsd.org; Wed, 25 Aug 2004 10:52:50 -0700 (PDT) Date: Wed, 25 Aug 2004 10:52:50 -0700 From: John-Mark Gurney To: freebsd-current@freebsd.org Message-ID: <20040825175250.GO29902@funkthat.com> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Subject: if_re locking patch... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 17:52:54 -0000 To expand upon the patch posted previously, I have cribbed bms's rl locking, and ported it to re. This makes the interrupt MPSAFE along with the rest of the driver. No more GIANT LOCKED messages for re. :) Right now I'm doing some testing, and so far I've been able to transfer over 3gig's of data w/o any problems. So, please test the patch and let me know how it goes: http://people.FreeBSD.org/~jmg/if_re.diff NetGear GA311: re0: port 0xd800-0xd8ff mem 0xe8000000-0xe80000ff irq 10 at device 9.0 on pci0 miibus0: on re0 rgephy0: on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto re0: Ethernet address: 00:50:fc:f7:5b:d0 ConnectGear mumble muble (don't have the box with me): re1: port 0xe000-0xe0ff mem 0xe8002000-0xe80020ff irq 11 at device 11.0 on pci0 miibus1: on re1 rgephy1: on miibus1 rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto re1: Ethernet address: 00:09:5b:8f:5f:c7 -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."