Hi Alexey, I'm still trying to get to the bottom of this. I am really not familiar with ACPI, but I am slowly finding out a bit more about the problem. I restored the latest BIOS v15 for the motherboard and removed the new DSDT.aml file from initrd so that I have an "as original" configuration. On my generic 2.6.17.13 kernel, I have the following ACPI modules: ac battery button fan processor thermal video I can install all of them apart from "thermal" without a problem. As soon as I install the "thermal" module, the memory leak starts. If I remove the "thermal" module, the memory leak stops. I've repeated the same test on the 2.6.16.20 kernel (again, generic from Kernel.org) and it has the same sensitivity. The leak is only present if the "thermal" module is loaded. On the 2.6.16.20 kernel, the following is present in the "/proc" filesystem for the processor and thermal. mouse:~# cat /proc/acpi/processor/CPU0/info processor id: 0 acpi id: 0 bus mastering control: no power management: no throttling control: no limit interface: no mouse:~# cat /proc/acpi/processor/CPU0/limit <not supported> mouse:~# cat /proc/acpi/processor/CPU0/power active state: C1 max_cstate: C8 bus master activity: 00000000 states: *C1: type[C1] promotion[--] demotion[--] latency[000] usage[00000000] mouse:~# cat /proc/acpi/processor/CPU0/throttling <not supported> mouse:~# cat /proc/acpi/thermal_zone/THRM/ cooling_mode polling_frequency state temperature trip_points mouse:~# cat /proc/acpi/thermal_zone/THRM/cooling_mode cooling mode: active mouse:~# cat /proc/acpi/thermal_zone/THRM/polling_frequency <polling disabled> mouse:~# cat /proc/acpi/thermal_zone/THRM/state state: ok mouse:~# cat /proc/acpi/thermal_zone/THRM/temperature temperature: 32 C mouse:~# cat /proc/acpi/thermal_zone/THRM/trip_points critical (S5): 90 C passive: 90 C: tc1=4 tc2=3 tsp=60 devices=0xdf7eefc0 active[0]: 85 C: devices=0xc1461640 mouse:~# I don't know exactly what it is in the "thermal" module that is triggering the leak, but hopefully this will help narrow down the search. According to the above information, it shouldn't even be polling and is a long way from any of the trip points. Best regards, Roger > -----Original Message----- > From: linux-acpi-owner@xxxxxxxxxxxxxxx [mailto:linux-acpi- > owner@xxxxxxxxxxxxxxx] On Behalf Of Roger Lucas > Sent: 16 September 2006 14:26 > To: 'Alexey Starikovskiy' > Cc: linux-acpi@xxxxxxxxxxxxxxx > Subject: RE: Kernel eats memory with LG-81 motherboard , acpi_operand > possible culprit? > > Hi Alexey, > > I have made the changes that you recommend and am also using the latest > 2.6.17.13 kernel. The output from IASL is now: > > # iasl -tc ../dsdt.dsl > > Intel ACPI Component Architecture > ASL Optimizing Compiler version 20051216 [Jan 9 2006] > Copyright (C) 2000 - 2005 Intel Corporation > Supports ACPI Specification Revision 3.0 > > ../dsdt.dsl 5350: If (Or (PLCY, PLCY, Local7)) > Warning 2097 - ^ Statement is unreachable > > ASL Input: ../dsdt.dsl - 5434 lines, 178315 bytes, 2003 keywords > AML Output: DSDT.aml - 17187 bytes 642 named objects 1361 executable > opcodes > > Compilation complete. 0 Errors, 1 Warnings, 0 Remarks, 534 Optimizations > # > > I patched the kernel to allow a DSDT table to come from the initrd image > as > per: > http://gaugusch.at/kernel.shtml > > This worked fine and I now see the corrected DSDT table being loaded. > > # dmesg > Linux version 2.6.17.13.rwl2 (root@deb1) (gcc version 3.3.5 (Debian > 1:3.3.5-13)) #1 Fri Sep 15 21:18:15 BST 2006 > BIOS-provided physical RAM map: > BIOS-e820: 0000000000000000 - 000000000009f800 (usable) > BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) > BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) > BIOS-e820: 0000000000100000 - 000000001f7f0000 (usable) > BIOS-e820: 000000001f7f0000 - 000000001f7f3000 (ACPI NVS) > BIOS-e820: 000000001f7f3000 - 000000001f800000 (ACPI data) > BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved) > BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved) > 0MB HIGHMEM available. > 503MB LOWMEM available. > found SMP MP-table at 000f5400 > On node 0 totalpages: 129008 > DMA zone: 4096 pages, LIFO batch:0 > Normal zone: 124912 pages, LIFO batch:31 > DMI 2.3 present. > ACPI: RSDP (v000 IntelR ) @ 0x000f9540 > ACPI: RSDT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f3040 > ACPI: FADT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f30c0 > ACPI: BOOT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f79c0 > ACPI: MCFG (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f7b40 > ACPI: MADT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f7a40 > ACPI: DSDT (v001 INTELR AWRDACPI 0x00001000 MSFT 0x0100000e) @ 0x00000000 > ACPI: PM-Timer IO Port: 0x408 > ACPI: Local APIC address 0xfee00000 > ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) > Processor #0 15:4 APIC version 20 > ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] disabled) > ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] disabled) > ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] disabled) > ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1]) > ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1]) > ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1]) > ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) > ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0]) > IOAPIC[0]: apic_id 4, version 32, address 0xfec00000, GSI 0-23 > ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) > ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) > ACPI: IRQ0 used by override. > ACPI: IRQ2 used by override. > ACPI: IRQ9 used by override. > Enabling APIC mode: Flat. Using 1 I/O APICs > Using ACPI (MADT) for SMP configuration information > > <snip> > > Freeing initrd memory: 4600k freed > ACPI: Looking for DSDT in initramfs... successfully read 17187 bytes from > /DSDT.aml. > ACPI (tbget-0290): Table [DSDT] replaced by host OS [20060127] > ENABLING IO-APIC IRQs > ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1 > NET: Registered protocol family 16 > EISA bus registered > ACPI: bus type pci registered > PCI: Using MMCONFIG > Setting up standard PCI resources > ACPI: Subsystem revision 20060127 > ACPI: Interpreter enabled > ACPI: Using IOAPIC for interrupt routing > ACPI: PCI Root Bridge [PCI0] (0000:00) > PCI: Probing PCI hardware (bus 00) > Boot video device is 0000:00:02.0 > PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1 > PCI: Transparent bridge - 0000:00:1e.0 > ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] > ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT] > ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT] > ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 *10 11) > ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 10 11) *0, disabled. > ACPI: PCI Interrupt Link [LNKC] (IRQs *3 4 5 7 10 11) > ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 10 *11) > ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 10 11) *0, disabled. > ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 10 11) *0, disabled. > ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 7 10 11) *0, disabled. > ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 *5 7 10 11) > Linux Plug and Play Support v0.97 (c) Adam Belay > > <snip> > > Unfortunately, the "acpi_operand" field is still leaking. > > # cat /proc/slabinfo | grep acpi > acpi_operand 11652 11684 40 92 1 : tunables 120 60 0 > : > slabdata 127 127 0 > acpi_parse_ext 3 84 44 84 1 : tunables 120 60 0 > : > slabdata 1 1 0 > acpi_parse 16 127 28 127 1 : tunables 120 60 0 > : > slabdata 1 1 0 > acpi_state 26 78 48 78 1 : tunables 120 60 0 > : > slabdata 1 1 0 > # > > I'm a bit stuck as to what the problem is now. I have brought everything > upt to the latest stable kernel and make the ACPI DSDT changes to allow it > to compile without errors. > > Any ideas? > > Thanks, > > Roger > > > > -----Original Message----- > > From: linux-acpi-owner@xxxxxxxxxxxxxxx [mailto:linux-acpi- > > owner@xxxxxxxxxxxxxxx] On Behalf Of Alexey Starikovskiy > > Sent: 15 September 2006 15:41 > > To: Roger Lucas > > Cc: linux-acpi@xxxxxxxxxxxxxxx > > Subject: Re: Kernel eats memory with LG-81 motherboard , acpi_operand > > possible culprit? > > > > Roger, > > > > Please try to change Store(Local0, Local0) to Store(Zero, Local0) and > > check if you still have a leak... > > > > Thanks, > > Alex. > > > > Roger Lucas wrote: > > > Some more information... > > > > > > It seems that there are bugs in the DSDT information. I followed the > > > instructions on this link to analyse the DSDT table. > > > > > > http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems > > > > > > When I recompiled it, the following errors occurred. I have no idea > > what > > > these mean or if they are important, but I suspect that they are not > > good. > > > The BIOS ASL was originally compiled with the Microsoft compiler. > > > > > > root@hydra:~# iasl -tc dsdt.dsl > > > > > > Intel ACPI Component Architecture > > > ASL Optimizing Compiler version 20051216 [Jan 9 2006] > > > Copyright (C) 2000 - 2005 Intel Corporation > > > Supports ACPI Specification Revision 3.0 > > > > > > dsdt.dsl 361: Method (\_WAK, 1, NotSerialized) > > > Warning 2078 - ^ Reserved method must return a value > > (_WAK) > > > > > > dsdt.dsl 394: Store (Local0, Local0) > > > Error 1048 - ^ Method local variable is not > > > initialized (Local0) > > > > > > dsdt.dsl 399: Store (Local0, Local0) > > > Error 1048 - ^ Method local variable is not > > > initialized (Local0) > > > > > > dsdt.dsl 5349: If (Or (PLCY, PLCY, Local7)) > > > Warning 2097 - ^ Statement is unreachable > > > > > > ASL Input: dsdt.dsl - 5433 lines, 178284 bytes, 2002 keywords > > > Compilation complete. 2 Errors, 2 Warnings, 0 Remarks, 537 > Optimizations > > > root@hydra:~# > > - > > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > > the body of a message to majordomo@xxxxxxxxxxxxxxx > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > - > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html