Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272830 - 2.6.28-gentoo-r5 CONFIG_AGP_INTEL panics in pci_device_shutdown
Summary: 2.6.28-gentoo-r5 CONFIG_AGP_INTEL panics in pci_device_shutdown
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-05 20:15 UTC by ta2002
Modified: 2009-06-28 10:16 UTC (History)
0 users

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


Attachments
working kernel .config (.config,49.54 KB, text/plain)
2009-06-05 20:18 UTC, ta2002
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2009-06-05 20:15:46 UTC
I have a kernel that crashes when (I believe) it shouldn't.

First, the hardware of the machine:

# lspci -v
00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 02)
        Subsystem: IBM ThinkPad A/T/X Series
        Flags: bus master, fast devsel, latency 0
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Capabilities: [40] Vendor Specific Information <?>
        Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corporation 82830 830 Chipset AGP Bridge (rev 02) (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, fast devsel, latency 96
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
        Memory behind bridge: c0100000-c01fffff
        Prefetchable memory behind bridge: e0000000-ebffffff

00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB Controller #1 (rev 01) (prog-if 00 [UHCI])
        Subsystem: IBM ThinkPad A/T/X Series
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at 1800 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB Controller #2 (rev 01) (prog-if 00 [UHCI])
        Subsystem: IBM ThinkPad A/T/X Series
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at 1820 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB Controller #3 (rev 01) (prog-if 00 [UHCI])
        Subsystem: IBM ThinkPad A/T/X Series
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at 1840 [size=32]
        Kernel driver in use: uhci_hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 41) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=08, sec-latency=64
        I/O behind bridge: 00002000-00006fff
        Memory behind bridge: c0200000-cfffffff
        Prefetchable memory behind bridge: f0000000-f7ffffff

00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 01)
        Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 Controller (rev 01) (prog-if 8a [Master SecP PriP])
        Subsystem: IBM ThinkPad A/T/X Series
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at 01f0 [size=8]
        I/O ports at 03f4 [size=1]
        I/O ports at 0170 [size=8]
        I/O ports at 0374 [size=1]
        I/O ports at 1860 [size=16]
        Memory at 40000000 (32-bit, non-prefetchable) [size=1K]
        Kernel driver in use: ata_piix

00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 01)
        Subsystem: IBM ThinkPad A/T/X Series
        Flags: medium devsel, IRQ 5
        I/O ports at 1880 [size=32]
        Kernel driver in use: i801_smbus

00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 01)
        Subsystem: IBM ThinkPad A30/A30p/T23
        Flags: bus master, medium devsel, latency 0, IRQ 5
        I/O ports at 1c00 [size=256]
        I/O ports at 18c0 [size=64]
        Kernel driver in use: Intel ICH

01:00.0 VGA compatible controller: S3 Inc. SuperSavage IX/C SDR (rev 05) (prog-if 00 [VGA controller])
        Subsystem: IBM ThinkPad T23 (2647-4MG)
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
        Memory at c0100000 (32-bit, non-prefetchable) [size=512K]
        Memory at e8000000 (32-bit, prefetchable) [size=64M]
        Memory at e4000000 (32-bit, prefetchable) [size=64M]
        Memory at e0000000 (32-bit, prefetchable) [size=32M]
        [virtual] Expansion ROM at e2000000 [disabled] [size=64K]
        Capabilities: [dc] Power Management version 2
        Capabilities: [80] AGP version 2.0

02:00.0 CardBus bridge: Texas Instruments PCI1420 PC card Cardbus Controller
        Subsystem: IBM ThinkPad T23
        Flags: bus master, medium devsel, latency 168, IRQ 11
        Memory at 50000000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
        Memory window 0: f0000000-f3fff000 (prefetchable)
        Memory window 1: c4000000-c7fff000
        I/O window 0: 00002000-000020ff
        I/O window 1: 00002400-000024ff
        16-bit legacy interface ports at 0001
        Kernel driver in use: yenta_cardbus

02:00.1 CardBus bridge: Texas Instruments PCI1420 PC card Cardbus Controller
        Subsystem: IBM ThinkPad T23
        Flags: bus master, medium devsel, latency 168, IRQ 5
        Memory at 51000000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=02, secondary=07, subordinate=07, sec-latency=176
        Memory window 0: f4000000-f7fff000 (prefetchable)
        Memory window 1: c8000000-cbfff000
        I/O window 0: 00002800-000028ff
        I/O window 1: 00002c00-00002cff
        16-bit legacy interface ports at 0001
        Kernel driver in use: yenta_cardbus

02:02.0 Communication controller: Agere Systems WinModem 56k (rev 01)
        Subsystem: AMBIT Microsystem Corp. IBM ThinkPad T23 (2647-4MG)
        Flags: bus master, medium devsel, latency 0, IRQ 11
        Memory at c0201000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 6440 [size=8]
        I/O ports at 6000 [size=256]
        Capabilities: [f8] Power Management version 2
        Kernel modules: ltserial

02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 41)
        Subsystem: IBM ThinkPad A/T/X Series
        Flags: bus master, medium devsel, latency 66, IRQ 11
        Memory at c0200000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at 6400 [size=64]
        Capabilities: [dc] Power Management version 2
        Kernel driver in use: e100

$ emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-i686-Intel-R-_Pentium-R-_III_Mobile_CPU_1000MHz-with-glibc2.0
Timestamp of tree: Fri, 05 Jun 2009 08:30:03 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks fixpackages protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa arts audiofile berkdb bzip2 cairo caps cdparanoia cjk cracklib crypt css cups dbus dga dhcp directfb dri dvd dvdread encode exif expat fam fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer hal hardcoded-tables iconv idea imagemagick imap imlib ipv6 jabber javascript jbig joystick jpeg kde lcms libcaca libnotify libwww live lm_sensors mad matroska mbox memlimit midi mmx mmxext mng mp3 mpeg mudflap mysql nas ncurses network nls no-old-linux nodrm nptl nptlonly ogg opengl openmp oscar pcre pdf perl png quicktime readline rtc samba scanner sdl sensord silc smtp sndfile speex spell sse ssl svg sysfs tcpd theora threads threadsafe tiff timidity truetype unicode usb userlocales utf8 vcd vorbis wifi win32codecs x86 xinerama xml xorg xulrunner xv xvid yahoo zlib zrtp" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="savage"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

I will attach a working config. The problem comes when I attempt to enable CONFIG_AGP_INTEL (which I need for a number of things, including the framebuffer).

$ diff .config.broken .config.working
4c4
< # Fri Jun  5 07:26:32 2009
---
> # Fri Jun  5 08:44:15 2009
1277c1277
< CONFIG_AGP_INTEL=y
---
> # CONFIG_AGP_INTEL is not set

With CONFIG_AGP_INTEL=y, I get this every time on shutdown:

* Remounting remaining filesystems readonly ...    [ok]
Oops: 0000 [#1]
last sysfs file: /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:01:PnP0C09:00/PNP0C0A:00/power_supply/BAT0/energy_full

Pid:4070, comm: reboot Not tainted (2.6.28-gentoo-r5 #1) 26472TA
EIP: 0060:[<000000b7>] EFLAGS: 00010206 CPU:0
EIP is at 0xb7
EAX: ef89ec00 EBX: ef867ab0 ECX: c01dcb4f EDX: 000000b7
ESI: 28121969 EDI: b8004ff4 EBP: ef018000 ESP: ef019e90
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process reboot (pid: 4070, ti=ef018000 task=ef1eb0e0 task.ti=ef018000)
Stack:
 c01dcb62 c023fcc2 00000000 c0120389 c01203b5 01234567 c01204e5 ef019eb0
 ef019eb0 ef019eb0 00000000 c0512e58 00000024 00000000 c02f3040 bff3db84
 ef1eb234 00000800 bff3d384 c0513e8c ef1eb0e0 c04612e0 00000000 ef1eb0e0
Call Trace:
 [<c01dcb62>] pci_device_shutdown+0x13/0x14
 [<c023fcc2>] device_shutdown+0x37/0x69
 [<c0120389>] kernel_restart_prepare+0x20/0x25
 [<c01203b5>] kernel_restart+0x8/0x2e
 [<c01204e5>] sys_reboot+0x103/0x120
 [<c02f3040>] dev_ioctl+0x4f6/0x59c
 [<c03958fe>] schedule+0x246/0x271
 [<c03232a8>] udp_ioctl+0x0/0x55
 [<c032882d>] inet_ioctl+0x9f/0xa2
 [<c02e9e49>] lock_sock_nested+0x7e/0x85
 [<c0158756>] vfs_ioctl+0x16/0x4a
 [<c015a86b>] d_kill+0x3e/0x43
 [<c015ba80>] dput+0x21/0xf3
 [<c0150898>] __fput+0x12f/0x157
 [<c015ecb5>] mntput_no_expirre+0x13/0x81
 [<c014e524>] filp_close+0x4d/0x53
 [<c014e576>] sys_close+0x4c/0x7a
 [<c0102bc5>] sysenter_do_call+0x12/0x25
Code:  Bad EIP value.
EIP: [<000000b7>] 0xb7 SS:ESP 0068:ef019e90
---[ end trace 6aa580aa26c88a0a ]---
/etc/init.d/reboot.sh: line 7:  4070 Segmentation fault      /sbin/reboot "%{opts}" 2> /dev/null
sd 0:0:0:0: [sda] Synchronizing SCSI cache
BUG: unable to handle kernel NULL pointer dereference at 000000b7
IP: [<000000b7>] 0xb7
*pde = 00000000
Oops: 0000 [#2]
last sysfs file: /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:01:PnP0C09:00/PNP0C0A:00/power_supply/BAT0/energy_full

Pid:4071, comm: reboot Tainted: G      D    (2.6.28-gentoo-r5 #1) 26472TA
EIP: 0060:[<000000b7>] EFLAGS: 00010206 CPU:0
EIP is at 0xb7
EAX: ef89ec00 EBX: ef867ab0 ECX: c01dcb4f EDX: 000000b7
ESI: 28121969 EDI: b7ed0ff4 EBP: ef072000 ESP: ef073e90
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process reboot (pid: 4071, ti=ef072000 task=ef1eb440 task.ti=ef072000)
Stack:
 c01dcb62 c023fcc2 00000000 c0120389 c01203b5 01234567 c01204e5 ef1eb46c
 ef1eb440 00000000 ef1eb440 c011368f 00000000 ef8a77d4 ef8a77cc c04e51e4
 ef1eb594 c01135e3 ef8a77cc 00000000 ef1eb440 c04612e0 00000000 ef1eb440
Call Trace:
 [<c01dcb62>] pci_device_shutdown+0x13/0x14
 [<c023fcc2>] device_shutdown+0x37/0x69
 [<c0120389>] kernel_restart_prepare+0x20/0x25
 [<c01203b5>] kernel_restart+0x8/0x2e
 [<c01204e5>] sys_reboot+0x103/0x120
 [<c011368f>] dequeue_task_fair+0x1d/0x146
 [<c01135e3>] set_next_entity+0x29/0x4e
 [<c03958fe>] schedule+0x246/0x271
 [<c0125300>] hrtimer_cancel+0xa/0x14
 [<c03961a6>] do_nanosleep+0x57/0x86
 [<c0125733>] hrtimer_nanosleep+0xdd/0x143
 [<c0125258>] hrtimer_wakeup+0x0/0x18
 [<c0396185>] do_nanosleep+0x36/0x86
 [<c01257da>] sys_nanosleep+0x41/0x51
 [<c0102bc5>] sysenter_do_call+0x12/0x25
Code:  Bad EIP value.
EIP: [<000000b7>] 0xb7 SS:ESP 0068:ef073e90
---[ end trace 6aa580aa26c88a0a ]---
/etc/init.d/reboot.sh: line 11:  4071 Segmentation fault      /sbin/reboot -f
INIT: no more processes left in this runlevel

Note that the kernel can not be tainted, since it is a non-modular kernel.
Comment 1 ta2002 2009-06-05 20:18:12 UTC
Created attachment 193657 [details]
working kernel .config
Comment 2 Mike Pagano gentoo-dev 2009-06-12 12:11:48 UTC
Are you the same poster from here?

http://forums.gentoo.org/viewtopic-t-768638.html
Comment 3 ta2002 2009-06-13 03:38:42 UTC
Yes, indeed, that was me. :)
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2009-06-21 16:01:07 UTC
Can you reproduce this on the latest kernel, currently v2.6.30?
Comment 5 ta2002 2009-06-22 23:19:38 UTC
(In reply to comment #4)
> Can you reproduce this on the latest kernel, currently v2.6.30?

Not right now. :) I am afraid this computer is at a remote location, and I won't have access to it again for several months. Go ahead and close this if you like, and I will reopen in the future if necessary.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2009-06-28 10:16:15 UTC
OK