Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2001 14:24:58 -0400 (EDT)
From:      Matt Heckaman <matt@LUCIDA.CA>
To:        FreeBSD-STABLE <freebsd-stable@freebsd.org>
Subject:   4.2-STABLE Crash related to "smb" ?
Message-ID:  <20010406141904.N43943-400000@epsilon.lucida.ca>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

I recently purchased a tv/capture card (which is working great) and
installed it, compiled kernel to include the required I2C/bktr lines and
rebooted. Upon running "lmmon" the kernel immediately paniced. After
looking through dmesg, I noticed this:

smbus0: <System Management Bus> on bti2c0
smb0: <SMBus general purpose I/O> on smbus0
smbus1: <System Management Bus> on intsmb0
smb1: <SMBus general purpose I/O> on smbus1

The first looks to be from the i2c additions, the second being the normal
one I had before from the monitoring intpm entry. I discovered that I
could modify lmmon and wmlmmon to check /dev/smb1 instead of /dev/smb0,
which works fine, but is this crash normal? Did I perhaps do something
wrong in the kernel that is making those two smb devices show up?

I have attached my dmesg, kernel, and gdb analysis from the crash dump
that was produced. It doesn't seem normal to me, but I'm not familiar with
the freebsd parts affected. I'd appreciate any input. :) TIA.

Matt

* Matt Heckaman   - mailto:matt@LUCIDA.CA     http://www.lucida.ca/pgp *
* GPG fingerprint - 53CA 8320 C8F6 32ED 9DDF  036E 3171 C093 4AD3 1364 *

 UNPRECEDENTED PERFORMANCE: nothing we had before ever worked this way.
	- Simon Travaglia

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: http://www.lucida.ca/pgp

iD8DBQE6zgn7MXHAk0rTE2QRAnEWAKCznZBnw2jr4sAzX9IN9rlxVgWTCQCfQaPO
d5gpexqfDJcrXgrdQu2OlSg=
=oLDC
-----END PGP SIGNATURE-----


[-- Attachment #2 --]
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 4.2-STABLE #0: Thu Apr  5 01:46:59 EDT 2001
    root@epsilon.lucida.ca:/usr/src/sys/compile/EPSILON
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (548.32-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536862720 (524280K bytes)
avail memory = 518512640 (506360K bytes)
Changing APIC ID for IO APIC #0 from 0 to 2 on chip
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "EPSILON" at 0xc032b000.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
IOAPIC #0 intpin 19 -> irq 2
IOAPIC #0 intpin 17 -> irq 10
IOAPIC #0 intpin 20 -> irq 11
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mach64-GW graphics accelerator> at 0.0
pcib2: <DEC 21152 PCI-PCI bridge> at device 2.0 on pci0
IOAPIC #0 intpin 21 -> irq 13
pci2: <PCI bus> on pcib2
bktr0: <BrookTree 848A> mem 0xeefff000-0xeeffffff irq 13 at device 9.0 on pci2
iicbb0: <I2C generic bit-banging driver> on bti2c0
iicbus0: <Philips I2C bus> on iicbb0 master-only
smbus0: <System Management Bus> on bti2c0
smb0: <SMBus general purpose I/O> on smbus0
bktr0: Video Highway Xtreme, Temic NTSC tuner.
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <Intel PIIX4 ATA controller> at 7.1
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 2
intpm0: <Intel 82371AB Power management controller> port 0x850-0x85f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 850
intpm0: intr IRQ 9 enabled revision 0
smbus1: <System Management Bus> on intsmb0
smb1: <SMBus general purpose I/O> on smbus1
intpm0: PM I/O mapped 800 
ahc0: <Adaptec 2940 Ultra2 SCSI adapter> port 0xe800-0xe8ff mem 0xfd000000-0xfd000fff irq 10 at device 13.0 on pci0
aic7890/91: Wide Channel A, SCSI Id=7, 32/255 SCBs
pci0: <3Dfx model 0009 graphics accelerator> at 16.0 irq 2
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xec00-0xec7f mem 0xfd001000-0xfd00107f irq 11 at device 17.0 on pci0
xl0: Ethernet address: 00:10:4b:37:e8:75
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
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> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppi0: <Parallel I/O> on ppbus0
sbc0: <Creative ViBRA16C> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
pcm0: <SB16 DSP 4.13> on sbc0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to accept, logging disabled
Waiting 15 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
da0 at ahc0 bus 0 target 0 lun 0
da0: <QUANTUM ATLAS V  9 WLS 0201> Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 8683MB (17783249 512 byte sectors: 255H 63S/T 1106C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <QUANTUM ATLAS_V_18_WLS 0230> Fixed Direct Access SCSI-3 device 
da1: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da1: 17510MB (35861388 512 byte sectors: 255H 63S/T 2232C)
cd0 at ahc0 bus 0 target 2 lun 0
cd0: <PLEXTOR CD-ROM PX-40TS 1.12> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 15)
cd0: cd present [325912 x 2048 byte records]
Mounting root from ufs:/dev/da0s1a

[-- Attachment #3 --]
###############################################################################
# EPSILON.LUCIDA.CA: 4.2 KERNEL                                               #
# Updated: April 03 2001                                                      #
###############################################################################

# Compile Settings
#
machine         i386
cpu             I686_CPU
ident           EPSILON
maxusers        512
options         NMBCLUSTERS=32768
makeoptions     DEBUG=-g
makeoptions     KERNEL=EPSILON

# SMP
#
options         SMP                     # Symmetric MultiProcessor Kernel
options         APIC_IO                 # Symmetric (APIC) I/O

# Main Options
#
options         CD9660                  # ISO 9660 Filesystem
options         CD9660_ROOT             # CD-ROM usable as root. "CD9660"
options         COMPAT_43               # Compatible with BSD 4.3
options         COMPAT_LINUX            # Compatible with Linux
options         FFS                     # Berkeley Fast Filesystem
options         FFS_ROOT                # FFS usable as root device: keep this!
options         INCLUDE_CONFIG_FILE     # Include this file in the kernel
options         INET                    # InterNETworking
options         KTRACE                  # ktrace(1) syscall trace support
options         MFS                     # Memory Filesystem
options         MD_ROOT                 # MD is a potential root device
options         MSDOSFS                 # MSDOS Filesystem
options         PROCFS                  # Process filesystem
options         SCSI_DELAY=15000        # Delay (in ms) before probing SCSI
options         SOFTUPDATES             # Enable FFS soft updates support
options         UCONSOLE                # Allow users to grab the console
options         USERCONFIG              # boot -c editor
options         VISUAL_USERCONFIG       # visual boot -c editor

# CLOCK Options
#
options         NTIMECOUNTER=40         # For calcru problem

# POSIX Options
#
options         P1003_1B
options         _KPOSIX_PRIORITY_SCHEDULING
options         _KPOSIX_VERSION=199309L

# SYSV Options
#
options         SYSVMSG
options         SYSVSEM
options         SYSVSHM
options         SHMSEG=100

# Firewall Options
#
options         IPFIREWALL
options         IPFIREWALL_DEFAULT_TO_ACCEPT

# Color Options
#
options         SC_NORM_ATTR="(FG_LIGHTCYAN|BG_BLACK)"
options         SC_NORM_REV_ATTR="(FG_BLACK|BG_CYAN)"
options         SC_KERNEL_CONS_ATTR="(FG_LIGHTCYAN|BG_BLACK)"
options         SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_CYAN)"

# ISA devices
#
device          isa
device          eisa

# PCI devices
#
device          pci

# Floppy drives
#
device          fdc0    at isa? port IO_FD1 irq 6 drq 2
device          fd0     at fdc0 drive 0
device          fd1     at fdc0 drive 1

# SCSI devices
#
device          ahc             # AHA2940 and onboard AIC7xxx devices
device          scbus           # SCSI bus (required)
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape, etc)
device          cd              # CD
device          pass            # Passthrough device (Direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
#
device          atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1
device          psm0    at atkbdc? irq 12

# The video card driver.
#
device          vga0    at isa?

# syscons is the default console driver, resembling an SCO console
#
device          sc0     at isa?

# Floating point support - do not disable.
#
device          npx0    at nexus? port IO_NPX irq 13

# Serial (COM) ports
#
device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
device          sio1    at isa? port IO_COM2 irq 3
device          sio2    at isa? disable port IO_COM3 irq 5
device          sio3    at isa? disable port IO_COM4 irq 9

# Parallel port
#
device          ppc0    at isa? irq 7
device          ppbus           # Parallel port bus (required)
device          ppi             # Parallel port interface device

# System Management Bus
#
device          smbus           # Bus support, required for smb below.
device          smb             # standard io through /dev/smb*
device          intpm           # Intel PIIX4 Power Management Unit

# I2C Bus
#
device		iicbus
device		iicbb

# PnP/PCI sound cards
#
device          pcm

# PCI Ethernet NICs that use the common MII bus controller code.
#
device          miibus          # MII bus support
device          xl              # 3Com 3c90x ("Boomerang", "Cyclone")

# Brooktree bt848/848a/849a/878/879 video capture and TV Tuner board
#
device          bktr
options		OVERRIDE_CARD=13
options         BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_NTSC

# Pseudo devices
#
pseudo-device   bpf      4      # Berkeley packet filter
pseudo-device   ether           # Ethernet support
pseudo-device   loop            # Network loopback
pseudo-device   pty     32      # Pseudo-ttys (telnet, etc)
pseudo-device   snp      4      # Snoop devices.
pseudo-device   splash          # Splash screen/screen saver


[-- Attachment #4 --]
root[epsilon]:/sys/compile/EPSILON# gdb -k EPSILON.debug /var/crash/vmcore.0 
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
SMP 2 cpus
IdlePTD 3461120
initial pcb at 2ba6a0
panicstr: page fault
panic messages:
---
---
#0  dumpsys () at ../../kern/kern_shutdown.c:469
469             if (dumping++) {
(kgdb) bt
#0  dumpsys () at ../../kern/kern_shutdown.c:469
#1  0xc015d23f in boot (howto=256) at ../../kern/kern_shutdown.c:309
#2  0xc015d5f0 in poweroff_wait (junk=0xc026b4cf, howto=-542394976)
    at ../../kern/kern_shutdown.c:556
#3  0xc022f52f in trap_fatal (frame=0xe221ccb8, eva=64)
    at ../../i386/i386/trap.c:951
#4  0xc022f1c5 in trap_pfault (frame=0xe221ccb8, usermode=0, eva=64)
    at ../../i386/i386/trap.c:844
#5  0xc022ed5f in trap (frame={tf_fs = -1072168936, tf_es = -954728432, 
      tf_ds = 16, tf_edi = 0, tf_esi = -955762688, tf_ebp = -501101320, 
      tf_isp = -501101340, tf_ebx = -1056573280, tf_edx = -1056540928, 
      tf_ecx = -955762688, tf_eax = 0, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1072280430, tf_cs = 8, tf_eflags = 66118, tf_esp = -501101296, 
      tf_ss = -1072402549}) at ../../i386/i386/trap.c:443
#6  0xc0164c92 in device_get_softc (dev=0x0) at ../../kern/subr_bus.c:980
#7  0xc0146f8b in iicbus_request_bus (bus=0x0, dev=0xc7083800, how=3)
    at ../../dev/iicbus/iiconf.c:103
#8  0xc01b99e0 in bti2c_smb_callback (dev=0xc7083800, index=1, data=0xe221cd74)
    at ../../dev/bktr/bktr_i2c.c:237
#9  0xc0145e00 in SMBUS_CALLBACK (dev=0xc7083800, index=1, 
    data=0xe221cd74 "\003") at smbus_if.c:37
#10 0xc0146229 in smbus_request_bus (bus=0xc7083600, dev=0xc7083580, how=3)
    at ../../dev/smbus/smbconf.c:136
---Type <return> to continue, or q <return> to quit---
#11 0xc0146524 in smbioctl (dev=0xc7083500, cmd=2148821255, 
    data=0xe221cea8 "G", flags=3, p=0xdfabb5a0) at ../../dev/smbus/smb.c:202
#12 0xc0194a9e in spec_ioctl (ap=0xe221cde4)
    at ../../miscfs/specfs/spec_vnops.c:304
#13 0xc01947c9 in spec_vnoperate (ap=0xe221cde4)
    at ../../miscfs/specfs/spec_vnops.c:117
#14 0xc01d8e39 in ufs_vnoperatespec (ap=0xe221cde4)
    at ../../ufs/ufs/ufs_vnops.c:2305
#15 0xc0190f74 in vn_ioctl (fp=0xc7217980, com=2148821255, 
    data=0xe221cea8 "G", p=0xdfabb5a0) at vnode_if.h:429
#16 0xc016ba2e in ioctl (p=0xdfabb5a0, uap=0xe221cf80) at ../../sys/file.h:174
#17 0xc022f859 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = -1077937416, tf_esi = 71, tf_ebp = -1077937600, 
      tf_isp = -501100588, tf_ebx = -1077937620, tf_edx = 0, tf_ecx = 0, 
      tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 672011472, tf_cs = 31, 
      tf_eflags = 659, tf_esp = -1077937676, tf_ss = 47})
    at ../../i386/i386/trap.c:1150
#18 0xc021dc4b in Xint0x80_syscall ()
cannot read proc at 0

... frame prints ...

(kgdb) frame 0
#0  dumpsys () at ../../kern/kern_shutdown.c:469
469             if (dumping++) {
(kgdb) up
#1  0xc015d23f in boot (howto=256) at ../../kern/kern_shutdown.c:309
309                     dumpsys();
(kgdb) up
#2  0xc015d5f0 in poweroff_wait (junk=0xc026b4cf, howto=-542394976)
    at ../../kern/kern_shutdown.c:556
556             boot(bootopt);
(kgdb) up
#3  0xc022f52f in trap_fatal (frame=0xe221ccb8, eva=64)
    at ../../i386/i386/trap.c:951
951                     panic(trap_msg[type]);
(kgdb) up
#4  0xc022f1c5 in trap_pfault (frame=0xe221ccb8, usermode=0, eva=64)
    at ../../i386/i386/trap.c:844
844                     trap_fatal(frame, eva);
(kgdb) up
#5  0xc022ed5f in trap (frame={tf_fs = -1072168936, tf_es = -954728432, 
      tf_ds = 16, tf_edi = 0, tf_esi = -955762688, tf_ebp = -501101320, 
      tf_isp = -501101340, tf_ebx = -1056573280, tf_edx = -1056540928, 
      tf_ecx = -955762688, tf_eax = 0, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1072280430, tf_cs = 8, tf_eflags = 66118, tf_esp = -501101296, 
      tf_ss = -1072402549}) at ../../i386/i386/trap.c:443
443                             (void) trap_pfault(&frame, FALSE, eva);
(kgdb) up
#6  0xc0164c92 in device_get_softc (dev=0x0) at ../../kern/subr_bus.c:980
980     {
(kgdb) up
#7  0xc0146f8b in iicbus_request_bus (bus=0x0, dev=0xc7083800, how=3)
    at ../../dev/iicbus/iiconf.c:103
103             struct iicbus_softc *sc = (struct iicbus_softc *)device_get_softc(bus);
(kgdb) up
#8  0xc01b99e0 in bti2c_smb_callback (dev=0xc7083800, index=1, data=0xe221cd74)
    at ../../dev/bktr/bktr_i2c.c:237
237                             error = iicbus_request_bus(sc->iicbus, dev, how);
(kgdb) up
#9  0xc0145e00 in SMBUS_CALLBACK (dev=0xc7083800, index=1, 
    data=0xe221cd74 "\003") at smbus_if.c:37
37              return m(dev, index, data);
(kgdb) up
#10 0xc0146229 in smbus_request_bus (bus=0xc7083600, dev=0xc7083580, how=3)
    at ../../dev/smbus/smbconf.c:136
136                     error = SMBUS_CALLBACK(device_get_parent(bus),
(kgdb) up
#11 0xc0146524 in smbioctl (dev=0xc7083500, cmd=2148821255, 
    data=0xe221cea8 "G", flags=3, p=0xdfabb5a0) at ../../dev/smbus/smb.c:202
202             if ((error = smbus_request_bus(parent, smbdev,
(kgdb) up
#12 0xc0194a9e in spec_ioctl (ap=0xe221cde4)
    at ../../miscfs/specfs/spec_vnops.c:304
304             return ((*devsw(dev)->d_ioctl)(dev, ap->a_command, 
(kgdb) up
#13 0xc01947c9 in spec_vnoperate (ap=0xe221cde4)
    at ../../miscfs/specfs/spec_vnops.c:117
117             return (VOCALL(spec_vnodeop_p, ap->a_desc->vdesc_offset, ap));
(kgdb) up
#14 0xc01d8e39 in ufs_vnoperatespec (ap=0xe221cde4)
    at ../../ufs/ufs/ufs_vnops.c:2305
2305            return (VOCALL(ufs_specop_p, ap->a_desc->vdesc_offset, ap));
(kgdb) up
#15 0xc0190f74 in vn_ioctl (fp=0xc7217980, com=2148821255, 
    data=0xe221cea8 "G", p=0xdfabb5a0) at vnode_if.h:429
429             rc = VCALL(vp, VOFFSET(vop_ioctl), &a);
(kgdb) up
#16 0xc016ba2e in ioctl (p=0xdfabb5a0, uap=0xe221cf80) at ../../sys/file.h:174
174             error = (*fp->f_ops->fo_ioctl)(fp, com, data, p);
(kgdb) up
#17 0xc022f859 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = -1077937416, tf_esi = 71, tf_ebp = -1077937600, 
      tf_isp = -501100588, tf_ebx = -1077937620, tf_edx = 0, tf_ecx = 0, 
      tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 672011472, tf_cs = 31, 
      tf_eflags = 659, tf_esp = -1077937676, tf_ss = 47})
    at ../../i386/i386/trap.c:1150
1150            error = (*callp->sy_call)(p, args);
(kgdb) up
#18 0xc021dc4b in Xint0x80_syscall ()
(kgdb) up
cannot read proc at 0

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