From owner-freebsd-mobile Wed Jun 27 11:47:17 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from inman.medianstrip.net (h0090278a06d6.ne.mediaone.net [66.31.22.240]) by hub.freebsd.org (Postfix) with ESMTP id 42ABB37B406 for ; Wed, 27 Jun 2001 11:46:57 -0700 (PDT) (envelope-from msr+freebsd@elision.org) Received: by inman.medianstrip.net (Postfix, from userid 1000) id CBE1E17435; Wed, 27 Jun 2001 14:47:12 -0400 (EDT) Date: Wed, 27 Jun 2001 14:47:12 -0400 From: mike ryan To: Warner Losh Cc: mobile@freebsd.org Subject: Re: pcic wavelan updated patch Message-ID: <20010627144712.A52470@medianstrip.net> Mail-Followup-To: Warner Losh , mobile@freebsd.org References: <200106270651.f5R6pTU34913@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200106270651.f5R6pTU34913@harmony.village.org>; from imp@harmony.village.org on Wed, Jun 27, 2001 at 12:51:29AM -0600 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 06/27/01, Warner Losh wrote: > > Many people have complained that I neglected to include parts of the > patch. > http://people.freebsd.org/~imp/pcic-stable.diff.6 > should contain them all. I've built a kernel with them on a separate > tree and it appears to work. > > These patches are relative to src/sys. You will need to rerun config > on the kernel. You will need a pccardd that is newer than June 5th. > > Please let me know how these work for you. on my sony vaio z505hs, this boots and detects insertion and removal events fine, but after pccardd attaches a driver to a freshly inserted wavelan card, the machine hangs. popping the card out brings the machine back to life. vmstat -i indicates a storm on the (shared) pcic interrupt: interrupt total rate stray irq7 4 0 ata0 irq14 9394 2 mux irq9 235941031 70535 atkbd0 irq1 8462 2 psm0 irq12 2745 0 clk irq0 334435 99 rtc irq8 428094 127 Total 236724165 70769 if i run without pccardd, i can insert and remove cards without hangs, but of course that's no fun... the stray irq7s are new, i've never had those on this hardware before. i updated from a roughly 6 week old 4.3-stable kernel at the same time as i applied the patch, so it's possible the patch didn't introduce these, but judging by the timing of the messages, i'm suspicious. /var/log/messages excerpt from a boot -v below. the interval between 12:58:56 and 13:23:23 is when the machine was hung. Jun 27 12:55:55 vapre /kernel: Copyright (c) 1992-2001 The FreeBSD Project. Jun 27 12:55:55 vapre /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Jun 27 12:55:55 vapre /kernel: The Regents of the University of California. All rights reserved. Jun 27 12:55:55 vapre /kernel: FreeBSD 4.3-STABLE #1: Wed Jun 27 12:54:29 EDT 2001 Jun 27 12:55:55 vapre /kernel: root@vapre.localdomain:/usr/src/sys/compile/VAPRE Jun 27 12:55:55 vapre /kernel: Calibrating clock(s) ... TSC clock: 496298990 Hz, i8254 clock: 1193159 Hz Jun 27 12:55:55 vapre /kernel: CLK_USE_I8254_CALIBRATION not specified - using default frequency Jun 27 12:55:55 vapre /kernel: Timecounter "i8254" frequency 1193182 Hz Jun 27 12:55:55 vapre /kernel: CLK_USE_TSC_CALIBRATION not specified - using old calibration method Jun 27 12:55:55 vapre /kernel: CPU: Pentium III/Pentium III Xeon/Celeron (496.31-MHz 686-class CPU) Jun 27 12:55:55 vapre /kernel: Origin = "GenuineIntel" Id = 0x681 Stepping = 1 Jun 27 12:55:55 vapre /kernel: Features=0x383f9ff Jun 27 12:55:55 vapre /kernel: real memory = 268369920 (262080K bytes) Jun 27 12:55:55 vapre /kernel: Physical memory chunk(s): Jun 27 12:55:55 vapre /kernel: 0x00001000 - 0x0009efff, 647168 bytes (158 pages) Jun 27 12:55:55 vapre /kernel: 0x0037b000 - 0x0ffe7fff, 264687616 bytes (64621 pages) Jun 27 12:55:55 vapre /kernel: avail memory = 257892352 (251848K bytes) Jun 27 12:55:55 vapre /kernel: bios32: Found BIOS32 Service Directory header at 0xc00f6cb0 Jun 27 12:55:55 vapre /kernel: bios32: Entry = 0xfd880 (c00fd880) Rev = 0 Len = 1 Jun 27 12:55:55 vapre /kernel: pcibios: PCI BIOS entry at 0x11e Jun 27 12:55:55 vapre /kernel: pnpbios: Found PnP BIOS data at 0xc00f6ce0 Jun 27 12:55:55 vapre /kernel: pnpbios: Entry = f0000:b33f Rev = 1.0 Jun 27 12:55:55 vapre /kernel: pnpbios: Event flag at 400 Jun 27 12:55:55 vapre /kernel: Other BIOS signatures found: Jun 27 12:55:55 vapre /kernel: ACPI: 000f6c50 Jun 27 12:55:55 vapre /kernel: Preloaded elf kernel "kernel" at 0xc0355000. Jun 27 12:55:55 vapre /kernel: Pentium Pro MTRR support enabled Jun 27 12:55:55 vapre /kernel: Using $PIR table, 8 entries at 0xc00fdf40 Jun 27 12:55:55 vapre /kernel: apm0: on motherboard Jun 27 12:55:55 vapre /kernel: apm: found APM BIOS v1.2, connected at v1.2 Jun 27 12:55:55 vapre /kernel: npx0: on motherboard Jun 27 12:55:55 vapre /kernel: npx0: INT 16 interface Jun 27 12:55:55 vapre /kernel: pcib0: on motherboard Jun 27 12:55:55 vapre /kernel: found-> vendor=0x8086, dev=0x7190, revid=0x03 Jun 27 12:55:55 vapre /kernel: class=06-00-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: map[10]: type 1, range 32, base 40000000, size 24 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x8086, dev=0x7191, revid=0x03 Jun 27 12:55:55 vapre /kernel: class=06-04-00, hdrtype=0x01, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=1 secondarybus=1 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x8086, dev=0x7110, revid=0x02 Jun 27 12:55:55 vapre /kernel: class=06-01-00, hdrtype=0x00, mfdev=1 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x8086, dev=0x7111, revid=0x01 Jun 27 12:55:55 vapre /kernel: class=01-01-80, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: map[20]: type 1, range 32, base 0000fc90, size 4 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x8086, dev=0x7112, revid=0x01 Jun 27 12:55:55 vapre /kernel: class=0c-03-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=d, irq=9 Jun 27 12:55:55 vapre /kernel: map[20]: type 1, range 32, base 0000fca0, size 5 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x8086, dev=0x7113, revid=0x03 Jun 27 12:55:55 vapre /kernel: class=06-80-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: map[90]: type 1, range 32, base 00001040, size 4 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x104d, dev=0x8039, revid=0x02 Jun 27 12:55:55 vapre /kernel: class=0c-00-10, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=a, irq=9 Jun 27 12:55:55 vapre /kernel: map[10]: type 1, range 32, base fedf7000, size 11 Jun 27 12:55:55 vapre /kernel: map[14]: type 1, range 32, base fedf7c00, size 9 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x1073, dev=0x0010, revid=0x02 Jun 27 12:55:55 vapre /kernel: class=04-01-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=a, irq=9 Jun 27 12:55:55 vapre /kernel: map[10]: type 1, range 32, base fedf8000, size 15 Jun 27 12:55:55 vapre /kernel: map[14]: type 1, range 32, base 0000fcc0, size 6 Jun 27 12:55:55 vapre /kernel: map[18]: type 3, range 32, base 0000fc8c, size 2 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x14f1, dev=0x2443, revid=0x01 Jun 27 12:55:55 vapre /kernel: class=07-80-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=a, irq=9 Jun 27 12:55:55 vapre /kernel: map[10]: type 1, range 32, base fede0000, size 16 Jun 27 12:55:55 vapre /kernel: map[14]: type 3, range 32, base 0000fc38, size 3 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x8086, dev=0x1229, revid=0x08 Jun 27 12:55:55 vapre /kernel: class=02-00-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=a, irq=9 Jun 27 12:55:55 vapre /kernel: map[10]: type 1, range 32, base fedf6000, size 12 Jun 27 12:55:55 vapre /kernel: map[14]: type 1, range 32, base 0000fc40, size 6 Jun 27 12:55:55 vapre /kernel: map[18]: type 1, range 32, base fec00000, size 20 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x1180, dev=0x0475, revid=0x80 Jun 27 12:55:55 vapre /kernel: class=06-07-00, hdrtype=0x02, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=a, irq=255 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x104d, dev=0x808a, revid=0x01 Jun 27 12:55:55 vapre /kernel: class=05-01-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=a, irq=9 Jun 27 12:55:55 vapre /kernel: map[10]: type 1, range 32, base fedf7800, size 10 Jun 27 12:55:55 vapre /kernel: pci0: on pcib0 Jun 27 12:55:55 vapre /kernel: pcib1: at device 1.0 on pci0 Jun 27 12:55:55 vapre /kernel: found-> vendor=0x10c8, dev=0x0005, revid=0x20 Jun 27 12:55:55 vapre /kernel: class=03-00-00, hdrtype=0x00, mfdev=0 Jun 27 12:55:55 vapre /kernel: subordinatebus=0 secondarybus=0 Jun 27 12:55:55 vapre /kernel: intpin=a, irq=9 Jun 27 12:55:55 vapre /kernel: map[10]: type 1, range 32, base fd000000, size 24 Jun 27 12:55:55 vapre /kernel: map[14]: type 1, range 32, base fe400000, size 22 Jun 27 12:55:55 vapre /kernel: map[18]: type 1, range 32, base feb00000, size 20 Jun 27 12:55:55 vapre /kernel: pci1: on pcib1 Jun 27 12:55:55 vapre /kernel: pci1: (vendor=0x10c8, dev=0x0005) at 0.0 irq 9 Jun 27 12:55:55 vapre /kernel: isab0: at device 7.0 on pci0 Jun 27 12:55:55 vapre /kernel: isa0: on isab0 Jun 27 12:55:55 vapre /kernel: atapci0: port 0xfc90-0xfc9f at device 7.1 on pci0 Jun 27 12:55:55 vapre /kernel: ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xfc90 Jun 27 12:55:55 vapre /kernel: ata0: mask=03 status0=50 status1=00 Jun 27 12:55:55 vapre /kernel: ata0: mask=03 ostat0=50 ostat2=00 Jun 27 12:55:55 vapre /kernel: ata0-master: ATAPI probe a=00 b=00 Jun 27 12:55:55 vapre /kernel: ata0-slave: ATAPI probe a=00 b=00 Jun 27 12:55:55 vapre /kernel: ata0: mask=03 status0=50 status1=00 Jun 27 12:55:55 vapre /kernel: ata0-master: ATA probe a=01 b=a5 Jun 27 12:55:55 vapre /kernel: ata0: devices=01 Jun 27 12:55:55 vapre /kernel: ata0: at 0x1f0 irq 14 on atapci0 Jun 27 12:55:55 vapre /kernel: ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xfc98 Jun 27 12:55:55 vapre /kernel: ata1: mask=03 status0=00 status1=00 Jun 27 12:55:56 vapre /kernel: ata1: mask=03 ostat0=00 ostat2=00 Jun 27 12:55:56 vapre /kernel: ata1-master: ATAPI probe a=00 b=00 Jun 27 12:55:56 vapre /kernel: ata1-slave: ATAPI probe a=00 b=00 Jun 27 12:55:56 vapre /kernel: ata1: mask=03 status0=00 status1=00 Jun 27 12:55:56 vapre /kernel: ata1: devices=00 Jun 27 12:55:56 vapre /kernel: ata1: at 0x170 irq 15 on atapci0 Jun 27 12:55:56 vapre /kernel: uhci0: port 0xfca0-0xfcbf irq 9 at device 7.2 on pci0 Jun 27 12:55:56 vapre /kernel: usb0: on uhci0 Jun 27 12:55:56 vapre /kernel: usb0: USB revision 1.0 Jun 27 12:55:56 vapre /kernel: uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 Jun 27 12:55:56 vapre /kernel: uhub0: 2 ports with 2 removable, self powered Jun 27 12:55:56 vapre /kernel: chip1: port 0x1040-0x104f at device 7.3 on pci0 Jun 27 12:55:56 vapre /kernel: pci0: (vendor=0x104d, dev=0x8039) at 8.0 irq 9 Jun 27 12:55:56 vapre /kernel: pcm0: port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 0xfedf8000-0xfedfffff irq 9 at device 9.0 on pci0 Jun 27 12:55:56 vapre /kernel: ds1: setmap (4000, 3de4), nseg=1, error=0 Jun 27 12:55:56 vapre /kernel: pcm0: ac97 codec id 0x414b4d02 Jun 27 12:55:56 vapre /kernel: pcm0: ac97 codec features headphone, 18 bit DAC, 18 bit ADC, 5 bit master volume, AKM 3D Audio Jun 27 12:55:56 vapre /kernel: pcm0: ac97 primary codec extended features AMAP Jun 27 12:55:56 vapre /kernel: using shared irq9. Jun 27 12:55:56 vapre /kernel: pcm: setmap 21000, 1000; 0xcb79e000 -> 21000 Jun 27 12:55:56 vapre /kernel: pcm: setmap 31000, 1000; 0xcb7ae000 -> 31000 Jun 27 12:55:56 vapre /kernel: pcm: setmap 41000, 1000; 0xcb7be000 -> 41000 Jun 27 12:55:56 vapre /kernel: pcm: setmap 51000, 1000; 0xcb7ce000 -> 51000 Jun 27 12:55:56 vapre /kernel: pcm: setmap 61000, 1000; 0xcb7de000 -> 61000 Jun 27 12:55:56 vapre /kernel: pcm: setmap 71000, 1000; 0xcb7ee000 -> 71000 Jun 27 12:55:56 vapre /kernel: pci0: (vendor=0x14f1, dev=0x2443) at 10.0 irq 9 Jun 27 12:55:56 vapre /kernel: fxp0: port 0xfc40-0xfc7f mem 0xfec00000-0xfecfffff,0xfedf6000-0xfedf6fff irq 9 at device 11.0 on pci0 Jun 27 12:55:56 vapre /kernel: fxp0: using memory space register mapping Jun 27 12:55:56 vapre /kernel: fxp0: Ethernet address 08:00:46:05:db:da Jun 27 12:55:56 vapre /kernel: fxp0: PCI IDs: 8086 1229 104d 8084 0008 Jun 27 12:55:56 vapre /kernel: fxp0: Chip Type: 0 Jun 27 12:55:56 vapre /kernel: inphy0: on miibus0 Jun 27 12:55:56 vapre /kernel: inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Jun 27 12:55:56 vapre /kernel: bpf: fxp0 attached Jun 27 12:55:56 vapre /kernel: pcib0: intreq Jun 27 12:55:56 vapre /kernel: pci_cfgintr_unique: hard-routed to irq 9 Jun 27 12:55:56 vapre /kernel: pci_cfgintr: 0:12 INTA routed to irq 9 Jun 27 12:55:56 vapre /kernel: pcic0: irq 9 at device 12.0 on pci0 Jun 27 12:55:56 vapre /kernel: pcic0: PCI Memory allocated: 0x44000000 Jun 27 12:55:56 vapre /kernel: pccard0: on pcic0 Jun 27 12:55:56 vapre /kernel: stat is 33 Jun 27 12:55:56 vapre /kernel: pci0: (vendor=0x104d, dev=0x808a) at 13.0 irq 9 Jun 27 12:55:56 vapre /kernel: pcic-: pcic0 exists, using next available unit number Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 203 Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 243 Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 283 Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 2c3 Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 303 Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 343 Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 383 Jun 27 12:55:56 vapre /kernel: Trying Read_Port at 3c3 Jun 27 12:55:56 vapre /kernel: isa_probe_children: disabling PnP devices Jun 27 12:55:56 vapre /kernel: isa_probe_children: probing non-PnP devices Jun 27 12:55:56 vapre /kernel: orm0: