Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2003 19:53:03 +0000
From:      Ollie Cook <ollie@uk.clara.net>
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>

next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA
T,PSE36,MMX,FXSR,SSE>
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: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82830 (i830M GMCH) SVGA controller> 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: <unknown card> (vendor=0x8086, dev=0x3577) at 2.1
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x8c80-0x8c9f irq 10
 at device 29.0 on pci0
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 0x8ca0-0x8cbf irq 11
 at device 29.1 on pci0
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 0x8cc0-0x8cdf irq 11
 at device 29.2 on pci0
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
pcib1: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on pci0
pci2: <PCI bus> on pcib1
pci_cfgintr_linked: linked (60) to hard-routed irq 10
pci_cfgintr: 2:3 INTA routed to irq 10
pcic0: <Ricoh RL5C475 PCI-CardBus Bridge> irq 10 at device 3.0 on pci2
pcic0: PCI Memory allocated: 0x88000000
pccard0: <PC Card 16-bit bus (classic)> 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: <IEEE1394(FireWire) bus> 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: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI to ISA bridge (vendor=8086 device=248c)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 ATA100 controller> 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: <unknown card> (vendor=0x8086, dev=0x2483) at 31.3 irq 10
pcm0: <Intel 82801CA (ICH3)> port 0x80c0-0x80ff,0x8400-0x84ff irq 10 at device 3
1.5 on pci0
pcm0: <Cirrus Logic CS4299D ac97 codec>
pci0: <unknown card> (vendor=0x8086, dev=0x2486) at 31.6 irq 10
orm0: <Option ROMs> at iomem 0xc0000-0xccfff,0xd0000-0xd2fff,0xd3000-0xd3fff,0xd
4000-0xd47ff,0xd4800-0xd4fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: configured irq 3 not in bitmap of probed irqs 0
fwohci0: BUS reset
fwohci0: node_id = 0xc800ffc1, CYCLEMASTER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
ad0: 28615MB <IC25N030ATCS04-0> [58140/16/63] at ata0-master UDMA100
Mounting root from ufs:/dev/ad0s3a
firewire0: New S400 device ID:00065b80030f070f
firewire0: Device SBP-II
-- end dmesg output --

-- 
Oliver Cook    Systems Administrator, Claranet UK
ollie@uk.clara.net                  020 7903 3000

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030207195303.GD15853>