Re: CFT: vr(4)

From: Phil Oleson <oz_at_nixil.net>
Date: Mon, 03 Mar 2008 10:02:07 -0700
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: <VIA VT6105M Rhine III 10/100BaseTX> port 0x9c00-0x9cff mem 
>  > 0xfceff000-0xfceff0ff irq 18 at device 8.0 on pci3
>  > vr0: Quirks: 0x6
>  > vr0: Revision: 0x96
>  > miibus1: <MII bus> on vr0
>  > ukphy0: <Generic IEEE 802.3u media interface> 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: <VIA VT6102 Rhine II 10/100BaseTX> 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.





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_at_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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480800<SYSCALL,MP,MMX+,3DNow!+,3DNow!>
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: <SOYO AWRDACPI> 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: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0x4000-0x407f,0x4080-0x40ff,0x5000-0x500f on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
nvidia0: <GeForce FX 5500> mem 0xe0000000-0xe0ffffff,0xd0000000-0xdfffffff irq 10 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
bt0: <Buslogic Multi-Master SCSI Host Adapter> 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: <NEC uPD 9210 USB controller> mem 0xe3001000-0xe3001fff irq 5 at device 11.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0
usb0: <NEC uPD 9210 USB controller> 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: <NEC uPD 9210 USB controller> mem 0xe3002000-0xe3002fff irq 10 at device 11.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0
usb1: <NEC uPD 9210 USB controller> 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: <NEC uPD 720100 USB 2.0 controller> 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: <NEC uPD 720100 USB 2.0 controller> 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: <CMedia CMI8738> 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: <VIA VT8233 Power Management Unit> port 0x5000-0x500f at device 17.0 on pci0
viapropm0: SMBus revision code 0x0
smbus0: <System Management Bus> on viapropm0
smb0: <SMBus generic I/O> on smbus0
isa0: <ISA bus> on viapropm0
atapci0: <VIA 8233 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd800-0xd80f at device 17.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 5 at device 17.2 on pci0
uhci0: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xe000-0xe01f irq 5 at device 17.3 on pci0
uhci1: [GIANT-LOCKED]
usb4: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 5 at device 17.4 on pci0
uhci2: [GIANT-LOCKED]
usb5: <VIA 83C572 USB controller> 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: <VIA VT6102 Rhine II 10/100BaseTX> 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: <floppy drive controller> 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: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcf7ff,0xd0000-0xd07ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> 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 <Maxtor 6H500R0 HA3D1DD0> at ata0-master UDMA100
ad1: 381554MB <Seagate ST3400620A 3.AAC> at ata0-slave UDMA100
acd0: DMA limited to UDMA33, device found non-ATA66 cable
acd0: DVDR <DVD-RW IDE1008/VER 0159> 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: <DVDRW IDE1008 0159> 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
Received on Mon Mar 03 2008 - 16:28:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:28 UTC