From owner-freebsd-current Mon Dec 11 17:24:49 2000 From owner-freebsd-current@FreeBSD.ORG Mon Dec 11 17:24:46 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mgate10.so-net.ne.jp (mgate10.so-net.ne.jp [210.139.254.157]) by hub.freebsd.org (Postfix) with ESMTP id 13ADC37B400 for ; Mon, 11 Dec 2000 17:24:46 -0800 (PST) Received: from mail.ya3.so-net.ne.jp (mspool11.so-net.ne.jp [210.139.248.11]) by mgate10.so-net.ne.jp (8.9.3/3.7W00120719) with ESMTP id KAA25083 for ; Tue, 12 Dec 2000 10:24:39 +0900 (JST) Received: from localhost (p84e46a.ykh2.ap.so-net.ne.jp [210.132.228.106]) by mail.ya3.so-net.ne.jp (8.9.3/3.7W99092111) with ESMTP id KAA14402 for ; Tue, 12 Dec 2000 10:24:38 +0900 (JST) Subject: APM problem with 5.0-current From: Yoshihiro Koya To: freebsd-current@FreeBSD.org X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20001212102504H.ipfw@ya3.so-net.ne.jp> Date: Tue, 12 Dec 2000 10:25:04 +0900 Sender: ipfw X-Dispatcher: imput version 990905(IM130) Lines: 86 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I have a some problem of APM with 5.0-current. In the case which I type # shutdown -p now the system does halt or reboot( this seems to be somewhat unstable), and never off the power of the PC. To find the problem, I produced the crash dump and analyzed it by gdb. The result was : ---------------------------------------------------------------------- GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. ( omitted some junks ... ) IdlePTD 3952640 initial pcb at 323700 panicstr: from debugger panic messages: --- panic: from debugger panic: from debugger Uptime: 1m17s dumping to dev #ad/0x30001, offset 0 dump ata0: resetting devices .. done 256 255 254 ( omitted some junks again ... ) 8 7 6 5 4 3 2 1 --- #0 dumpsys () at ../../kern/kern_shutdown.c:477 477 if (dumping++) { (kgdb) where #0 dumpsys () at ../../kern/kern_shutdown.c:477 #1 0xc0179f74 in boot (howto=260) at ../../kern/kern_shutdown.c:320 #2 0xc017a3cd in panic (fmt=0xc02a0494 "from debugger") at ../../kern/kern_shutdown.c:570 #3 0xc0120655 in db_panic (addr=-1071129368, have_addr=0, count=-1, modif=0xcb32adb8 "") at ../../ddb/db_command.c:433 #4 0xc01205f5 in db_command (last_cmdp=0xc02cff20, cmd_table=0xc02cfd80, aux_cmd_tablep=0xc03110e0) at ../../ddb/db_command.c:333 #5 0xc01206ba in db_command_loop () at ../../ddb/db_command.c:455 #6 0xc012287f in db_trap (type=3, code=0) at ../../ddb/db_trap.c:71 #7 0xc02816a2 in kdb_trap (type=3, code=0, regs=0xcb32aeb8) at ../../i386/i386/db_interface.c:163 #8 0xc028c778 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = -1062992888, tf_esi = -1062992896, tf_ebp = -885870800, tf_isp = -885870876, tf_ebx = -1063040768, tf_edx = -1062992888, tf_ecx = 8, tf_eax = -1071129368, tf_trapno = 3, tf_err = 0, tf_eip = -1071129367, tf_cs = 8, tf_eflags = 514, tf_esp = -1072193444, tf_ss = 0}) at ../../i386/i386/trap.c:589 #9 0xc027dce9 in apm_power_off (junk=0x4008, howto=-885870688) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at ../../i386/apm/apm.c:300 #10 0xc0179848 in reboot (p=0xcb324c80, uap=0xcb32af80) at ../../kern/kern_shutdown.c:145 #11 0xc028d251 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077936612, tf_esi = -1077936624, tf_ebp = -1077936836, tf_isp = -885870636, tf_ebx = -1077936732, tf_edx = -1, tf_ecx = 4, tf_eax = 55, tf_trapno = 7, tf_err = 2, tf_eip = 134536700, tf_cs = 31, tf_eflags = 643, tf_esp = -1077937056, tf_ss = 47}) at ../../i386/i386/trap.c:1141 #12 0xc0281fef in Xint0x80_syscall () #13 0x804873e in ?? () #14 0x80484c8 in ?? () #15 0x8048135 in ?? () (kgdb) up 9 #9 0xc027dce9 in apm_power_off (junk=0x4008, howto=-885870688) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at ../../i386/apm/apm.c:300 ---------------------------------------------------------------------- The value of the first arg of apm_power_off 0x4008 is identical to howto = ( RB_POWEROFF | RB_HALT ) (see /usr/src/sys/sys/reboot.h), which should be the value of the second arg of apm_power_off function. I guess something goes wrong. I couldn't, however, find any solution to this. Added to this, I must report that 4.2-stable running on the same PC can power off without any kind of problems. Does someone have same problem? Is it proper to me? Does someone have a suggestion? koya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message