Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66723 - gentoo-dev-sources-2.6.8-r7: Lid button causes system to freeze
Summary: gentoo-dev-sources-2.6.8-r7: Lid button causes system to freeze
Status: RESOLVED DUPLICATE of bug 66613
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-07 21:10 UTC by Bharath Ramesh
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bharath Ramesh 2004-10-07 21:10:52 UTC
After upgrading from gentoo-dev-sources-2.6.8-r3 to gentoo-dev-sources-2.6.8-r7 my system freezes whenever my lid button is pressed.

My system is a Dell Inspiron 8600 the kernel config is identical

21c21
< CONFIG_POSIX_MQUEUE=y
---
> # CONFIG_POSIX_MQUEUE is not set
25,26c25
< CONFIG_AUDIT=y
< # CONFIG_AUDITSYSCALL is not set
---
> # CONFIG_AUDIT is not set
129,130c128
< CONFIG_PM_DISK=y
< CONFIG_PM_DISK_PARTITION="/dev/hda9"
---
> # CONFIG_PM_DISK is not set
320c318
< CONFIG_IDE_GENERIC=y
---
> CONFIG_IDE_GENERIC=m
326c324
< CONFIG_BLK_DEV_GENERIC=y
---
> CONFIG_BLK_DEV_GENERIC=m
388c386
< CONFIG_SCSI_SPI_ATTRS=m
---
> # CONFIG_SCSI_SPI_ATTRS is not set
406c404,405
< # CONFIG_SCSI_MEGARAID is not set
---
> # CONFIG_MEGARAID_NEWGEN is not set
> # CONFIG_MEGARAID_LEGACY is not set
469a469,471
> # CONFIG_BLK_DEV_DM_BBR is not set
> # CONFIG_DM_MULTIPATH is not set
> # CONFIG_DM_FLAKEY is not set
474,477c476
< CONFIG_FUSION=m
< CONFIG_FUSION_MAX_SGE=40
< CONFIG_FUSION_ISENSE=m
< CONFIG_FUSION_CTL=m
---
> # CONFIG_FUSION is not set
953,954c952,953
< CONFIG_AGP_INTEL=m
< CONFIG_AGP_INTEL_MCH=m
---
> # CONFIG_AGP_INTEL is not set
> # CONFIG_AGP_INTEL_MCH is not set
965,966d963
< # CONFIG_DRM_I810 is not set
< # CONFIG_DRM_I830 is not set
1022d1018
< # CONFIG_FB_I810 is not set
1065c1061
< CONFIG_SPEAKUP=m
---
> CONFIG_SPEAKUP=y
1178c1174
< # CONFIG_SND_INTEL8X0M is not set
---
> CONFIG_SND_INTEL8X0M=m
1204c1200
< CONFIG_USB_DEBUG=y
---
> # CONFIG_USB_DEBUG is not set
1210c1206
< CONFIG_USB_BANDWIDTH=y
---
> # CONFIG_USB_BANDWIDTH is not set
1231c1227
< CONFIG_USB_STORAGE_DEBUG=y
---
> # CONFIG_USB_STORAGE_DEBUG is not set
1470c1466
< CONFIG_NLS_ISO8859_15=m
---
> # CONFIG_NLS_ISO8859_15 is not set



Reproducible: Always
Steps to Reproduce:
1.Close the lid or press the lid button manually
2.
3.

Actual Results:  
System freezes and stops responding.

Expected Results:  
Nothing should happen as I dont use this event for anything.

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r2,
2.6.8-gentoo-r7)
=================================================================
System uname: 2.6.8-gentoo-r7 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox strict userpriv usersandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp-mirror.internap.com/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/
http://gentoo.tiscali.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa arts avi berkdb bitmap-fonts cdr crypt cups encode esd foomaticdb
gdbm gif gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls
oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl slang
spell ssl svga tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2004-10-08 01:26:22 UTC
Please try reverting "2705_fix-intel-acpi.patch" from the genpatches tarball.
Comment 2 Bharath Ramesh 2004-10-08 11:54:43 UTC
Editing ebuild of gentoo-dev-sources-2.6.8-r7 to add 2705_fix-intel-acpi.patch to UNIPATCH_EXCLUDE fixed it. I am seeing differences in my dmesg dont know if that matters. Its interesting to note that after removing the patch kernel doesnt seem to renable APIC. It finds it broken in the new kernel but in the old kernel it would enable it. I dont think that matters to me as long as my system doesnt freeze.

--- dmesg.out   2004-10-08 14:37:13.231886200 -0400
+++ dmesg.out_acpi_broken       2004-10-08 13:24:46.000000000 -0400
@@ -1,4 +1,4 @@
-Linux version 2.6.8-gentoo-r7 (root@eos) (gcc version 3.3.4 20040623 (Gentoo Li
nux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #1 Fri Oct 8 13:39:27 EDT 2004
+Linux version 2.6.8-gentoo-r7 (root@eos) (gcc version 3.3.4 20040623 (Gentoo Li
nux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #1 Fri Oct 8 01:18:05 EDT 2004
 BIOS-provided physical RAM map:
  BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
  BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
@@ -12,7 +12,6 @@
   Normal zone: 126894 pages, LIFO batch:16
   HighMem zone: 0 pages, LIFO batch:1
 DMI 2.3 present.
-Dell Inspiron with broken BIOS detected. Refusing to enable the local APIC.
 ACPI: RSDP (v000 DELL                                      ) @ 0x000fdf00
 ACPI: RSDT (v001 DELL    CPi R   0x27d4081e ASL  0x00000061) @ 0x1fff0000
 ACPI: FADT (v001 DELL    CPi R   0x27d4081e ASL  0x00000061) @ 0x1fff0400
@@ -20,49 +19,58 @@
 ACPI: PM-Timer IO Port: 0x808
 Built 1 zonelists
 Kernel command line: root=/dev/ram0 init=/linuxrc ramdisk=4096 real_root=/dev/h
da8 vga=795
+Local APIC disabled by BIOS -- reenabling.
+Found and enabled local APIC!
 Initializing CPU#0
 CPU 0 irqstacks, hard=c0383000 soft=c0382000
 PID hash table entries: 2048 (order 11: 16384 bytes)
-Detected 1993.923 MHz processor.
+Detected 598.186 MHz processor.
 Using pmtmr for high-res timesource
 Console: colour dummy device 80x25
 Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
 Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
-Memory: 514544k/523960k available (1661k kernel code, 8676k reserved, 723k data
, 156k init, 0k highmem)
+Memory: 514544k/523960k available (1661k kernel code, 8672k reserved, 723k data
, 156k init, 0k highmem)
 Checking if this processor honours the WP bit even in supervisor mode... Ok.
-Calibrating delay loop... 3956.73 BogoMIPS
+Calibrating delay loop... 1183.74 BogoMIPS
 Security Scaffold v1.0.0 initialized
 Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
-CPU: After generic identify, caps: afe9f9bf 00000000 00000000 00000000
-CPU: After vendor identify, caps:  afe9f9bf 00000000 00000000 00000000
+CPU: After generic identify, caps: afe9fbbf 00000000 00000000 00000000
+CPU: After vendor identify, caps:  afe9fbbf 00000000 00000000 00000000
 CPU: L1 I cache: 32K, L1 D cache: 32K
-CPU: After all inits, caps:        afe9f9bf 00000000 00000000 00000040
+CPU: After all inits, caps:        afe9fbbf 00000000 00000000 00000040
 Intel machine check architecture supported.
 Intel machine check reporting enabled on CPU#0.
 CPU: Intel(R) Pentium(R) M processor 2.00GHz stepping 06
 Enabling fast FPU save and restore... done.
 Enabling unmasked SIMD FPU exception support... done.
 Checking 'hlt' instruction... OK.
-init init/main.c:657
-init init/main.c:670
-init init/main.c:675
-do_pre_smp_initcalls init/main.c:621
-do_pre_smp_initcalls init/main.c:627
-init init/main.c:679
+ACPI: IRQ9 SCI: Edge set to Level Trigger.
+init init/main.c:664
+init init/main.c:677
 init init/main.c:682
-init init/main.c:684
+do_pre_smp_initcalls init/main.c:628
+do_pre_smp_initcalls init/main.c:634
 init init/main.c:686
+init init/main.c:689
+enabled ExtINT on CPU#0
+ESR value before enabling vector: 00000000
+ESR value after enabling vector: 00000000
+Using local APIC timer interrupts.
+calibrating APIC timer ...
+..... CPU clock speed is 597.0951 MHz.
+..... host bus clock speed is 99.0658 MHz.
+init init/main.c:691
+init init/main.c:693
 checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
-Freeing initrd memory: 974k freed
-init init/main.c:692
-do_basic_setup init/main.c:602
-do_basic_setup init/main.c:604
+Freeing initrd memory: 975k freed
+init init/main.c:699
+do_basic_setup init/main.c:609
+do_basic_setup init/main.c:611
 NET: Registered protocol family 16
 PCI: PCI BIOS revision 2.10 entry at 0xfc96e, last bus=2
 PCI: Using configuration type 1
 mtrr: v2.0 (20020519)
 ACPI: Subsystem revision 20040326
-ACPI: IRQ9 SCI: Edge set to Level Trigger.
 ACPI: Interpreter enabled
 ACPI: Using PIC for interrupt routing
 ACPI: PCI Root Bridge [PCI0] (00:00)
@@ -109,14 +117,14 @@
 devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
 devfs: boot_options: 0x0
 Initializing Cryptographic API
-ACPI: AC Adapter [AC] (on-line)
+ACPI: AC Adapter [AC] (off-line)
 ACPI: Battery Slot [BAT0] (battery present)
 ACPI: Battery Slot [BAT1] (battery absent)
 ACPI: Lid Switch [LID]
 ACPI: Power Button (CM) [PBTN]
 ACPI: Sleep Button (CM) [SBTN]
 ACPI: Processor [CPU0] (supports C1 C2 C3, 8 throttling states)
-ACPI: Thermal Zone [THM] (40 C)
+ACPI: Thermal Zone [THM] (25 C)
 mice: PS/2 mouse device common for all mice
 serio: i8042 AUX port at 0x60,0x64 irq 12
 serio: i8042 KBD port at 0x60,0x64 irq 1
@@ -146,16 +154,16 @@
 NET: Registered protocol family 1
 NET: Registered protocol family 17
 cpufreq: CPU0 - ACPI performance management activated.
-cpufreq: *P0: 2000 MHz, 21000 mW, 250 uS
+cpufreq:  P0: 2000 MHz, 21000 mW, 250 uS
 cpufreq:  P1: 1800 MHz, 19000 mW, 250 uS
 cpufreq:  P2: 1600 MHz, 17000 mW, 250 uS
 cpufreq:  P3: 1400 MHz, 15000 mW, 250 uS
 cpufreq:  P4: 1200 MHz, 13500 mW, 250 uS
 cpufreq:  P5: 1000 MHz, 11500 mW, 250 uS
 cpufreq:  P6: 800 MHz, 9500 mW, 250 uS
-cpufreq:  P7: 600 MHz, 7500 mW, 250 uS
+cpufreq: *P7: 600 MHz, 7500 mW, 250 uS
 ACPI: (supports S0 S1 S3 S4 S4bios S5)
-init init/main.c:694
+init init/main.c:701
 RAMDISK: Compressed image found at block 0
 VFS: Mounted root (ext2 filesystem) readonly.
 Freeing unused kernel memory: 156k freed
@@ -209,10 +217,10 @@
 ReiserFS: hda8: journal params: device hda8, size 8192, journal first block 18,
 max trans len 1024, max batch 900, max commit age 30, max trans age 30
 ReiserFS: hda8: checking transaction log (hda8)
 ReiserFS: hda8: Using r5 hash to sort names
-Adding 522072k swap on /dev/hda9.  Priority:-1 extents:1
 ieee1394: Host added: ID:BUS[0-00:1023]  GUID[374fc0000a1c4ca1]
 ip1394: $Rev: 1224 $ Ben Collins <bcollins@debian.org>
 ip1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
+Adding 522072k swap on /dev/hda9.  Priority:-1 extents:1
 device-mapper: 4.2.0-ioctl (2004-06-08) initialised: dm@uk.sistina.com
 b44.c:v0.94 (May 4, 2004)
 ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
@@ -255,7 +263,7 @@
 NTFS volume version 3.1.
 ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 7 (level, low) -> IRQ 7
 PCI: Setting latency timer of device 0000:00:1f.5 to 64
-intel8x0_measure_ac97_clock: measured 49735 usecs
+intel8x0_measure_ac97_clock: measured 15061 usecs
 intel8x0: clocking to 48000
 Linux Kernel Card Services
   options:  [pci] [cardbus] [pm]
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2004-10-08 12:21:26 UTC
Marking duplicate as its likely to be the same thing. I'd be grateful for feedback on my last comment, reproduced here:

Ok, thanks for the test. Is there any chance you could test development-sources-2.6.9-rc3? That patch which you excluded was actually an upstream "fix" pulled from the 2.6.9 tree. I'd be interested to know if you run into the same issue on that kernel.

*** This bug has been marked as a duplicate of 66613 ***