Skip site navigation (1)Skip section navigation (2)
Date:      17 Aug 2001 11:21:56 -0400
From:      Nat Lanza <magus@cs.cmu.edu>
To:        Warner Losh <imp@harmony.village.org>
Cc:        stable@FreeBSD.ORG
Subject:   Re: "wi0: watchdog timeout" errors in STABLE
Message-ID:  <kh66bmww2z.fsf@dzerzhinsky.rem.cs.cmu.edu>
In-Reply-To: <200108170356.f7H3ugW37487@harmony.village.org>
References:  <khn150w0jh.fsf@dzerzhinsky.rem.cs.cmu.edu> <200108170356.f7H3ugW37487@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=

Warner Losh <imp@harmony.village.org> writes:

> This is an interrupt routing issue, almost certainly.  I recently
> committed a bunch of code in that area that should have made things
> much better, but appears to have made things a little worse for some
> people.
> 
> Can you send me the following:
> 	dmesg (old and new kenrels)
> 	pccardc rdreg
> 	pciconf -r pciX:Y:Z 0:0xff	(where X:Y:Z is the pci addr
> 					 of the pcic device with the problem)

I'm also noticing that the machine hangs on startup about half of the
time; the last boot message in these cases is

  pcic0: Event mask 0xf

When the machine does boot, it doesn't notice the WaveLAN card until I
run 'pccardc power 0 1'. At that point, the card is detected, and
things look normal. I get a series of 'watchdog timeout' errors after
setting up WEP and running 'dhclient wi0', though.

After dhclient fails, I take down the wi0 interface, run
'pccardc power 0 0', and eject the card. I get a 'card deactivated'
message when I run the pccardc command, but no 'card removed' message
when ejecting the card.

I do get a card removed message when I plug in and activate the
minipci fxp interface built into the laptop, along with the other
pcic0 messages I mentioned.

Here's the log output (actually a trimmed /var/log/messages excerpt)
for the old kernel:


--=-=-=
Content-Disposition: attachment; filename=dmesg-old
Content-Description: Old kernel

Copyright (c) 1992-2001 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 4.3-STABLE #2: Mon Jul 23 22:54:34 EDT 2001
    root@gunboat:/usr/obj/usr/src/sys/GUNBOAT
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (192.36-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 134217728 (131072K bytes)
avail memory = 126873600 (123900K bytes)
Preloaded elf kernel "kernel" at 0xc02da000.
VESA: v2.0, 8192k memory, flags:0x0, mode table:0xc0285da2 (1000022)
VESA: S3 Incorporated. M7 BIOS
Pentium Pro MTRR support enabled
md0: Malloc disk
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <S3 model 8c12 graphics accelerator> at 0.0 irq 11
pcic-pci0: <TI PCI-1450 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 11 at device 2.0 on pci0
pcic-pci0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pcic-pci1: <TI PCI-1450 PCI-CardBus Bridge> mem 0x50100000-0x50100fff irq 11 at device 2.1 on pci0
pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pci0: <unknown card> (vendor=0x8086, dev=0x1229) at 3.0 irq 11
pci0: <unknown card> (vendor=0x11c1, dev=0x045c) at 3.1 irq 11
csa0: <Crystal Semiconductor CS4614/4622/4624 Audio accelerator/4280 Audio controller> mem 0xe8000000-0xe80fffff,0xe8122000-0xe8122fff irq 11 at device 5.0 on pci0
pcm0: <CS461x PCM Audio> on csa0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1850-0x185f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11
intpm0: <Intel 82371AB Power management controller> port 0x1040-0x104f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 1040
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
intpm0: PM I/O mapped 1000 
orm0: <Option ROMs> at iomem 0xc0000-0xcbfff,0xcc000-0xcd7ff,0xdc000-0xdffff,0xe0000-0xeffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
pcic0: <Intel i82365SL-DF> at port 0x3e0-0x3e1 on isa0
pcic0: Polling mode
pccard0: <PC Card bus (classic)> on pcic0
pccard1: <PC Card bus (classic)> on pcic0
unknown: <PNP0c01> can't assign resources
unknown: <PNP0000> can't assign resources
unknown: <PNP0303> can't assign resources
unknown: <PNP0c02> can't assign resources
unknown: <PNP0c02> can't assign resources
unknown: <IBM0071> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <IBM3780> can't assign resources
unknown: <PNP0680> can't assign resources
unknown: <PNP0680> can't assign resources
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
ad0: 30520MB <IBM-DJSA-232> [66144/15/63] at ata0-master UDMA33
acd0: DVD-ROM <HITACHI DVD-ROM GD-S200> at ata1-master using UDMA33
Mounting root from ufs:/dev/ad0s3a
pccard: card inserted, slot 0
wi0: <WaveLAN/IEEE 802.11> at port 0x240-0x27f irq 3 slot 0 on pccard0
wi0: Ethernet address: 00:02:2d:0c:c5:c6

--=-=-=


Here's the dmesg output for the new kernel:


--=-=-=
Content-Disposition: attachment; filename=dmesg-new
Content-Description: New kernel

Copyright (c) 1992-2001 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 4.4-RC #1: Thu Aug 16 12:53:16 EDT 2001
    root@gunboat:/usr/obj/usr/src/sys/GUNBOAT
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (192.51-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 134217728 (131072K bytes)
avail memory = 126889984 (123916K bytes)
Preloaded elf kernel "kernel" at 0xc02d6000.
VESA: v2.0, 8192k memory, flags:0x0, mode table:0xc02808a2 (1000022)
VESA: S3 InMTRR support enabled
md0: Malloc disk
Copyright (c) 1992-2001 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 4.4-RC #1: Thu Aug 16 12:53:16 EDT 2001
    root@gunboat:/usr/obj/usr/src/sys/GUNBOAT
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (192.51-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 134217728 (131072K bytes)
avail memory = 126889984 (123916K bytes)
Preloaded elf kernel "kernel" at 0xc02d6000.
VESA: v2.0, 8192k memory, flags:0x0, mode table:0xc02808a2 (1000022)
VESA: S3 Incorporated. M7 BIOS
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 11 entries at 0xc00fdee0
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <S3 model 8c12 graphics accelerator> at 0.0 irq 11
pcic0: <TI PCI-1450 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 11 at device 2.0 on pci0
pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][pci only]
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <TI PCI-1450 PCI-CardBus Bridge> mem 0x50100000-0x50100fff irq 11 at device 2.1 on pci0
pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][pci only]
pccard1: <PC Card bus (classic)> on pcic1
pci0: <unknown card> (vendor=0x8086, dev=0x1229) at 3.0 irq 11
pci0: <unknown card> (vendor=0x11c1, dev=0x045c) at 3.1 irq 11
csa0: <CS4280/CS4614/CS4622/CS4624/CS4630> mem 0xe8000000-0xe80fffff,0xe8122000-0xe8122fff irq 11 at device 5.0 on pci0
csa: card is Thinkpad 600X/A20/T20
pcm0: <CS461x PCM Audio> on csa0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1850-0x185f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11
intpm0: <Intel 82371AB Power management controller> port 0x1040-0x104f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 1040
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
intpm0: PM I/O mapped 1000 
orm0: <Option ROMs> at iomem 0xc0000-0xcbfff,0xcc000-0xcd7ff,0xdc000-0xdffff,0xe0000-0xeffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
unknown: <PNP0c01> can't assign resources
unknown: <PNP0000> can't assign resources
unknown: <PNP0303> can't assign resources
unknown: <PNP0c02> can't assign resources
unknown: <PNP0c02> can't assign resources
unknown: <IBM0071> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <IBM3780> can't assign resources
unknown: <PNP0680> can't assign resources
unknown: <PNP0680> can't assign resources
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
ad0: 30520MB <IBM-DJSA-232> [66144/15/63] at ata0-master UDMA33
acd0: DVD-ROM <HITACHI DVD-ROM GD-S200> at ata1-master using UDMA33
Mounting root from ufs:/dev/ad0s3a
pccard: card inserted, slot 0
wi0: <WaveLAN/IEEE 802.11> at port 0x240-0x27f irq 11 slot 0 on pccard0
wi0: Ethernet address: 00:02:2d:0c:c5:c6
wi0: watchdog timeout
wi0: watchdog timeout
wi0: watchdog timeout
wi0: watchdog timeout
wi0: watchdog timeout
wi0: detached
pccard: card deactivated, slot 0
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x1800-0x183f mem 0xe8100000-0xe811ffff,0xe8120000-0xe8120fff irq 11 at device 3.0 on pci0
fxp0: Ethernet address 00:03:47:74:da:f5
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcic0: Event mask 0xf
pcic0: debounced state is 0x30000316
pccard: card removed, slot 0

--=-=-=



Here's the 'pccardc rdreg' output, both with and without the WaveLAN
card inserted:

(with WaveLAN)
---- cut here ----
Registers for slot 0
00: 84 6f 91 70 00 00 40 0a 40 02 7f 02 00 00 00 00
10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Registers for slot 1
00: 84 00 10 50 00 00 00 00 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
---- cut here ----

(without WaveLAN)

---- cut here ----
Registers for slot 0
00: 84 4c 10 50 00 00 00 00 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Registers for slot 1
00: 84 00 10 50 00 00 00 00 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
---- cut here ----

And here's the 'pciconf -r' output for both pcic devices:

pcic0:
---- cut here ----
0xac1b104c 0x02100007 0x06070003 0x00824008
0x50000000 0x020000a0 0xb0040200 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x0760010b
0x01301014 0x00000001 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x0844f078 0x00000000 0x80018080 0x00001000
0x606083c0 0x00000000 0x00000000 0x00000000
0xfe110001 0x00c08000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
---- cut here ----

pcic1:
---- cut here ----
0xac1b104c 0x02100007 0x06070003 0x00824008
0x50100000 0x020000a0 0xb0070500 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x0760020b
0x01301014 0x00000001 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x0844d078 0x00000000 0x80018080 0x00001000
0x606082c0 0x00000000 0x00000000 0x00000000
0xfe110001 0x00c00000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
---- cut here ----

If you want me to try anything else or provide any other information,
just let me know.

Thanks!


--nat

--=-=-=--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?kh66bmww2z.fsf>