Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 1999 15:46:28 -0500 (EST)
From:      "Chris D. Faulhaber" <jedgar@fxp.org>
To:        stable@freebsd.org
Subject:   smb/intpm-related panic
Message-ID:  <Pine.BSF.4.21.9912161520570.33971-100000@earth.fxp>

next in thread | raw e-mail | index | archive | help
Today I was working on one of my projects, lmmon
(http://www.fxp.org/~jedgar/lmmon-0.61.tar.gz).  Normally I run wmlmmon in
/dev/io mode so I had not compiled 'controller intpm' support in the
kernel.  During testing of lmmon, I found that, without intpm support,
lmmon causes a panic (running as root).  Is there a way to test if intpm
is enabled before attempting to use it through /dev/smb0 ?

The following items are in the kernel config:

controller      smbus0
device          smb0    at smbus?
controller      iicbus0
controller      iicbb0
device          ic0     at iicbus?
device          iic0    at iicbus?
device          iicsmb0 at iicbus?
device          bktr0

Most of the above is necessary for my Brooktree card.
Backtrace of the panic is as follows:

Script started on Thu Dec 16 15:21:53 1999

root@earth:~# gdb -k /sys/compile/EARTH/kernel.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"...
IdlePTD 3166208
initial pcb at 288e88
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x38
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc015920e
stack pointer	        = 0x10:0xc77e1ca8
frame pointer	        = 0x10:0xc77e1ca8
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 953 (lmmon)
interrupt mask		= 
panic: from debugger
panic: from debugger

dumping to dev 20401, offset 786432
dump 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 
---
#0  boot (howto=260) at ../../kern/kern_shutdown.c:285
285			dumppcb.pcb_cr3 = rcr3();
(kgdb) bt
#0  boot (howto=260) at ../../kern/kern_shutdown.c:285
#1  0xc0153099 in panic (fmt=0xc024aefc "from debugger")
    at ../../kern/kern_shutdown.c:446
#2  0xc012c0d1 in db_panic (addr=-1072328178, have_addr=0, count=-1, 
    modif=0xc77e1b2c "") at ../../ddb/db_command.c:432
#3  0xc012c071 in db_command (last_cmdp=0xc026d54c, cmd_table=0xc026d3ac, 
    aux_cmd_tablep=0xc0286adc) at ../../ddb/db_command.c:332
#4  0xc012c136 in db_command_loop () at ../../ddb/db_command.c:454
#5  0xc012e5af in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71
#6  0xc0215b6e in kdb_trap (type=12, code=0, regs=0xc77e1c6c)
    at ../../i386/i386/db_interface.c:157
#7  0xc02208e8 in trap_fatal (frame=0xc77e1c6c, eva=56)
    at ../../i386/i386/trap.c:937
#8  0xc02205c7 in trap_pfault (frame=0xc77e1c6c, usermode=0, eva=56)
    at ../../i386/i386/trap.c:835
#9  0xc0220226 in trap (frame={tf_es = -1071710192, tf_ds = -948699120, 
      tf_edi = 0, tf_esi = -1059494272, tf_ebp = -948036440, 
      tf_isp = -948036460, tf_ebx = -1059500352, tf_edx = -948036268, 
      tf_ecx = 9, tf_eax = 0, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1072328178, tf_cs = 8, tf_eflags = 66118, tf_esp = -948036416, 
      tf_ss = -1072444101}) at ../../i386/i386/trap.c:437
#10 0xc015920e in device_get_softc (dev=0x0) at ../../kern/subr_bus.c:735
#11 0xc013cd3b in smbus_request_bus (bus=0x0, dev=0xc0d96680, how=3)
    at ../../dev/smbus/smbconf.c:131
---Type <return> to continue, or q <return> to quit---
#12 0xc01d9898 in bti2c_iic_callback (dev=0xc0d96680, index=1, data=0xc77e1d54)
    at ../../dev/bktr/bktr_i2c.c:249
#13 0xc013d7b8 in IICBB_CALLBACK (dev=0xc0d96680, index=1, 
    data=0xc77e1d54 "\003") at iicbb_if.c:24
#14 0xc013d5c6 in iicbb_callback (dev=0xc0d96640, index=1, 
    data=0xc77e1d54 "\003") at ../../dev/iicbus/iicbb.c:236
#15 0xc013e034 in IICBUS_CALLBACK (dev=0xc0d96640, index=1, 
    data=0xc77e1d54 "\003") at iicbus_if.c:34
#16 0xc013e239 in iicbus_request_bus (bus=0xc0d96600, dev=0xc0d965c0, how=3)
    at ../../dev/iicbus/iiconf.c:108
#17 0xc013da21 in iicsmb_callback (dev=0xc0d965c0, index=1, 
    data=0xc77e1dac "\003") at ../../dev/iicbus/iicsmb.c:252
#18 0xc013c950 in SMBUS_CALLBACK (dev=0xc0d965c0, index=1, 
    data=0xc77e1dac "\003") at smbus_if.c:34
#19 0xc013cd55 in smbus_request_bus (bus=0xc0d96540, dev=0xc0d96500, how=3)
    at ../../dev/smbus/smbconf.c:136
#20 0xc013d037 in smbioctl (dev=27136, cmd=2148821255, data=0xc77e1ee0 "G", 
    flags=3, p=0xc774b520) at ../../dev/smbus/smb.c:188
#21 0xc0183673 in spec_ioctl (ap=0xc77e1e1c)
    at ../../miscfs/specfs/spec_vnops.c:424
#22 0xc0182f85 in spec_vnoperate (ap=0xc77e1e1c)
    at ../../miscfs/specfs/spec_vnops.c:129
#23 0xc01f6ea9 in ufs_vnoperatespec (ap=0xc77e1e1c)
    at ../../ufs/ufs/ufs_vnops.c:2318
---Type <return> to continue, or q <return> to quit---
#24 0xc017ddf1 in vn_ioctl (fp=0xc0e20ec0, com=2148821255, 
    data=0xc77e1ee0 "G", p=0xc774b520) at vnode_if.h:395
#25 0xc015e268 in ioctl (p=0xc774b520, uap=0xc77e1f94)
    at ../../kern/sys_generic.c:564
#26 0xc0220b57 in syscall (frame={tf_es = 39, tf_ds = 39, 
      tf_edi = -1077945236, tf_esi = 134516392, tf_ebp = -1077945388, 
      tf_isp = -948035612, tf_ebx = -1077945408, tf_edx = -1077945409, 
      tf_ecx = 0, tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 671754492, 
      tf_cs = 31, tf_eflags = 582, tf_esp = -1077945444, tf_ss = 39})
    at ../../i386/i386/trap.c:1100
#27 0xc02164bc in Xint0x80_syscall ()
#28 0x80489f5 in ?? ()
#29 0x8048789 in ?? ()
(kgdb)
root@earth:~# 

Script done on Thu Dec 16 15:22:12 1999

-----
Chris D. Faulhaber - jedgar@fxp.org - jedgar@freebsd.org
--------------------------------------------------------
FreeBSD: The Power To Serve   -   http://www.freebsd.org




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?Pine.BSF.4.21.9912161520570.33971-100000>