From owner-freebsd-current@FreeBSD.ORG Mon Mar 3 17:28:46 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBA721065683 for ; Mon, 3 Mar 2008 17:28:46 +0000 (UTC) (envelope-from oz@nixil.net) Received: from nixil.net (nixil.net [161.58.222.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7A61A8FC16 for ; Mon, 3 Mar 2008 17:28:46 +0000 (UTC) (envelope-from oz@nixil.net) Received: from [192.168.1.69] (c-76-23-62-255.hsd1.ut.comcast.net [76.23.62.255]) (authenticated bits=0) by nixil.net (8.13.6.20060614/8.13.6) with ESMTP id m23H28fo047482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 3 Mar 2008 10:02:14 -0700 (MST) Message-ID: <47CC2F0F.2000808@nixil.net> Date: Mon, 03 Mar 2008 10:02:07 -0700 From: Phil Oleson User-Agent: Thunderbird 1.5.0.10 (X11/20070326) MIME-Version: 1.0 To: pyunyh@gmail.com References: <20080217112104.X80805@fledge.watson.org> <200803011655.m21GtcMU078673@lava.sentex.ca> <20080303013142.GE72895@cdnetworks.co.kr> <200803031010.28087.freebsd-current@dino.sk> <20080303104140.GA74947@cdnetworks.co.kr> In-Reply-To: <20080303104140.GA74947@cdnetworks.co.kr> Content-Type: multipart/mixed; boundary="------------010504030601060001080809" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (nixil.net [161.58.222.1]); Mon, 03 Mar 2008 10:02:16 -0700 (MST) X-Virus-Scanned: ClamAV 0.92.1/6093/Mon Mar 3 08:03:18 2008 on nixil.net X-Virus-Status: Clean X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: CFT: vr(4) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 17:28:47 -0000 This is a multi-part message in MIME format. --------------010504030601060001080809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Pyun YongHyeon wrote: > On Mon, Mar 03, 2008 at 10:10:25AM +0100, Milan Obuch wrote: > > On Monday 03 March 2008, Pyun YongHyeon wrote: > > > On Sat, Mar 01, 2008 at 11:53:41AM -0500, Mike Tancsa wrote: > > > > > > Sorry for late handling. I wanted to solve Milan Obuch's issue first > > > before committing vr(4). But it seems that it's not easy to fix > > > Milan's issue. :-( > > > > > > > Well, I see some progress there... Today I was able to do some tests again, > > and I was able to ping -f another box on the same network for some time. I > > tried then csup sources and I got hard hang, again, this time with following > > lines on console: > > > > vr0: PCI bus error -- resetting > > vr0: restarting > > > > Hmm, this is interesting. 6105M datasheet said nothing what can be > done for this case. I guess this kind of error can come from > improperly seated NICs or broken hardware. Would you re-seat the NIC > or change PCI slot and try again with attached patch? > > > And no ability to enter kdb, either. > > Just for record, I am getting following when kldload'ing if_vr: > > > > vr0: port 0x9c00-0x9cff mem > > 0xfceff000-0xfceff0ff irq 18 at device 8.0 on pci3 > > vr0: Quirks: 0x6 > > vr0: Revision: 0x96 > > miibus1: on vr0 > > ukphy0: PHY 1 on miibus1 > > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > > > (one out of four devices shown) > > > > > > At 07:30 PM 2/27/2008, Pyun YongHyeon wrote: > > > > >I never thought this kind of testing. It's good to hear vr(4) > > > > >recovers from the abrupt link change events. I guess this also > > > > >indicates the overhauled vr(4) can close lots of PR for vr(4). > > > > > > > > BTW, any chance of these fixes being backported to RELENG_7 and > > > > RELENG_6 ? Its not just media speed changes that causes the nic to > > > > > > I'm sure I'll MFC the change to RELENG_7 but not sure it could be > > > done on RELENG_6 due to lack of spare time. > > > > > > > In my eyes, if new vr works for others and no regression was found, it should > > go in. I did not encountered a regression - it did not work with old driver, > > it does not work (yet) with the new... but I hope we can get this one > > working, too... > > > > Yes, I really like to fix it too. > Hey.. unfortunately I have to chime in too.. (with a failure) Last night I was running a crusty RELENG_6 from about july of last year. I had some issues unrelated to this, so I decided to update the system to check if that resolved those issues (it did - RELENG_6 as of sometime last night). However, vr stopped working. As I remembered this thread, I booted to my old kernel, and downloaded the rewrite/patchset for 6 and tried it out. Unfortunately, It is failing: vr0: port 0xe800-0xe8ff mem 0xe3004000-0xe30040ff irq 10 at device 18.0 on pci0 vr0: Quirks: 0x0 vr0: Revision: 0x70 vr0: phy read timeout 31:1 vr0: MII without any phy! device_attach: vr0 attach returned 6 I'm attaching the complete dmesg, and the version of if_vr.c used.. (a couple of the smaller patches you suggested I hand applied to reduce the turnaround time). Any suggestions would be tested tonight. Thanks, Phil. --------------010504030601060001080809 Content-Type: text/plain; name="dmesg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg" Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.3-STABLE #10: Mon Mar 3 09:45:21 MST 2008 root@home.nixil.net:/usr/obj/usr/src/sys/home Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP 1700+ (1466.51-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff AMD Features=0xc0480800 real memory = 2147418112 (2047 MB) avail memory = 2088062976 (1991 MB) kbd1 at kbdmux0 hptrr: HPT RocketRAID controller driver v1.1 (Mar 3 2008 03:17:40) acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff,0x4000-0x407f,0x4080-0x40ff,0x5000-0x500f on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xe0000000-0xe0ffffff,0xd0000000-0xdfffffff irq 10 at device 0.0 on pci1 nvidia0: [GIANT-LOCKED] bt0: port 0xd000-0xd003 mem 0xe3000000-0xe3000fff irq 11 at device 10.0 on pci0 bt0: BT-958 FW Rev. 5.07B Ultra Wide SCSI Host Adapter, SCSI ID 7, 192 CCBs bt0: [GIANT-LOCKED] ohci0: mem 0xe3001000-0xe3001fff irq 5 at device 11.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xe3002000-0xe3002fff irq 10 at device 11.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0: mem 0xe3003000-0xe30030ff irq 11 at device 11.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 3 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 5 ports with 5 removable, self powered pcm0: port 0xd400-0xd4ff irq 10 at device 14.0 on pci0 viapropm0: SMBus I/O base at 0x5000 viapropm0: SMBus I/O base at 0x5000 viapropm0: port 0x5000-0x500f at device 17.0 on pci0 viapropm0: SMBus revision code 0x0 smbus0: on viapropm0 smb0: on smbus0 isa0: on viapropm0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd800-0xd80f at device 17.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xdc00-0xdc1f irq 5 at device 17.2 on pci0 uhci0: [GIANT-LOCKED] usb3: on uhci0 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered uhci1: port 0xe000-0xe01f irq 5 at device 17.3 on pci0 uhci1: [GIANT-LOCKED] usb4: on uhci1 usb4: USB revision 1.0 uhub4: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub4: 2 ports with 2 removable, self powered uhci2: port 0xe400-0xe41f irq 5 at device 17.4 on pci0 uhci2: [GIANT-LOCKED] usb5: on uhci2 usb5: USB revision 1.0 uhub5: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub5: 2 ports with 2 removable, self powered vr0: port 0xe800-0xe8ff mem 0xe3004000-0xe30040ff irq 10 at device 18.0 on pci0 vr0: Quirks: 0x0 vr0: Revision: 0x70 vr0: phy read timeout 31:1 vr0: MII without any phy! device_attach: vr0 attach returned 6 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcf7ff,0xd0000-0xd07ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 uaudio0: vendor 0x046d Camera, rev 2.00/1.00, addr 2 uaudio0: audio descriptors make no sense, error=4 device_attach: uaudio0 attach returned 6 Timecounter "TSC" frequency 1466510394 Hz quality 800 Timecounters tick every 1.000 msec hptrr: no controller detected. ad0: 476940MB at ata0-master UDMA100 ad1: 381554MB at ata0-slave UDMA100 acd0: DMA limited to UDMA33, device found non-ATA66 cable acd0: DVDR at ata1-master UDMA33 acd1: CDRW <48X12X50 CD-RW 1.04 20021101/1.04> at ata1-slave PIO4 Waiting 5 seconds for SCSI devices to settle acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 cd1 at ata1 bus 0 target 1 lun 0 cd1: < 48X12X50 CD-RW 1.04> Removable CD-ROM SCSI-0 device cd1: 16.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed Trying to mount root from ufs:/dev/ad0s1a --------------010504030601060001080809--