From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 20 00:14:07 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52F7516A40B for ; Tue, 20 Mar 2007 00:14:07 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id 0986813C4D9 for ; Tue, 20 Mar 2007 00:14:06 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so660371nza for ; Mon, 19 Mar 2007 17:14:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=opv8vCSr2GDDP2xQgL1rKUmWmYhGiLA4RdlyacJadVYMawSG8BjVH9YB/W47BPpezAgcZr7eXKOfkwwMWmdxYxkVkhSpNugvo5KB4qMuTl3mVf+8m7rIUS06wsqVZPw4xGDiZ+3HVIt5A2Bwq4TM1tAJeMzS1L7W7YsB/aMsa50= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=J1nsG//ZskeFqFP+WPdsiixbgXksmGyeO7XBe/mjMmyrbZ1duA/sn07FNMmh4uSCl2rMPxAJg+EebWe/0ZZoiB67QiTH+RCHqatw/OL6CdDcQhcZvlaDtA2qw9XpG48yFf6CfFJZ/sTn7eVd2dk+cbBJggcXPVnBBAZ6mPTPmSY= Received: by 10.35.106.1 with SMTP id i1mr11540750pym.1174349646333; Mon, 19 Mar 2007 17:14:06 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id 20sm50020nzp.2007.03.19.17.14.03; Mon, 19 Mar 2007 17:14:05 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id l2K0Hpqi018153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Mar 2007 09:17:52 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l2K0HmM0018152; Tue, 20 Mar 2007 09:17:48 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 20 Mar 2007 09:17:48 +0900 From: Pyun YongHyeon To: Danny Braniss Message-ID: <20070320001748.GA17911@cdnetworks.co.kr> References: <45FACBE4.5090403@icyb.net.ua> <20070319102444.GD13303@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, Andriy Gapon , freebsd-amd64@freebsd.org Subject: Re: nve: ethernet address reversal code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2007 00:14:07 -0000 On Mon, Mar 19, 2007 at 05:53:10PM +0200, Danny Braniss wrote: > I compiled the latest -current, with the latest nfe, and I got a slight > regression :-) > ... > nfe0: port 0xdc00-0xdc07 mem > 0xfe02c000-0xfe02cfff irq 21 at device 20.0 on pci0 > nfe0: Ethernet address: 50:71:a9:f3:18:00 > nfe0: MII without any phy! > kernel trap 12 with interrupts disabled > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x1b8 > fault code = supervisor read data, page not present > instruction pointer = 0x8:0xffffffff80448cdf > stack pointer = 0x10:0xffffffff80aea7a0 > frame pointer = 0x10:0xffffffff80aea7d0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = resume, IOPL = 0 > current process = 0 (swapper) > [thread pid 0 tid 0 ] > Stopped at _mtx_lock_sleep+0x7f: movl 0x1b8(%r13),%r9d > Sorry for the breakge. I've updated nfe(4) again at the following URL. http://people.freebsd.org/~yongari/nfe/WIP/if_nfe.c http://people.freebsd.org/~yongari/nfe/WIP/if_nfereg.h http://people.freebsd.org/~yongari/nfe/WIP/if_nfevar.h > with a slightly older nfe: > > nfe0: port 0xdc00-0xdc07 mem > 0xfe02c000-0xfe02cfff irq 21 at device 20.0 on pci0 > nfe0: Ethernet address: 50:71:a9:f3:18:00 > miibus1: on nfe0 > e1000phy0: PHY 11 on miibus1 > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, > auto > > danny > > -- Regards, Pyun YongHyeon