On 27-Sep-01 Maxim Sobolev wrote: > Hi, > > I found that I am no longer able to boot -current kernel on my machine. The > system panices right after initialising ed0 driver: > > [...] > ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xe800-0xe81f irq 9 at device > 9.0 on pci0 > panic: inthand_add: can't initialize ICU > > Attached please find verbose kernel bootup messages obtained from the last > good kernel from about a week ago. > > Please fix.
Could you, say, add a printf to icu_set() to print out the passed in interrupt number before it returns EINVAL? Also, adding a call to debugger (Debugger("foo");) and getting a stack trace would be very helpful. > -Maxim -- John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
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 5.0-CURRENT #26: Wed Sep 19 10:04:40 EEST 2001 root@big_brother:/usr/src/sys/i386/compile/MBSD Calibrating clock(s) ... TSC clock: 501070587 Hz, i8254 clock: 1193026 Hz Timecounter "i8254" frequency 1193026 Hz Timecounter "TSC" frequency 501070587 Hz CPU: AMD-K6(tm) 3D processor (501.07-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX> AMD Features=0x80000800<SYSCALL,3DNow!> Data TLB: 128 entries, 2-way associative Instruction TLB: 64 entries, 1-way associative L1 data cache: 32 kbytes, 32 bytes/line, 2 lines/tag, 2-way associative L1 instruction cache: 32 kbytes, 32 bytes/line, 2 lines/tag, 2-way associative Write Allocate Enable Limit: 384M bytes Write Allocate 15-16M bytes: Enable real memory = 402587648 (393152K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x00352000 - 0x17fe7fff, 399073280 bytes (97430 pages) avail memory = 388304896 (379204K bytes) bios32: Found BIOS32 Service Directory header at 0xc00fafd0 bios32: Entry = 0xfb450 (c00fb450) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xf0000+0xb480 pnpbios: Found PnP BIOS data at 0xc00fc0a0 pnpbios: Entry = f0000:c0c8 Rev = 1.0 Other BIOS signatures found: Preloaded elf kernel "/boot/kernel.old/kernel" at 0xc032b000. Preloaded elf module "/boot/kernel.old/acpi.ko" at 0xc032b0b8. null: <null device, zero device> mem: <memory & I/O> K6-family MTRR support enabled (2 registers) random: <entropy source> pci_open(1): mode 1 addr port (0x0cf8) is 0x80003840 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=05971106) Using $PIR table, 6 entries at 0xc00fddf0 npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <AWARD AWRDACPI> on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI" frequency 3579545 Hz can't fetch resources for \\_SB_.PCI0.ISA_.FDC0 - AE_AML_BUFFER_LIMIT acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 acpi_cpu0: <CPU> on acpi0 acpi_button0: <Power Button> on acpi0 acpi_pcib0: <Host-PCI bridge> port 0x5080-0x50ff,0x5000-0x507f,0xcf8-0xcff on acpi0 pci0: physical bus=0 map[10]: type 3, range 32, base d8000000, size 26, enabled found-> vendor=0x1106, dev=0x0597, revid=0x04 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 found-> vendor=0x1106, dev=0x8598, revid=0x00 bus=0, slot=1, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 found-> vendor=0x1106, dev=0x0586, revid=0x41 bus=0, slot=7, func=0 class=06-01-00, hdrtype=0x00, mfdev=1 map[20]: type 4, range 32, base 0000e000, size 4, enabled found-> vendor=0x1106, dev=0x0571, revid=0x06 bus=0, slot=7, func=1 class=01-01-8a, hdrtype=0x00, mfdev=0 map[20]: type 4, range 32, base 0000e400, size 5, enabled found-> vendor=0x1106, dev=0x3038, revid=0x02 bus=0, slot=7, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 intpin=d, irq=9 found-> vendor=0x1106, dev=0x3040, revid=0x10 bus=0, slot=7, func=3 class=06-00-00, hdrtype=0x00, mfdev=0 map[10]: type 4, range 32, base 0000e800, size 5, enabled found-> vendor=0x10ec, dev=0x8029, revid=0x00 bus=0, slot=9, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 intpin=a, irq=9 pci0: <PCI bus> on acpi_pcib0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pcib1: secondary bus 1 pcib1: subordinate bus 1 pcib1: I/O decode 0xd000-0xdfff pcib1: memory decode 0xdc000000-0xddffffff pcib1: prefetched decode 0xde000000-0xdeffffff pci1: physical bus=1 map[10]: type 3, range 32, base de000000, size 24, enabled map[14]: type 4, range 32, base 0000d000, size 8, enabled map[18]: type 1, range 32, base dd000000, size 12, enabled found-> vendor=0x1002, dev=0x4742, revid=0x5c bus=1, slot=0, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 intpin=a, irq=11 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C586 ATA33 controller> port 0xe000-0xe00f at device 7.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xe000 ata0: mask=03 ostat0=50 ostat2=00 ata0-master: ATAPI probe 00 00 ata0-slave: ATAPI probe 00 00 ata0: mask=03 stat0=50 stat1=00 ata0-master: ATA probe 01 a5 ata0: devices=01 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xe008 ata1: mask=03 ostat0=50 ostat2=00 ata1-master: ATAPI probe 14 eb ata1-slave: ATAPI probe 14 eb ata1: mask=03 stat0=10 stat1=00 ata1: devices=0c ata1: at 0x170 irq 15 on atapci0 pci0: <serial bus, USB> at device 7.2 (no driver attached) ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xe800-0xe81f irq 9 at device 9.0 on pci0 bpf: ed0 attached ed0: address 00:40:05:5b:69:33, type NE2000 (16 bit) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) fdc0: cannot reserve I/O port range (1 ports) sio0: irq maps: 0x1 0x11 0x1 0x1 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1: irq maps: 0x1 0x9 0x1 0x1 sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A unknown: not probed (disabled) ppc0: using extended I/O port range ppc0: ECP SPP ECP+EPP SPP ppc0 port 0x778-0x77b,0x378-0x37f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: IEEE1284 device found /NIBBLE/ECP/NIBBLE_ID/ECP_ID/Extensibility Link Probing for PnP devices on ppbus0: ppbus0: <Hewlett-Packard HP LaserJet 1100.1.1> PRINTER MLC,PCL,PJL lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0047 atkbd: keyboard ID 0x41ab (2) kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000 atkbd1: unable to allocate IRQ psm0: unable to allocate IRQ unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) fdc0: cannot reserve I/O port range (1 ports) unknown: not probed (disabled) psmcpnp0 irq 12 on acpi0 atkbd1: unable to allocate IRQ psm0: current command byte:0047 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons psm0: config:00000000, flags:00000000, packet size:3 psm0: syncmask:c0, syncbits:00 atkbdc-: atkbdc0 already exists, using atkbdc1 instead vga-: vga0 already exists, using vga1 instead sc-: sc0 already exists, using sc1 instead sio-: sio0 already exists, using sio2 instead sio-: sio1 already exists, using sio3 instead ppc-: ppc0 already exists, using ppc1 instead Trying Read_Port at 203 CTL0031: start dependent (0) CTL0031: adding irq mask 0x20 CTL0031: adding dma mask 0x2 CTL0031: adding dma mask 0x20 CTL0031: adding io range 0x220-0x22f, size=0x10, align=0x1 CTL0031: adding io range 0x330-0x331, size=0x2, align=0x1 CTL0031: adding io range 0x388-0x38b, size=0x4, align=0x1 CTL0031: start dependent (1) CTL0031: adding irq mask 0x4a0 CTL0031: adding dma mask 0xb CTL0031: adding dma mask 0xe0 CTL0031: adding io range 0x220-0x28f, size=0x10, align=0x20 CTL0031: adding io range 0x300-0x331, size=0x2, align=0x30 CTL0031: adding io range 0x388-0x38b, size=0x4, align=0x1 CTL0031: start dependent (1) CTL0031: adding irq mask 0x4a0 CTL0031: adding dma mask 0xb CTL0031: adding dma mask 0xe0 CTL0031: adding io range 0x220-0x28f, size=0x10, align=0x20 CTL0031: adding io range 0x300-0x331, size=0x2, align=0x30 CTL0031: start dependent (2) CTL0031: adding irq mask 0x4a0 CTL0031: adding dma mask 0xb CTL0031: adding dma mask 0xe0 CTL0031: adding io range 0x220-0x28f, size=0x10, align=0x20 CTL0031: start dependent (2) CTL0031: adding irq mask 0x4a0 CTL0031: adding dma mask 0xb CTL0031: adding io range 0x220-0x28f, size=0x10, align=0x20 CTL0031: adding io range 0x300-0x331, size=0x2, align=0x30 CTL0031: adding io range 0x388-0x38b, size=0x4, align=0x1 CTL0031: start dependent (2) CTL0031: adding irq mask 0x4a0 CTL0031: adding dma mask 0xb CTL0031: adding io range 0x220-0x28f, size=0x10, align=0x20 CTL0031: adding io range 0x300-0x331, size=0x2, align=0x30 CTL0031: start dependent (2) CTL0031: adding irq mask 0xca0 CTL0031: adding dma mask 0xb CTL0031: adding io range 0x220-0x28f, size=0x10, align=0x20 CTL0031: end dependent CTL2011: start dependent (0) CTL2011: adding irq mask 0x400 CTL2011: adding io range 0x168-0x16f, size=0x8, align=0x1 CTL2011: adding io range 0x36e-0x36f, size=0x2, align=0x1 CTL2011: start dependent (1) CTL2011: adding irq mask 0x800 CTL2011: adding io range 0x1e8-0x1ef, size=0x8, align=0x1 CTL2011: adding io range 0x3ee-0x3ef, size=0x2, align=0x1 CTL2011: start dependent (1) CTL2011: adding irq mask 0x9c00 CTL2011: adding io range 0x100-0x1ff, size=0x8, align=0x8 CTL2011: adding io range 0x300-0x3ff, size=0x2, align=0x2 CTL2011: start dependent (2) CTL2011: adding irq mask 0x8000 CTL2011: adding io range 0x170-0x177, size=0x8, align=0x1 CTL2011: adding io range 0x376-0x376, size=0x1, align=0x1 CTL2011: end dependent PNPffff: adding io range 0x100-0x3f8, size=0x1, align=0x8 CTL7001: adding io range 0x200-0x207, size=0x8, align=0x1 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k VGA parameters upon power-up 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff VGA parameters in BIOS for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff EGA/VGA parameters to be used for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff atkbdc1: <Keyboard controller (i8042)> failed to probe at port 0x60 on isa0 vga1: <Generic ISA VGA> failed to probe on isa0 sc1: no video adapter found. sc1: <System console> failed to probe at flags 0x6 on isa0 sio2 failed to probe at port 0x3f8 irq 4 flags 0x10 on isa0 sio3 failed to probe at port 0x2f8 irq 3 on isa0 ppc1: parallel port found at 0x378 ppc1: cannot reserve I/O port range ppc1: <Parallel port> failed to probe at port 0x378-0x37f irq 7 flags 0x8 on isa0 isa_probe_children: probing PnP devices unknown: <Audio> failed to probe at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 ata2: iobase=0x0168 altiobase=0x036e bmaddr=0x0000 ata2: <Generic ESDI/IDE/ATA controller> at port 0x168-0x16f,0x36e-0x36f irq 10 on isa0 unknown: <Reserved> failed to probe at port 0x100 on isa0 unknown: <Game> failed to probe at port 0x200-0x207 on isa0 BIOS Geometries: 0:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors 0 accounted for Device configuration finished. bpf: lo0 attached acpi_cpu0: set speed to 100.0% acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0% ata1-slave: identify retries exceeded ad0: success setting UDMA2 on VIA chip Creating DISK ad0 ad0: <IC35L040AVER07-0/ER4OA44A> ATA-5 disk at ata0-master ad0: 39266MB (80418240 sectors), 79780 C, 16 H, 63 S, 512 B ad0: 16 secs/int, 32 depth queue, tagged UDMA33 ad0: piomode=4 dmamode=2 udmamode=5 cblid=1 ata1-master: piomode=3 dmamode=1 udmamode=-1 dmaflag=1 ata1-master: success setting PIO3 on generic chip acd0: <Philips R O D 1270/B1.0> CDROM drive at ata1 as master acd0: read 1722KB/s (57005KB/s), 256KB buffer, PIO3 acd0: Reads: CD-DA acd0: Writes: acd0: Audio: play, 256 volume levels acd0: Mechanism: ejectable tray, unlocked, lock protected acd0: Medium: no/blank disc Mounting root from ufs:/dev/ad0s1a ad0s1: type 0xa5, start 63, end = 9944234, size 9944172 : OK ad0s2: type 0xb, start 9944235, end = 10763549, size 819315 : OK ad0s3: type 0xc, start 10763613, end = 80405324, size 69641712 : OK start_init: trying /sbin/init