Kernel Locks During Device Probe on 7.0 Current

Dave Frantz imperial_courier at yahoo.com
Thu Sep 13 14:57:31 PDT 2007


I've been tracking 7.0 for several weeks now using
cvsup. Unfortunately, in this time, I haven't been
able to build a working kernel, even using GENERIC.

When I try to use a 7.0 current kernel, the system
gets about 6/8ths through the device probe, then
simply stops. It does not visibly panic; it just stops
the device probe and does nothing. (It acts like the
kernel goes into a loop someplace and never gets out.)
This occurs whether ACPI is enabled or not.

Unfortunately, the hang occurs before the system can
enter even single user mode, making a post of the full
device probe impossible. I've tried to reproduce the
five lines proceeding the hang to give an idea of
where it's stopping.

Using the stock GENERIC kernel configuration with
verbose logging and ACPI enabled, it stops boot right
after printing:

lo0: bpf attached
rr232x: nfirewire 0: 1 nodes, maxhop <=0, cable IRM =
0 (me)
firewire 0: bus manager0 (me)
o controller detected.

Compiling GENERIC without Firewire (but with ACPI
enabled) gives:

rr232x: no controller detected
acpi_acad0: acline initialization start
acpi_acad0: On Line
acpi_acad0: acline initialization done, tried 1 times
battery0: battery initialization start
battery0: battery initialization done, tried 1 times

When ACPI is disabled, the GENERIC kernel hangs right
after printing:

lo0: bpf attached
rr232x: nfirewire 0: 1 nodes, maxhop <=0, cable IRM =
0 (me)
firewire 0: bus manager0 (me)
o controller detected.

When I try to run GENERIC without ACPI and without
Firewire compiled in, I get:

lo0: bpf attached
rr232x: no controller detected

followed by the kernel hanging.

FreeBSD 6.2 runs very well on this machine, and the
output of pciconf -vl is:
agp0 at pci0:0:0:  class=0x060000 card=0x00000000
chip=0x1a308086 rev=0x11 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82845/E/MP/MZ Brookdale CPU to I/O
Bridge'
    class    = bridge
    subclass = HOST-PCI
pcib1 at pci0:1:0: class=0x060400 card=0x00000000
chip=0x1a318086 rev=0x11 hdr=0x01
    vendor   = 'Intel Corporation'
    device   = '82845/E/MP/MZ Brookdale CPU to AGP
Bridge'
    class    = bridge
    subclass = PCI-PCI
uhci0 at pci0:29:0:        class=0x0c0300 card=0x00000000
chip=0x24828086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801CA/CAM (ICH3-S/ICH3-M) USB
Controller'
    class    = serial bus
    subclass = USB
uhci1 at pci0:29:1:        class=0x0c0300 card=0x00000000
chip=0x24848086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801CA/CAM (ICH3-S/ICH3-M) USB
Controller'
    class    = serial bus
    subclass = USB
uhci2 at pci0:29:2:        class=0x0c0300 card=0x00000000
chip=0x24878086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801CA/CAM (ICH3-S/ICH3-M) USB
Controller'
    class    = serial bus
    subclass = USB
pcib2 at pci0:30:0:        class=0x060400 card=0x00000000
chip=0x24488086 rev=0x42 hdr=0x01
    vendor   = 'Intel Corporation'
    device   = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub
Interface to PCI Bridge'
    class    = bridge
    subclass = PCI-PCI
isab0 at pci0:31:0:        class=0x060100 card=0x00000000
chip=0x248c8086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801CAM LPC Interface or ISA bridge:
see Notes'
    class    = bridge
    subclass = PCI-ISA
atapci0 at pci0:31:1:      class=0x01018a card=0x00000000
chip=0x248a8086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801CAM (ICH3-M) UltraATA/100 EIDE
Controller'
    class    = mass storage
    subclass = ATA
pcm0 at pci0:31:5: class=0x040100 card=0x88801558
chip=0x24858086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801CA/CAM (ICH3-S/ICH3-M) AC'97
Audio Controller'
    class    = multimedia
    subclass = audio
none0 at pci0:31:6:        class=0x070300 card=0x18001558
chip=0x24868086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801CA/CAM (ICH3-S/ICH3-M) AC'97
Modem Controller'
    class    = simple comms
    subclass = generic modem
drm0 at pci1:0:0:  class=0x030000 card=0x88801558
chip=0x4c661002 rev=0x01 hdr=0x00
    vendor   = 'ATI Technologies Inc'
    device   = 'Mobility Radeon 9000'
    class    = display
    subclass = VGA
rl0 at pci2:0:0:   class=0x020000 card=0x88801558
chip=0x813910ec rev=0x10 hdr=0x00
    vendor   = 'Realtek Semiconductor'
    device   = 'RT8139 (A/B/C/810x/813x/C+) Fast
Ethernet Adapter'
    class    = network
    subclass = ethernet
fwohci0 at pci2:2:0:       class=0x0c0010 card=0x88801558
chip=0x8026104c rev=0x00 hdr=0x00
    vendor   = 'Texas Instruments (TI)'
    device   = 'TSB43AB21 1394a-2000 OHCI
PHY/link-layer Controller'
    class    = serial bus
    subclass = FireWire
bktr0 at pci2:4:0: class=0x040000 card=0x00041461
chip=0x036e109e rev=0x11 hdr=0x00
    vendor   = 'Conexant (Was: Brooktree Corp)'
    device   = 'Bt878/Fusion 878A Mediastream
Controller'
    class    = multimedia
    subclass = video
none1 at pci2:4:1: class=0x048000 card=0x00041461
chip=0x0878109e rev=0x11 hdr=0x00
    vendor   = 'Conexant (Was: Brooktree Corp)'
    device   = 'Bt878/Fusion878A Video Capture (Audio
Section)'
    class    = multimedia
uhci3 at pci2:5:0: class=0x0c0300 card=0x12340925
chip=0x30381106 rev=0x50 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'VT82xxxxx UHCI USB 1.1 Controller (All
VIA Chipsets)'
    class    = serial bus
    subclass = USB
uhci4 at pci2:5:1: class=0x0c0300 card=0x12340925
chip=0x30381106 rev=0x50 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'VT82xxxxx UHCI USB 1.1 Controller (All
VIA Chipsets)'
    class    = serial bus
    subclass = USB
ehci0 at pci2:5:2: class=0x0c0320 card=0x12340925
chip=0x31041106 rev=0x51 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'VT6202 USB 2.0 Enhanced Host
Controller'
    class    = serial bus
    subclass = USB
cbb0 at pci2:9:0:  class=0x060700 card=0x88801558
chip=0xac55104c rev=0x01 hdr=0x02
    vendor   = 'Texas Instruments (TI)'
    device   = 'PCI1520 PC Card CardBus Controller'
    class    = bridge
    subclass = PCI-CardBus
cbb1 at pci2:9:1:  class=0x060700 card=0x88801558
chip=0xac55104c rev=0x01 hdr=0x02
    vendor   = 'Texas Instruments (TI)'
    device   = 'PCI1520 PC Card CardBus Controller'
    class    = bridge
    subclass = PCI-CardBus

and my make options are -O -pipe. Posted below is the
device probe of my FreeBSD 6.2 system.

Copyright (c) 1992-2007 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.2-STABLE #3: Tue Jun 26 16:28:09 CDT 2007
    root at Maxwell.local.bsd:/usr/obj/usr/src/sys/SAGER
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (3066.79-MHz
686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
 
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x400<CNTX-ID>
  Logical CPUs per core: 2
real memory  = 1073676288 (1023 MB)
avail memory = 1041166336 (992 MB)
ACPI APIC Table: <INSYDE APIC_000>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <INSYDE RSDT_000> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality
1000
acpi_timer0: <24-bit timer at 3.579545MHz> port
0x1008-0x100b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x1c> port
0x62,0x66 on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff iomem
0xfff80000-0xffffffff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82845 host to AGP bridge> mem
0xa0000000-0xa3ffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
drm0: <ATI Radeon Lf RV250 Mobility 9000 M9 / FireMV
2400 PCI> port 0xc000-0xc0ff mem
0x90000000-0x97ffffff,0xe0000000-0xe000ffff irq 16 at
device 0.0 on pci1
info: [drm] AGP at 0xa0000000 64MB
info: [drm] Initialized radeon 1.25.0 20060524
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A>
port 0xe000-0xe01f irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A>
on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00,
addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B>
port 0xe120-0xe13f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B>
on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00,
addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C>
port 0xe240-0xe25f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801CA/CAM (ICH3) USB controller USB-C>
on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00,
addr 1
uhub2: 2 ports with 2 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
rl0: <RealTek 8139 10/100BaseTX> port 0xa400-0xa4ff
mem 0xd0008000-0xd00080ff irq 18 at device 0.0 on pci2
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX,
100baseTX-FDX, auto
rl0: Ethernet address: 00:90:f5:20:01:eb
fwohci0: <Texas Instruments TSB43AB21/A/AI/A-EP> mem
0xd0000800-0xd0000fff,0xd0004000-0xd0007fff irq 17 at
device 2.0 on pci2
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:90:f5:01:00:20:01:eb
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:90:f5:20:01:eb
fwe0: Ethernet address: 02:90:f5:20:01:eb
fwe0: if_start running deferred for Giant
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc000ffc1, gen=1, CYCLEMASTER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
firewire0: bus manager 1 (me)
bktr0: <BrookTree 878> mem 0x80000000-0x80000fff irq
17 at device 4.0 on pci2
bktr0: [GIANT-LOCKED]
bktr0: AVer Media TV/FM, Philips NTSC tuner.
pci2: <multimedia> at device 4.1 (no driver attached)
uhci3: <VIA 83C572 USB controller> port 0xa000-0xa01f
irq 16 at device 5.0 on pci2
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
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
uhci4: <VIA 83C572 USB controller> port 0xa120-0xa13f
irq 19 at device 5.1 on pci2
uhci4: [GIANT-LOCKED]
usb4: <VIA 83C572 USB controller> on uhci4
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
ehci0: <VIA VT6202 USB 2.0 controller> mem
0xd0000000-0xd00000ff irq 18 at device 5.2 on pci2
ehci0: [GIANT-LOCKED]
usb5: EHCI version 0.95
usb5: companion controllers, 2 ports each: usb3 usb4
usb5: <VIA VT6202 USB 2.0 controller> on ehci0
usb5: USB revision 2.0
uhub5: VIA EHCI root hub, class 9/0, rev 2.00/1.00,
addr 1
uhub5: 4 ports with 4 removable, self powered
cbb0: <TI1520 PCI-CardBus Bridge> at device 9.0 on
pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <TI1520 PCI-CardBus Bridge> at device 9.1 on
pci2
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 UDMA100 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1100-0x110f at
device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pcm0: <Intel ICH3 (82801CA)> port
0xe400-0xe4ff,0xe600-0xe63f irq 17 at device 31.5 on
pci0
pcm0: <Avance Logic ALC200 AC97 Codec>
pci0: <simple comms, generic modem> at device 31.6 (no
driver attached)
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 Generic PS/2 mouse, device ID 0
speaker0: <PC speaker> port 0x61 on acpi0
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
ppc0: <ECP parallel printer port> port
0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in
COMPATIBLE mode
ppc0: FIFO with 1/0/0 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0: <OKI DATA CORP B4250>
PJL,PCL,IBMPPR,EPSONFX,PCLXL
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff
irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <Generic IRDA-compatible device> port
0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem
0xc0000-0xcffff,0xe3000-0xe3fff,0xe4000-0xe5fff 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
ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr
2, iclass 3/1
ums0: 3 buttons and Z dir.
Timecounters tick every 1.000 msec
ad0: 76319MB <Seagate ST980825A 3.04> at ata0-master
UDMA100
acd0: DVDR <PIONEER DVD-RW DVR-K16/1.44> at
ata1-master UDMA33
firewire0: New S400 device ID:0030e0f4e020d4f8
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24
ascq=0x00 sks=0x48 0x00 0x01
SMP: AP CPU #1 Launched!
da0 at sbp0 bus 0 target 0 lun 0
da0: <Oxford S OXFORD IDE Devic 0138> Fixed Simplified
Direct Access SCSI-4 device
da0: 50.000MB/s transfers
da0: 58644MB (120103200 512 byte sectors: 255H 63S/T
7476C)
cd0 at ata1 bus 0 target 0 lun 0
cd0: <PIONEER DVD-RW  DVR-K16 1.44> Removable CD-ROM
SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY,
Medium not present
Trying to mount root from ufs:/dev/ad0s2a
Loading configuration files.

If there is any further system configuration data you
need, just let me know. FreeBSD is my main OS, and I'd
love to be able to start using FreeBSD 7 on it. Thanks
in advance.



      ____________________________________________________________________________________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
http://tv.yahoo.com/collections/3658 


More information about the freebsd-current mailing list