From owner-freebsd-current@FreeBSD.ORG Thu Sep 13 21:59:56 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B029816A417 for ; Thu, 13 Sep 2007 21:59:56 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 7EFB313C45A for ; Thu, 13 Sep 2007 21:59:56 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so463425rvb for ; Thu, 13 Sep 2007 14:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=shboRQAEO2Yi/uIo7nNjSdkfxpZqSE+vKR9BQD456us=; b=KXEZIIAYgCDJ/tad7FhQNLkJGs7LrjH0YgfRZztAPTZLIQ5X9r0a2AM0vPvN3HiOn9fr/0SjM8LXmlMMEOpF3GafkFt/Ziazm4s+OJUmxvNJZIxPP4plKJJQtpntbtmKpd+EKkav6JEJkx9DjhAOg1ifBHRKjzLde5gA5eKWPD0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BMcrbEsHhCbZc4KJC8Ck7ldWCtsiFCENkNNbamJbynNcF2VM7V9u7pq2qXoREkoniRqwpUxZldursoTrkfMYw+QNvQHn+S6sCibktnLxbgOLH4U07yLWuY2QNhEID17LUfh3BiAjybr5FQxtngl+TJLdXw4E/ovFjcykv4dNDzM= Received: by 10.114.192.1 with SMTP id p1mr903844waf.1189720795835; Thu, 13 Sep 2007 14:59:55 -0700 (PDT) Received: by 10.114.13.15 with HTTP; Thu, 13 Sep 2007 14:59:55 -0700 (PDT) Message-ID: Date: Thu, 13 Sep 2007 14:59:55 -0700 From: "Kip Macy" To: "Dave Frantz" In-Reply-To: <813483.4697.qm@web53912.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <813483.4697.qm@web53912.mail.re2.yahoo.com> Cc: freebsd-current@freebsd.org Subject: Re: Kernel Locks During Device Probe on 7.0 Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 21:59:56 -0000 Turn on VERBOSE_SYSINIT and ddb (although clock interrupts might not be running at that point). -Kip On 9/13/07, Dave Frantz wrote: > 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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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 > Features2=0x400 > Logical CPUs per core: 2 > real memory = 1073676288 (1023 MB) > avail memory = 1041166336 (992 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 1 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: 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: port > 0x62,0x66 on acpi0 > cpu0: on acpi0 > acpi_throttle0: on cpu0 > cpu1: on acpi0 > acpi_button0: on acpi0 > acpi_lid0: on acpi0 > acpi_acad0: on acpi0 > battery0: on acpi0 > pcib0: port 0xcf8-0xcff iomem > 0xfff80000-0xffffffff on acpi0 > pci0: on pcib0 > agp0: mem > 0xa0000000-0xa3ffffff at device 0.0 on pci0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > drm0: 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: > port 0xe000-0xe01f irq 16 at device 29.0 on pci0 > uhci0: [GIANT-LOCKED] > usb0: > 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: > port 0xe120-0xe13f irq 19 at device 29.1 on pci0 > uhci1: [GIANT-LOCKED] > usb1: > 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: > port 0xe240-0xe25f irq 18 at device 29.2 on pci0 > uhci2: [GIANT-LOCKED] > usb2: > 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: at device 30.0 on pci0 > pci2: on pcib2 > rl0: port 0xa400-0xa4ff > mem 0xd0008000-0xd00080ff irq 18 at device 0.0 on pci2 > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, > 100baseTX-FDX, auto > rl0: Ethernet address: 00:90:f5:20:01:eb > fwohci0: 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: on fwohci0 > fwe0: 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: 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: mem 0x80000000-0x80000fff irq > 17 at device 4.0 on pci2 > bktr0: [GIANT-LOCKED] > bktr0: AVer Media TV/FM, Philips NTSC tuner. > pci2: at device 4.1 (no driver attached) > uhci3: port 0xa000-0xa01f > irq 16 at device 5.0 on pci2 > uhci3: [GIANT-LOCKED] > usb3: 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: port 0xa120-0xa13f > irq 19 at device 5.1 on pci2 > uhci4: [GIANT-LOCKED] > usb4: 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: 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: 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: at device 9.0 on > pci2 > cardbus0: on cbb0 > pccard0: <16-bit PCCard bus> on cbb0 > cbb1: at device 9.1 on > pci2 > cardbus1: on cbb1 > pccard1: <16-bit PCCard bus> on cbb1 > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1100-0x110f at > device 31.1 on pci0 > ata0: on atapci0 > ata1: on atapci0 > pcm0: port > 0xe400-0xe4ff,0xe600-0xe63f irq 17 at device 31.5 on > pci0 > pcm0: > pci0: at device 31.6 (no > driver attached) > atkbdc0: port 0x60,0x64 > irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model Generic PS/2 mouse, device ID 0 > speaker0: port 0x61 on acpi0 > fdc0: port 0x3f0-0x3f5,0x3f7 > irq 6 drq 2 on acpi0 > fdc0: [FAST] > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > ppc0: 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: on ppc0 > ppbus0: IEEE1284 device found /NIBBLE/ECP > Probing for PnP devices on ppbus0: > ppbus0: > PJL,PCL,IBMPPR,EPSONFX,PCLXL > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff > irq 4 flags 0x10 on acpi0 > sio0: type 16550A > sio1: port > 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > pmtimer0 on isa0 > orm0: at iomem > 0xc0000-0xcffff,0xe3000-0xe3fff,0xe4000-0xe5fff on > isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: 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 at ata0-master > UDMA100 > acd0: DVDR 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: 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: 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >