From owner-freebsd-net@FreeBSD.ORG Wed Oct 10 09:26:34 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B6FA16A41B for ; Wed, 10 Oct 2007 09:26:34 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id E67D513C465 for ; Wed, 10 Oct 2007 09:26:33 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id l9A9QWE9092486; Wed, 10 Oct 2007 05:26:32 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l9A9QVmo052657 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Oct 2007 05:26:32 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200710100926.l9A9QVmo052657@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 10 Oct 2007 05:27:06 -0400 To: "Jack Vogel" , "freebsd-net@freebsd.org" , "FreeBSD Current" From: Mike Tancsa In-Reply-To: <2a41acea0710091603u7b87d6fdsdaaadf4cafbea2d9@mail.gmail.co m> References: <2a41acea0710091603u7b87d6fdsdaaadf4cafbea2d9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Patch to add EEPROM dump X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2007 09:26:34 -0000 At 07:03 PM 10/9/2007, Jack Vogel wrote: >Mike, > > This is a patch against my 6.6.6 driver that adds a new value to the >debug sysctl, you would give the command 'sysctl dev.em.0.debug=2' >and it will dump out the first 32 16-bit words of the prom. Hi, Yes, I think this would be helpful indeed. I tried it on a few boxes at HQ Interface EEPROM Dump: Offset 0x0000 3000 8f48 8b3e 0d20 f746 0057 ffff ffff 0x0010 ffff ffff 026b 109a 15d9 109a 8086 80df 0x0020 0000 2000 7e54 0000 1000 00da 0004 2700 0x0030 6cc9 3150 0732 040b 2984 0000 c000 0706 Interface EEPROM Dump: Offset 0x0000 3000 8f48 8a3e 0d30 f746 00f4 ffff ffff 0x0010 ffff ffff 026b 108c 15d9 108c 8086 83df 0x0020 0008 2000 7e14 0048 1000 00d8 0000 2700 0x0030 6cc9 3150 0722 040b 0984 0000 c000 0706 em0@pci13:0:0: class=0x020000 card=0x108c15d9 chip=0x108c8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'PRO/1000 PM' class = network subclass = ethernet cap 01[c8] = powerspec 2 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit cap 10[e0] = PCI-Express 1 endpoint em1@pci14:0:0: class=0x020000 card=0x109a15d9 chip=0x109a8086 rev=0x00 hdr=0x00 vendor = 'Intel Corporation' class = network subclass = ethernet cap 01[c8] = powerspec 2 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit cap 10[e0] = PCI-Express 1 endpoint >I was wondering what the general reaction to this is, it may be useful >at some points in helping debug things. Yes, if anything to better identify a NIC and rev. Thanks for the addition! ---Mike >Comments? > >Jack > >Content-Type: application/octet-stream; name=eeprom-dump.patch >X-Attachment-Id: f_f7l0m8f3 >Content-Disposition: attachment; filename=eeprom-dump.patch > >_______________________________________________ >freebsd-current@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"