Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 21:17:59 +0100 (CET)
From:      Lukas Ertl <le@univie.ac.at>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/36057: atacontrol, apm, kernel panic
Message-ID:  <200203182017.g2IKHxF00907@univie.ac.at>

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

>Number:         36057
>Category:       kern
>Synopsis:       atacontrol, apm, kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 18 12:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lukas Ertl
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD korben 4.5-STABLE FreeBSD 4.5-STABLE #6: Mon Mar 18 20:09:18
CET 2002 le@korben:/usr/src/sys/compile/KORBEN i386

        
>Description:

Resuming from suspend mode after issueing "atacontrol detach" results in
a kernel panic on my Thinkpad T20.

My laptop (Thinkpad T20) has a DVD drive and a floppy drive, which share
one slot; if you want to use either of them, you have to remove the other
one. With the arrive of atacontrol in STABLE I thought, I finally could
hotswap them instead of rebooting.

So if I say "atacontrol detach 1", then remove the DVD drive, some stupid
Thinkpad hardware starts beeping, because it misses the drive. To stop
the beep, I go into suspend mode via "zzz". After resuming I get a kernel
panic:

[root@korben crash]# gdb -k /usr/src/sys/compile/KORBEN/kernel.debug 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 at phsyical address 0x003b9000
initial pcb at physical address 0x00318fa0
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x70
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc016dc28
stack pointer           = 0x10:0xc02d79ec
frame pointer           = 0x10:0xc02d7a10
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         = Idle
interrupt mask          = net tty bio cam 
trap number             = 12
panic: page fault

syncing disks... 

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x30
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc020b9cc
stack pointer           = 0x10:0xc02d7810
frame pointer           = 0x10:0xc02d7818
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         = Idle
interrupt mask          = net tty bio cam 
trap number             = 12
panic: page fault
Uptime: 1m52s

dumping to dev #ad/0x30001, offset 524416
dump ata0: resetting devices .. done
255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236
235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216
215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196
195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176
175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156
155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136
135 134 133 132 131 130 129 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 
---
#0  dumpsys () at ../../kern/kern_shutdown.c:487
487             if (dumping++) {
(kgdb) where 
#0  dumpsys () at ../../kern/kern_shutdown.c:487
#1  0xc016ac03 in boot (howto=260) at ../../kern/kern_shutdown.c:316
#2  0xc016b028 in poweroff_wait (junk=0xc02cf4ec, howto=-1070796785)
    at ../../kern/kern_shutdown.c:595

#3  0xc0289616 in trap_fatal (frame=0xc02d77d0, eva=48)
    at ../../i386/i386/trap.c:966
#4  0xc02892e9 in trap_pfault (frame=0xc02d77d0, usermode=0, eva=48)
    at ../../i386/i386/trap.c:859
#5  0xc0288ea7 in trap (frame={tf_fs = -1070792688, tf_es = 16, tf_ds = 16, 
      tf_edi = -1070401056, tf_esi = 0, tf_ebp = -1070761960, 
      tf_isp = -1070761988, tf_ebx = -1070675684, tf_edx = 6834240, 
      tf_ecx = 2, tf_eax = 0, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1071597108, tf_cs = 8, tf_eflags = 66182, tf_esp = 0, 
      tf_ss = 0}) at ../../i386/i386/trap.c:458
#6  0xc020b9cc in acquire_lock (lk=0xc02ec91c)
    at ../../ufs/ffs/ffs_softdep.c:266
#7  0xc020ffee in softdep_fsync_mountdev (vp=0xcd150b40)
    at ../../ufs/ffs/ffs_softdep.c:4024
#8  0xc02141e2 in ffs_fsync (ap=0xc02d788c) at ../../ufs/ffs/ffs_vnops.c:134
#9  0xc0212ea3 in ffs_sync (mp=0xc1261600, waitfor=2, cred=0xc0a3c900, 
    p=0xc032f9e0) at vnode_if.h:558
#10 0xc019a447 in sync (p=0xc032f9e0, uap=0x0) at ../../kern/vfs_syscalls.c:569
#11 0xc016a99e in boot (howto=256) at ../../kern/kern_shutdown.c:235
#12 0xc016b028 in poweroff_wait (junk=0xc02cf4ec, howto=-1070796785)
    at ../../kern/kern_shutdown.c:595
#13 0xc0289616 in trap_fatal (frame=0xc02d79ac, eva=112)
    at ../../i386/i386/trap.c:966
#14 0xc02892e9 in trap_pfault (frame=0xc02d79ac, usermode=0, eva=112)
    at ../../i386/i386/trap.c:859
#15 0xc0288ea7 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 0, 
      tf_esi = -1055110912, tf_ebp = -1070761456, tf_isp = -1070761512, 
      tf_ebx = 0, tf_edx = 503, tf_ecx = -1055159488, tf_eax = 4194304, 
      tf_trapno = 12, tf_err = 0, tf_eip = -1072243672, tf_cs = 8, 
      tf_eflags = 66118, tf_esp = 496, tf_ss = -1055110868})
    at ../../i386/i386/trap.c:458
#16 0xc016dc28 in tsleep (ident=0xc11c4900, priority=16, 
    wmesg=0xc02a4246 "atacmd", timo=1000) at ../../kern/kern_synch.c:436
#17 0xc0135630 in ata_command (atadev=0xc11c492c, command=236 'ì', lba=0, 
    count=0, feature=0, flags=2) at ../../dev/ata/ata-all.c:1048
#18 0xc013418b in ata_getparam (atadev=0xc11c492c, command=236)
    at ../../dev/ata/ata-all.c:428
#19 0xc0134e52 in ata_reinit (ch=0xc11c4900) at ../../dev/ata/ata-all.c:845
#20 0xc0133db1 in ata_resume (dev=0xc11c9c00) at ../../dev/ata/ata-all.c:275
#21 0xc0121e12 in DEVICE_RESUME (dev=0xc11c9c00) at device_if.c:105
#22 0xc017380a in bus_generic_resume (dev=0xc11b4c00)
    at ../../kern/subr_bus.c:1936
#23 0xc0121e12 in DEVICE_RESUME (dev=0xc11b4c00) at device_if.c:105
#24 0xc017380a in bus_generic_resume (dev=0xc11b3500)
    at ../../kern/subr_bus.c:1936
#25 0xc0121e12 in DEVICE_RESUME (dev=0xc11b3500) at device_if.c:105
#26 0xc017380a in bus_generic_resume (dev=0xc11b3680)
    at ../../kern/subr_bus.c:1936
#27 0xc0121e12 in DEVICE_RESUME (dev=0xc11b3680) at device_if.c:105
#28 0xc017380a in bus_generic_resume (dev=0xc11b3800)
    at ../../kern/subr_bus.c:1936
#29 0xc0121e12 in DEVICE_RESUME (dev=0xc11b3800) at device_if.c:105
#30 0xc017380a in bus_generic_resume (dev=0xc0a3c880)
    at ../../kern/subr_bus.c:1936
#31 0xc0121e12 in DEVICE_RESUME (dev=0xc0a3c880) at device_if.c:105
#32 0xc02788db in apm_resume () at ../../i386/apm/apm.c:596
#33 0xc0278f94 in apm_processevent () at ../../i386/apm/apm.c:980
#34 0xc0278766 in apm_do_suspend () at ../../i386/apm/apm.c:481
#35 0xc0278b1d in apm_timeout (dummy=0x0) at ../../i386/apm/apm.c:738
#36 0xc0170a85 in softclock () at ../../kern/kern_timeout.c:131


It doesn't matter if I attach the drive again before I go into suspend/resume,
the kernel still panics. I still have the debug kernel here, if you need
more information.

>How-To-Repeat:

On a Thinkpad T20: boot with the DVD installed, issue "atacontrol detach 1",
suspend via "zzz" or function keys, resume again -> panic.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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