Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 May 2007 02:35:53 -0700 (PDT)
From:      Nate Eldredge <neldredge@math.ucsd.edu>
To:        freebsd-acpi@freebsd.org
Subject:   System freeze on modem ring; ACPI involved
Message-ID:  <Pine.GSO.4.64.0705130209390.9821@zeno.ucsd.edu>

next in thread | raw e-mail | index | archive | help
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



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