From owner-freebsd-stable Fri Feb 7 11:53: 9 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 839E237B401 for ; Fri, 7 Feb 2003 11:53:04 -0800 (PST) Received: from mutare.noc.clara.net (mutare.noc.clara.net [195.8.70.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8BAF43FA3 for ; Fri, 7 Feb 2003 11:53:03 -0800 (PST) (envelope-from ollie@mutare.noc.clara.net) Received: from ollie by mutare.noc.clara.net with local (Exim 4.04) id 18hEYZ-0004KF-00 for stable@freebsd.org; Fri, 07 Feb 2003 19:53:03 +0000 Date: Fri, 7 Feb 2003 19:53:03 +0000 From: Ollie Cook To: stable@freebsd.org Subject: Panic during boot under 4.7-STABLE in sbp_get_text_leaf (firewire) Message-ID: <20030207195303.GD15853@mutare.noc.clara.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.7-STABLE i386 X-NCC-RegID: uk.claranet Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I am having trouble with firewire on my new laptop (Dell X200). The unit includes an external CD/DVD drive unit connected via firewire. The laptop boots fine with a 4.7-STABLE GENERIC kernel (cvsup'd this afternoon appx 6pm GMT) and also with a GENERIC kernel plus "device firewire". However, when I include "device sbp", to be able to use the external CD drive, in the kernel config, the laptop panics during boot. The lines leading up to the panic are (transcripted, so typos may be present): firewire0: New S400 device ID:00065b80030f070f firewire0: Device SBP-II The instruction pointer where the crash occurs is 0xc01c1896 which is in sbp_get_text_leaf. su-2.05b# nm /kernel|sort|grep c01c18 c01c1824 t sbp_get_text_leaf c01c18e8 t sbp_probe_lun I have version 1.5.2.10 of src/dev/firewire/sbp.c which contains these functions. I recompiled with "options DDB" so was able to get this stack trace from the kernel debugger (again transcripted so please forgive any typos): sbp_get_text_leaf sbp_probe_lun sbp_probe_target sbp_post_explore fw_attach_dev fw_bus_explore fw_bus_explore_callback fw_xfer_done fw_rcv fwohci_arcv fwohci_intr_body fwochi_intr I was unable to induce a coredump using 'panic' in the kernel debugger (is it possible to get a core dump during boot in this way?). I think I've reached the end of the line in terms of my knowledge and finding out what is causing this panic. Does anyone have any suggestions on what I can try next? I have included the dmesg output from a successful boot with firewire enabled but no sbp, in case that is useful. Thanks, Ollie -- dmesg output -- Copyright (c) 1992-2003 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.7-STABLE #0: Fri Feb 7 18:31:54 GMT 2003 root@laptop.olliecook.net:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Pentium(R) III Mobile CPU 800MHz (797.35-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383f9ff real memory = 393740288 (384512K bytes) avail memory = 376844288 (368012K bytes) Preloaded elf kernel "kernel.works" at 0xc0581000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00fdf30 apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe007ffff,0xe80 00000-0xefffffff irq 10 at device 2.0 on pci0 agp0: detected 8060k stolen memory agp0: aperture size is 128M pci0: (vendor=0x8086, dev=0x3577) at 2.1 uhci0: port 0x8c80-0x8c9f irq 10 at device 29.0 on pci0 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 0x8ca0-0x8cbf irq 11 at device 29.1 on pci0 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 0x8cc0-0x8cdf irq 11 at device 29.2 on pci0 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 pcib1: at device 30.0 on pci0 pci2: on pcib1 pci_cfgintr_linked: linked (60) to hard-routed irq 10 pci_cfgintr: 2:3 INTA routed to irq 10 pcic0: irq 10 at device 3.0 on pci2 pcic0: PCI Memory allocated: 0x88000000 pccard0: on pcic0 fwohci0: vendor=1180, dev=551 fwohci0: <1394 Open Host Controller Interface> mem 0xe0200000-0xe02007ff irq 11 at device 3.1 on pci2 fwohci0: PCI bus latency was changing to 250. fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 00:06:5b:80:01:0f:73:d3 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xa000-0xa07f mem 0xe0200800-0xe020 087f irq 11 at device 5.0 on pci2 xl0: Ethernet address: 00:06:5b:89:83:f0 miibus0: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x9000-0x900f,0-0x3,0-0x7,0-0x3,0-0 x7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=0x8086, dev=0x2483) at 31.3 irq 10 pcm0: port 0x80c0-0x80ff,0x8400-0x84ff irq 10 at device 3 1.5 on pci0 pcm0: pci0: (vendor=0x8086, dev=0x2486) at 31.6 irq 10 orm0: