2003-07-26 12:49:55

by Jacob Hallén

[permalink] [raw]
Subject: PROBLEM: ACPI hangs when invoked from keyboard

When I press the "Fn" key and some other key on my laptop, it almost
comes to a total freeze and the error messages shown below are written
to the console over and over again. Th "Fn" key on an IBM laptop is
used to invoke functionality like switching between builtin screen and
external screen, changing lights and suspending the machine.

This behaviour is different from the one I had with 2.5.73, where the
machine did not react at all to any Fn-Key combination.

Do I have a problem with my config, is it a bug or simply
unimplemented hardware support? Any help appreciated. Please CC me on
any replies.

Thanks in advance

Jacob Hall?n
______________________________________________________________________________
Hardware:
=========
IBM Thinkpad X30

Kernel version:
===============
Linux version 2.6.0-test1 (root@nell)
(gcc version 3.3.1 20030626 (Debian prerelease)) #1
tis jul 22 04:21:17 CEST 2003

Error message:
==============
ACPI-0297 *** Error: AE_TIME while evaluating method [_L18] for GPE[ 0]
ACPI-0345 *** Error: Handler for [EmbeddedControl] returned AE_TIME
ACPI-1121 *** Error: Method execution failed [\_GPE._L18](Node c15f1fa0)

ACPI related parts of config:
=============================
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_SOFTWARE_SUSPEND is not set

#
# ACPI Support
#
CONFIG_ACPI=y
# CONFIG_ACPI_HT_ONLY is not set
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_APM is not set

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_PROC_INTF is not set
CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_24_API is not set
CONFIG_CPU_FREQ_TABLE=y

#
# CPUFreq processor drivers
#
# CONFIG_X86_ACPI_CPUFREQ is not set
...
CONFIG_HOTPLUG_PCI_ACPI=y

CPU Info:
=========
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 11
model name : Mobile Intel(R) Pentium(R) III CPU - M 1200MHz
stepping : 4
cpu MHz : 1196.132
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov
pat pse36 mmx fxsr sse
bogomips : 2367.48

Modules:
========
irda 132092 0 - Live 0xe0155000

/proc/ioports:
==============
0000-001f : dma1
0020-0021 : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
03c0-03df : vga+
03f6-03f6 : ide0
0cf8-0cff : PCI conf1
1000-10ff : PCI CardBus #02
1400-14ff : PCI CardBus #02
1800-181f : Intel Corp. 82801CA/CAM USB (Hub
1820-183f : Intel Corp. 82801CA/CAM USB (Hub
1840-185f : Intel Corp. 82801CA/CAM USB (Hub
1860-186f : Intel Corp. 82801CAM IDE U100
1880-189f : Intel Corp. 82801CA/CAM SMBus
18c0-18ff : Intel Corp. 82801CA/CAM AC'97 Au
18c0-18ff : Intel 82801CA-ICH3 - Controller
1c00-1cff : Intel Corp. 82801CA/CAM AC'97 Au
1c00-1cff : Intel 82801CA-ICH3 - AC'97
2000-207f : Intel Corp. 82801CA/CAM AC'97 Mo
2400-24ff : Intel Corp. 82801CA/CAM AC'97 Mo
2800-28ff : PCI CardBus #06
2c00-2cff : PCI CardBus #06
7000-703f : Intel Corp. 82801CAM (ICH3) PRO/
7000-703f : eepro100

/proc/iomem:
============
00000000-0009efff : System RAM
0009f000-0009ffff : reserved
000a0000-000bffff : Video RAM area
000ce000-000cefff : Extension ROM
000cf000-000cffff : Extension ROM
000e0000-000effff : Extension ROM
000f0000-000fffff : System ROM
00100000-1f76ffff : System RAM
00100000-00365d25 : Kernel code
00365d26-00457b3f : Kernel data
1f770000-1f77dfff : ACPI Tables
1f77e000-1f77ffff : ACPI Non-volatile Storage
1f780000-1fffffff : reserved
20000000-200003ff : Intel Corp. 82801CAM IDE U100
20400000-207fffff : PCI CardBus #02
20800000-20bfffff : PCI CardBus #02
20c00000-20ffffff : PCI CardBus #06
21000000-213fffff : PCI CardBus #06
50000000-50000fff : Ricoh Co Ltd RL5c476 II
50100000-50100fff : Ricoh Co Ltd RL5c476 II (#2)
d0000000-d007ffff : Intel Corp. 82830 CGC [Chipset G
d0080000-d00fffff : Intel Corp. 82830 CGC [Chipset G (#2)
d0200000-d0200fff : Intel Corp. 82801CAM (ICH3) PRO/
d0200000-d0200fff : eepro100
d0201000-d02017ff : Ricoh Co Ltd R5C552 IEEE 1394 Con
e0000000-e7ffffff : Intel Corp. 82830 CGC [Chipset G
e8000000-efffffff : Intel Corp. 82830 CGC [Chipset G (#2)
f8000000-f8000fff : Harris Semiconductor Prism 2.5 Wavelan ch
ff800000-ffffffff : reserved

lspci -vvv:
===========
00:00.0 Host bridge: Intel Corp. 82830 830 Chipset Host Bridge (rev 04)
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
Latency: 0
Region 0: Memory at <unassigned> (32-bit, prefetchable)
Capabilities: [40] #09 [2105]

00:02.0 VGA compatible controller: Intel Corp. 82830 CGC [Chipset Graphics
Controller] (rev 04) (prog-if 00 [VGA])
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=128M]
Region 1: Memory at d0000000 (32-bit, non-prefetchable)
[size=512K]
Capabilities: [d0] Power Management version 1
Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:02.1 Display controller: Intel Corp. 82830 CGC [Chipset Graphics
Controller] Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M]
Region 1: Memory at d0080000 (32-bit, non-prefetchable)
[size=512K]
Capabilities: [d0] Power Management version 1
Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02)
(prog-if 00 [UHCI])
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 4: I/O ports at 1800 [size=32]

00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 02)
(prog-if 00 [UHCI])
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin B routed to IRQ 11
Region 4: I/O ports at 1820 [size=32]

00:1d.2 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #3) (rev 02)
(prog-if 00 [UHCI])
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin C routed to IRQ 11
Region 4: I/O ports at 1840 [size=32]

00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 42) (prog-if
00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=01, subordinate=07, sec-latency=64
I/O behind bridge: 00003000-00007fff
Memory behind bridge: d0200000-dfffffff
Prefetchable memory behind bridge: f0000000-f80fffff
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-

00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0

00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02) (prog-if 8a
[Master SecP PriP])
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at <ignored>
Region 1: I/O ports at <ignored>
Region 2: I/O ports at <ignored>
Region 3: I/O ports at <ignored>
Region 4: I/O ports at 1860 [size=16]
Region 5: Memory at 20000000 (32-bit, non-prefetchable) [disabled]
[size=1K]

00:1f.3 SMBus: Intel Corp. 82801CA/CAM SMBus (rev 02)
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin B routed to IRQ 11
Region 4: I/O ports at 1880 [size=32]

00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio
(rev 02)
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin B routed to IRQ 11
Region 0: I/O ports at 1c00 [size=256]
Region 1: I/O ports at 18c0 [size=64]

00:1f.6 Modem: Intel Corp. 82801CA/CAM AC'97 Modem (rev 02) (prog-if 00
[Generic])
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin B routed to IRQ 11
Region 0: I/O ports at 2400 [size=256]
Region 1: I/O ports at 2000 [size=128]

01:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a8)
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 168
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 50000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=01, secondary=02, subordinate=05, sec-latency=176
Memory window 0: 20400000-207ff000 (prefetchable)
Memory window 1: 20800000-20bff000
I/O window 0: 00001000-000010ff
I/O window 1: 00001400-000014ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+
PostWrite+
16-bit legacy interface ports at 0001

01:00.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a8)
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 168
Interrupt: pin B routed to IRQ 11
Region 0: Memory at 50100000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=01, secondary=06, subordinate=09, sec-latency=176
Memory window 0: 20c00000-20fff000 (prefetchable)
Memory window 1: 21000000-213ff000
I/O window 0: 00002800-000028ff
I/O window 1: 00002c00-00002cff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+
PostWrite+
16-bit legacy interface ports at 0001

01:00.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller
(prog-if 10 [OHCI])
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (500ns min, 1000ns max)
Interrupt: pin C routed to IRQ 11
Region 0: Memory at d0201000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-

01:02.0 Network controller: Harris Semiconductor Prism 2.5 Wavelan chipset
(rev 01)
Subsystem: Intel Corp. Wireless 802.11b MiniPCI Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 64, cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at f8000000 (32-bit, prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

01:08.0 Ethernet controller: Intel Corp. 82801CAM (ICH3) PRO/100 VE (LOM)
Ethernet Controller (rev 42)
Subsystem: IBM ThinkPad A/T/X Series
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 66 (2000ns min, 14000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at d0200000 (32-bit, non-prefetchable) [size=4K]
Region 1: I/O ports at 7000 [size=64]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-



2003-07-28 23:07:01

by Andrew Grover

[permalink] [raw]
Subject: RE: PROBLEM: ACPI hangs when invoked from keyboard

This isn't ACPI, it's because 2.5.74+ force the APIC enabled.

-- Andy

> From: Jacob Hall?n [mailto:[email protected]]
> When I press the "Fn" key and some other key on my laptop, it almost
> comes to a total freeze and the error messages shown below are written
> to the console over and over again. Th "Fn" key on an IBM laptop is
> used to invoke functionality like switching between builtin screen and
> external screen, changing lights and suspending the machine.
>
> This behaviour is different from the one I had with 2.5.73, where the
> machine did not react at all to any Fn-Key combination.
>
> Do I have a problem with my config, is it a bug or simply
> unimplemented hardware support? Any help appreciated. Please CC me on
> any replies.
>
> Thanks in advance
>
> Jacob Hall?n
> ______________________________________________________________
> ________________
> Hardware:
> =========
> IBM Thinkpad X30
>
> Kernel version:
> ===============
> Linux version 2.6.0-test1 (root@nell)
> (gcc version 3.3.1 20030626 (Debian prerelease)) #1
> tis jul 22 04:21:17 CEST 2003
>
> Error message:
> ==============
> ACPI-0297 *** Error: AE_TIME while evaluating method [_L18]
> for GPE[ 0]
> ACPI-0345 *** Error: Handler for [EmbeddedControl] returned AE_TIME
> ACPI-1121 *** Error: Method execution failed
> [\_GPE._L18](Node c15f1fa0)
>
> ACPI related parts of config:
> =============================
> # Power management options (ACPI, APM)
> #
> CONFIG_PM=y
> # CONFIG_SOFTWARE_SUSPEND is not set
>
> #
> # ACPI Support
> #
> CONFIG_ACPI=y
> # CONFIG_ACPI_HT_ONLY is not set
> CONFIG_ACPI_BOOT=y
> CONFIG_ACPI_AC=y
> CONFIG_ACPI_BATTERY=y
> CONFIG_ACPI_BUTTON=y
> CONFIG_ACPI_FAN=y
> CONFIG_ACPI_PROCESSOR=y
> CONFIG_ACPI_THERMAL=y
> # CONFIG_ACPI_ASUS is not set
> # CONFIG_ACPI_TOSHIBA is not set
> # CONFIG_ACPI_DEBUG is not set
> CONFIG_ACPI_BUS=y
> CONFIG_ACPI_INTERPRETER=y
> CONFIG_ACPI_EC=y
> CONFIG_ACPI_POWER=y
> CONFIG_ACPI_PCI=y
> CONFIG_ACPI_SYSTEM=y
> # CONFIG_APM is not set
>
> #
> # CPU Frequency scaling
> #
> CONFIG_CPU_FREQ=y
> # CONFIG_CPU_FREQ_PROC_INTF is not set
> CONFIG_CPU_FREQ_GOV_USERSPACE=y
> # CONFIG_CPU_FREQ_24_API is not set
> CONFIG_CPU_FREQ_TABLE=y
>
> #
> # CPUFreq processor drivers
> #
> # CONFIG_X86_ACPI_CPUFREQ is not set
> ...
> CONFIG_HOTPLUG_PCI_ACPI=y
>
> CPU Info:
> =========
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 6
> model : 11
> model name : Mobile Intel(R) Pentium(R) III CPU - M 1200MHz
> stepping : 4
> cpu MHz : 1196.132
> cache size : 512 KB
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 2
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep
> mtrr pge mca
> cmov
> pat pse36 mmx fxsr sse
> bogomips : 2367.48
>
> Modules:
> ========
> irda 132092 0 - Live 0xe0155000
>
> /proc/ioports:
> ==============
> 0000-001f : dma1
> 0020-0021 : pic1
> 0040-005f : timer
> 0060-006f : keyboard
> 0080-008f : dma page reg
> 00a0-00a1 : pic2
> 00c0-00df : dma2
> 00f0-00ff : fpu
> 01f0-01f7 : ide0
> 03c0-03df : vga+
> 03f6-03f6 : ide0
> 0cf8-0cff : PCI conf1
> 1000-10ff : PCI CardBus #02
> 1400-14ff : PCI CardBus #02
> 1800-181f : Intel Corp. 82801CA/CAM USB (Hub
> 1820-183f : Intel Corp. 82801CA/CAM USB (Hub
> 1840-185f : Intel Corp. 82801CA/CAM USB (Hub
> 1860-186f : Intel Corp. 82801CAM IDE U100
> 1880-189f : Intel Corp. 82801CA/CAM SMBus
> 18c0-18ff : Intel Corp. 82801CA/CAM AC'97 Au
> 18c0-18ff : Intel 82801CA-ICH3 - Controller
> 1c00-1cff : Intel Corp. 82801CA/CAM AC'97 Au
> 1c00-1cff : Intel 82801CA-ICH3 - AC'97
> 2000-207f : Intel Corp. 82801CA/CAM AC'97 Mo
> 2400-24ff : Intel Corp. 82801CA/CAM AC'97 Mo
> 2800-28ff : PCI CardBus #06
> 2c00-2cff : PCI CardBus #06
> 7000-703f : Intel Corp. 82801CAM (ICH3) PRO/
> 7000-703f : eepro100
>
> /proc/iomem:
> ============
> 00000000-0009efff : System RAM
> 0009f000-0009ffff : reserved
> 000a0000-000bffff : Video RAM area
> 000ce000-000cefff : Extension ROM
> 000cf000-000cffff : Extension ROM
> 000e0000-000effff : Extension ROM
> 000f0000-000fffff : System ROM
> 00100000-1f76ffff : System RAM
> 00100000-00365d25 : Kernel code
> 00365d26-00457b3f : Kernel data
> 1f770000-1f77dfff : ACPI Tables
> 1f77e000-1f77ffff : ACPI Non-volatile Storage
> 1f780000-1fffffff : reserved
> 20000000-200003ff : Intel Corp. 82801CAM IDE U100
> 20400000-207fffff : PCI CardBus #02
> 20800000-20bfffff : PCI CardBus #02
> 20c00000-20ffffff : PCI CardBus #06
> 21000000-213fffff : PCI CardBus #06
> 50000000-50000fff : Ricoh Co Ltd RL5c476 II
> 50100000-50100fff : Ricoh Co Ltd RL5c476 II (#2)
> d0000000-d007ffff : Intel Corp. 82830 CGC [Chipset G
> d0080000-d00fffff : Intel Corp. 82830 CGC [Chipset G (#2)
> d0200000-d0200fff : Intel Corp. 82801CAM (ICH3) PRO/
> d0200000-d0200fff : eepro100
> d0201000-d02017ff : Ricoh Co Ltd R5C552 IEEE 1394 Con
> e0000000-e7ffffff : Intel Corp. 82830 CGC [Chipset G
> e8000000-efffffff : Intel Corp. 82830 CGC [Chipset G (#2)
> f8000000-f8000fff : Harris Semiconductor Prism 2.5 Wavelan ch
> ff800000-ffffffff : reserved
>
> lspci -vvv:
> ===========
> 00:00.0 Host bridge: Intel Corp. 82830 830 Chipset Host
> Bridge (rev 04)
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR+ FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort+ >SERR- <PERR-
> Latency: 0
> Region 0: Memory at <unassigned> (32-bit, prefetchable)
> Capabilities: [40] #09 [2105]
>
> 00:02.0 VGA compatible controller: Intel Corp. 82830 CGC
> [Chipset Graphics
> Controller] (rev 04) (prog-if 00 [VGA])
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin A routed to IRQ 11
> Region 0: Memory at e0000000 (32-bit, prefetchable)
> [size=128M]
> Region 1: Memory at d0000000 (32-bit, non-prefetchable)
> [size=512K]
> Capabilities: [d0] Power Management version 1
> Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
> Status: D0 PME-Enable- DSel=0 DScale=0 PME-
>
> 00:02.1 Display controller: Intel Corp. 82830 CGC [Chipset Graphics
> Controller] Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Region 0: Memory at e8000000 (32-bit, prefetchable)
> [size=128M]
> Region 1: Memory at d0080000 (32-bit, non-prefetchable)
> [size=512K]
> Capabilities: [d0] Power Management version 1
> Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
> Status: D0 PME-Enable- DSel=0 DScale=0 PME-
>
> 00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02)
> (prog-if 00 [UHCI])
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin A routed to IRQ 11
> Region 4: I/O ports at 1800 [size=32]
>
> 00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 02)
> (prog-if 00 [UHCI])
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin B routed to IRQ 11
> Region 4: I/O ports at 1820 [size=32]
>
> 00:1d.2 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #3) (rev 02)
> (prog-if 00 [UHCI])
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Interrupt: pin C routed to IRQ 11
> Region 4: I/O ports at 1840 [size=32]
>
> 00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev
> 42) (prog-if
> 00 [Normal decode])
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR+ FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Bus: primary=00, secondary=01, subordinate=07, sec-latency=64
> I/O behind bridge: 00003000-00007fff
> Memory behind bridge: d0200000-dfffffff
> Prefetchable memory behind bridge: f0000000-f80fffff
> BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
>
> 00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
> Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
>
> 00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02)
> (prog-if 8a
> [Master SecP PriP])
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin A routed to IRQ 11
> Region 0: I/O ports at <ignored>
> Region 1: I/O ports at <ignored>
> Region 2: I/O ports at <ignored>
> Region 3: I/O ports at <ignored>
> Region 4: I/O ports at 1860 [size=16]
> Region 5: Memory at 20000000 (32-bit,
> non-prefetchable) [disabled]
> [size=1K]
>
> 00:1f.3 SMBus: Intel Corp. 82801CA/CAM SMBus (rev 02)
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Interrupt: pin B routed to IRQ 11
> Region 4: I/O ports at 1880 [size=32]
>
> 00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM
> AC'97 Audio
> (rev 02)
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin B routed to IRQ 11
> Region 0: I/O ports at 1c00 [size=256]
> Region 1: I/O ports at 18c0 [size=64]
>
> 00:1f.6 Modem: Intel Corp. 82801CA/CAM AC'97 Modem (rev 02)
> (prog-if 00
> [Generic])
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin B routed to IRQ 11
> Region 0: I/O ports at 2400 [size=256]
> Region 1: I/O ports at 2000 [size=128]
>
> 01:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a8)
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B- ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 168
> Interrupt: pin A routed to IRQ 11
> Region 0: Memory at 50000000 (32-bit,
> non-prefetchable) [size=4K]
> Bus: primary=01, secondary=02, subordinate=05, sec-latency=176
> Memory window 0: 20400000-207ff000 (prefetchable)
> Memory window 1: 20800000-20bff000
> I/O window 0: 00001000-000010ff
> I/O window 1: 00001400-000014ff
> BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+
> PostWrite+
> 16-bit legacy interface ports at 0001
>
> 01:00.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a8)
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B- ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 168
> Interrupt: pin B routed to IRQ 11
> Region 0: Memory at 50100000 (32-bit,
> non-prefetchable) [size=4K]
> Bus: primary=01, secondary=06, subordinate=09, sec-latency=176
> Memory window 0: 20c00000-20fff000 (prefetchable)
> Memory window 1: 21000000-213ff000
> I/O window 0: 00002800-000028ff
> I/O window 1: 00002c00-00002cff
> BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+
> PostWrite+
> 16-bit legacy interface ports at 0001
>
> 01:00.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller
> (prog-if 10 [OHCI])
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR+ FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B- ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 64 (500ns min, 1000ns max)
> Interrupt: pin C routed to IRQ 11
> Region 0: Memory at d0201000 (32-bit,
> non-prefetchable) [size=2K]
> Capabilities: [dc] Power Management version 2
> Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
> PME(D0+,D1-,D2-,D3hot+,D3cold+)
> Status: D0 PME-Enable- DSel=0 DScale=2 PME-
>
> 01:02.0 Network controller: Harris Semiconductor Prism 2.5
> Wavelan chipset
> (rev 01)
> Subsystem: Intel Corp. Wireless 802.11b MiniPCI Adapter
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
> ParErr- Stepping- SERR+ FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 64, cache line size 08
> Interrupt: pin A routed to IRQ 11
> Region 0: Memory at f8000000 (32-bit, prefetchable) [size=4K]
> Capabilities: [dc] Power Management version 2
> Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
> PME(D0+,D1+,D2+,D3hot+,D3cold-)
> Status: D0 PME-Enable- DSel=0 DScale=0 PME-
>
> 01:08.0 Ethernet controller: Intel Corp. 82801CAM (ICH3)
> PRO/100 VE (LOM)
> Ethernet Controller (rev 42)
> Subsystem: IBM ThinkPad A/T/X Series
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
> ParErr- Stepping- SERR+ FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr-
> DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 66 (2000ns min, 14000ns max), cache line size 08
> Interrupt: pin A routed to IRQ 11
> Region 0: Memory at d0200000 (32-bit,
> non-prefetchable) [size=4K]
> Region 1: I/O ports at 7000 [size=64]
> Capabilities: [dc] Power Management version 2
> Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
> PME(D0+,D1+,D2+,D3hot+,D3cold+)
> Status: D0 PME-Enable- DSel=0 DScale=2 PME-
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2003-07-29 06:10:33

by Warren Turkal

[permalink] [raw]
Subject: RE: PROBLEM: ACPI hangs when invoked from keyboard

Grover, Andrew wrote:
> This isn't ACPI, it's because 2.5.74+ force the APIC enabled.

You are correct, and here is my addition to this bug report.

Some acpi events appear to lock the system.

svn revisions for pre-bug and post-bug
2.5.73 -> 11245
2.5.74 -> 11487

I will try to compile kernel revisions
(highest_good+(lowest_bad-highest_good)/2) until I
enocunter the bug.

divide and conquer it
11245 good <- 2.5.73
11366 good
11426 good
11457 good
11472 good
11479 good
11483 good
11487 good <- 2.5.74 should have been bad; reason below

After further investigation, the remaining revisions
from 11483 to 11487 (2.5.74) did not look relavant to
my situation. There was mainly an SH arch merge and
two very minimal updates to md and the bumping of the
version in the top Makefile.

At this point, I relized that I had been compiling these
kerenels without SMP, which is not what I did when I
noticed the bug. Therefor, it is an SMP-kernel-only bug.
I have a 1.9GHz Pentium 4M. My understanding is that it
does not support hyperthreading. Why would I see an SMP
bug at this point?

divide and conquer with SMP kernel on
11245 good <- 2.5.73
11306 good
11313 good
11314 good
11315 bad
11317 bad
11321 bad
11336 bad
11366 bad
11487 bad <-- 2.5.74

Therefore, the breaking patch is the changeset from svn
revion 11314 to 11315, which is reproduced below,
including the patch comment.

patch comment:
wt@braindead:/usr/src/linux-trunk$ svn log -r 11315
------------------------------------------------------------------------
rev 11315: mikpe | 2003-06-24 14:50:23 -0500 (Tue, 24 Jun 2003) | 17 lines

[PATCH] enable local APIC on P4

The current local APIC code refuses to enable the local APIC
on a P4 if the BIOS booted us with the local APIC disabled.
This patch removes this unnecessary restriction. Please apply.

Most P4 machines do boot with the local APIC enabled, but
Keith Owens reported that the P4 based Compaq Evo N800v
disables the local APIC, even though the machine actually
works if Linux enables it.

It is possible that some P4 machines with broken BIOSen
were saved by our refusal to enable the local APIC. We
can handle them via the DMI blacklist rules instead.

BKrev: 3ef8ab7fg7Brw4y1sF1EaSr5fMHG7g

------------------------------------------------------------------------
wt@braindead:/usr/src/linux-trunk$

patch itself:
wt@braindead:/usr/src/linux-trunk$ svn diff -r 11314:11315
Index: arch/i386/kernel/apic.c
===================================================================
--- arch/i386/kernel/apic.c (revision 11314)
+++ arch/i386/kernel/apic.c (revision 11315)
@@ -616,7 +616,7 @@
goto no_apic;
case X86_VENDOR_INTEL:
if (boot_cpu_data.x86 == 6 ||
- (boot_cpu_data.x86 == 15 && cpu_has_apic) ||
+ boot_cpu_data.x86 == 15 ||
(boot_cpu_data.x86 == 5 && cpu_has_apic))
break;
goto no_apic;
wt@braindead:/usr/src/linux-trunk$


Conclusion:
Either there is a bug with supporting my type of APIC or my APIC
must have a bug and is disabled by the BIOS for a reason. Either
my hardware should be blacklisted or the old behavior should be
restored.

AFAIK, I have an Intel 845 chipset. I don't know what other info
is needed for blacklisting.

Thanks, Warren Turkal

2003-07-29 10:38:58

by Mikael Pettersson

[permalink] [raw]
Subject: RE: PROBLEM: ACPI hangs when invoked from keyboard

On Mon, 28 Jul 2003 16:04:59 -0700, [email protected] wrote:
>This isn't ACPI, it's because 2.5.74+ force the APIC enabled.

In this case, the problematic 2.5.74 patch you're referring to
is NOT the culprit.

His machine is a P3 not P4, and we've _always_ force-enabled the
local APICs for all P6/K7-family processors. The 2.5.74 patch
only affects P4s.

(I'm thinking about a lapic/nolapic pair of kernel command-line
options, and possibly changing the P4 default to only enable
if lapic was on the command line. That should solve the issues
with local APIC + ACPI in broken BIOSen.)

...
>> IBM Thinkpad X30
...
>> processor : 0
>> vendor_id : GenuineIntel
>> cpu family : 6
>> model : 11
>> model name : Mobile Intel(R) Pentium(R) III CPU - M 1200MHz
>> stepping : 4

2003-07-29 11:07:09

by Mikael Pettersson

[permalink] [raw]
Subject: RE: PROBLEM: ACPI hangs when invoked from keyboard

On Tue, 29 Jul 2003 01:06:08 -0500, Warren Turkal wrote:
>Grover, Andrew wrote:
>> This isn't ACPI, it's because 2.5.74+ force the APIC enabled.
>
>You are correct, and here is my addition to this bug report.
...
>At this point, I relized that I had been compiling these
>kerenels without SMP, which is not what I did when I
>noticed the bug. Therefor, it is an SMP-kernel-only bug.
>I have a 1.9GHz Pentium 4M. My understanding is that it
...
>Therefore, the breaking patch is the changeset from svn
>revion 11314 to 11315, which is reproduced below,
>including the patch comment.
>
>patch comment:
>wt@braindead:/usr/src/linux-trunk$ svn log -r 11315
>------------------------------------------------------------------------
>rev 11315: mikpe | 2003-06-24 14:50:23 -0500 (Tue, 24 Jun 2003) | 17 lines
>
>[PATCH] enable local APIC on P4
...
>Either there is a bug with supporting my type of APIC or my APIC
>must have a bug and is disabled by the BIOS for a reason. Either
>my hardware should be blacklisted or the old behavior should be
>restored.
>
>AFAIK, I have an Intel 845 chipset. I don't know what other info
>is needed for blacklisting.

The bug is not in the hardware but in the BIOS code.
I'm planning a patch to revert P4s to a safe default, it'll
be posted on LKML shortly.

Out of curiosity, what make & model is your laptop?

/Mikael