From owner-freebsd-acpi@FreeBSD.ORG Sun May 13 09:54:06 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7484216A406 for ; Sun, 13 May 2007 09:54:06 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 5BB7A13C457 for ; Sun, 13 May 2007 09:54:06 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id l4D9ZrH20797 for ; Sun, 13 May 2007 02:35:53 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id l4D9Zr909852 for ; Sun, 13 May 2007 02:35:53 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Sun, 13 May 2007 02:35:53 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: freebsd-acpi@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: System freeze on modem ring; ACPI involved X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 09:54:06 -0000 Hi all, I'm trying to chase down a problem whereby the system freezes briefly when the modem rings. It is an external serial modem, and during the 2 seconds that the phone is ringing, user processes do not run, though keystrokes are echoed to the console. When the ring ends everything is back to normal. It appears that ACPI is related and I wonder if this is possibly a "wake-on-ring" feature gone awry. Running top -S shows that three processes called "acpi_task_[012]" accumulate cpu time during the ringing. Also, booting with ACPI disabled makes the problem go away. I recompiled with ACPI_DEBUG and found that during the ringing, it spews a lot of messages like the following: Execute Method: [\\_GPE._L0E] (Node 0xffffff0000940930) [ACPI Debug] String: [0x4] "SIOH" exregion-0378 [62] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [62] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2F exregion-0378 [64] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [63] ExSystemIoSpaceHandler: SystemIO 0 (8 width) Address= 0 2F exregion-0378 [64] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [63] ExSystemIoSpaceHandler: SystemIO 0 (8 width) Address= 0 2F exregion-0378 [62] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [62] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2F exregion-0378 [64] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [63] ExSystemIoSpaceHandler: SystemIO 0 (8 width) Address= 0 2F exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2F exregion-0378 [64] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [63] ExSystemIoSpaceHandler: SystemIO 0 (8 width) Address= 0 2F exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2F exregion-0378 [64] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [63] ExSystemIoSpaceHandler: SystemIO 0 (8 width) Address= 0 2F exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2F exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E exregion-0378 [65] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2F exregion-0378 [62] ExSystemIoSpaceHandler: SystemIO 1 (8 width) Address= 0 2E evmisc-0210 [53] EvQueueNotifyRequest : Dispatching Notify(2) on node 0xffffff0000940630 evmisc-0215 [53] EvQueueNotifyRequest : Notify value: Device Wake evmisc-0286 [53] EvQueueNotifyRequest : No notify handler for Notify(PWRB, 2) node 0xffffff0000940630 [repeats hundreds of times] The acpi man page mentions the possibility of selectively disabling acpi features. I tried adding debug.acpi.avoid="\_GPE._L0E" to /boot/loader.conf and rebooting, but that does not help. Am I doing it right? The machine is a single Opteron with a Tyan S2875 Tiger K8W motherboard. I am running FreeBSD 6.2-RELEASE-p4 amd64. I've included the output of acpidump -t. Thanks in advance for any suggestions on fixing this. Please let me know if I have left out any important details. I would appreciate a personal cc on any replies, but I will check the list too. Output of acpidump -t: /* RSD PTR: OEM=ACPIAM, ACPI_Rev=2.0x (2) XSDT=0x3fff0100, length=36, cksum=157 */ /* XSDT: Length=76, Revision=1, Checksum=199, OEMID=A M I, OEM Table ID=OEMXSDT, OEM Revision=0x6000514, Creator ID=MSFT, Creator Revision=0x97 Entries={ 0x3fff0281, 0x3fff0380, 0x3ffff040, 0x3fff3990, 0x3fff39d0 } */ /* FACP: Length=244, Revision=1, Checksum=222, OEMID=A M I, OEM Table ID=OEMFACP, OEM Revision=0x6000514, Creator ID=MSFT, Creator Revision=0x97 FACS=0x3ffff000, DSDT=0x3fff03f0 INT_MODEL=APIC Preferred_PM_Profile=Workstation (3) SCI_INT=9 SMI_CMD=0x102f, ACPI_ENABLE=0xe1, ACPI_DISABLE=0x1e, S4BIOS_REQ=0x0 PSTATE_CNT=0xe2 PM1a_EVT_BLK=0x1000-0x1003 PM1a_CNT_BLK=0x1004-0x1005 PM_TMR_BLK=0x1008-0x100b GPE0_BLK=0x1020-0x1023 GPE1_BLK=0x10b0-0x10b7, GPE1_BASE=16 CST_CNT=0xe3 P_LVL2_LAT=101 us, P_LVL3_LAT=1001 us FLUSH_SIZE=1024, FLUSH_STRIDE=16 DUTY_OFFSET=1, DUTY_WIDTH=3 DAY_ALRM=125, MON_ALRM=126, CENTURY=127 IAPC_BOOT_ARCH={LEGACY_DEV,8042} Flags={WBINVD,PROC_C1,SLP_BUTTON,RTC_S4} X_FACS=0x3ffff000, X_DSDT=0x3fff03f0 X_PM1a_EVT_BLK=0x1000:0[32] (IO) X_PM1a_CNT_BLK=0x1004:0[16] (IO) X_PM_TMR_BLK=0x1008:0[32] (IO) X_GPE0_BLK=0x1020:0[32] (IO) X_GPE1_BLK=0x10b0:16[64] (IO) */ /* FACS: Length=64, HwSig=0x00000000, Firm_Wake_Vec=0x00000000 Global_Lock= Flags= Version=1 */ /* DSDT: Length=13725, Revision=1, Checksum=252, OEMID=0AAAA, OEM Table ID=0AAAA000, OEM Revision=0x0, Creator ID=INTL, Creator Revision=0x2002026 */ /* APIC: Length=108, Revision=1, Checksum=185, OEMID=A M I, OEM Table ID=OEMAPIC, OEM Revision=0x6000514, Creator ID=MSFT, Creator Revision=0x97 Local APIC ADDR=0xfee00000 Flags={PC-AT} Type=Local APIC ACPI CPU=1 Flags={ENABLED} APIC ID=0 Type=Local APIC ACPI CPU=2 Flags={DISABLED} APIC ID=129 Type=Local APIC ACPI CPU=3 Flags={DISABLED} APIC ID=130 Type=Local APIC ACPI CPU=4 Flags={DISABLED} APIC ID=131 Type=IO APIC APIC ID=1 INT BASE=0 ADDR=0x00000000fec00000 Type=INT Override BUS=0 IRQ=0 INTR=2 Flags={Polarity=conforming, Trigger=conforming} Type=INT Override BUS=0 IRQ=0 INTR=2 Flags={Polarity=conforming, Trigger=conforming} */ /* OEMB: Length=65, Revision=1, Checksum=183, OEMID=A M I, OEM Table ID=OEMBIOS, OEM Revision=0x6000514, Creator ID=MSFT, Creator Revision=0x97 */ /* HPET: Length=56, Revision=1, Checksum=18, OEMID=A M I, OEM Table ID=OEMHPET, OEM Revision=0x6000514, Creator ID=MSFT, Creator Revision=0x97 HPET Number=0 ADDR=0x00000800 HW Rev=0xa0 Comparitors=2 Counter Size=0 Legacy IRQ routing capable={TRUE} PCI Vendor ID=0x1022 Minimal Tick=1 */ /* ASF!: Length=134, Revision=1, Checksum=107, OEMID=AMIASF, OEM Table ID=AMDSTRET, OEM Revision=0x1, Creator ID=INTL, Creator Revision=0x2002026 */ -- Nate Eldredge neldredge@math.ucsd.edu