2.6.30-rc6: i915: Xserver crash - oops after rmmod
Hi,
I use s2disk on a daily basis, and I recently tried to switch to UXA in xorg.conf in anticipation of KMS, for my Lenovo W500 with the integrated Intel card active:
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
Resuming worked just fine the last couple of days using UXA but I admittedly frequently update Mesa/Xorg/git kernel.
Tonight the X server crashed on resume and I was placed back at the KDM prompt. I thought "$%^&$ the one time I actually had real applications open! I am switching back to EXA!", so I changed AccelMethod back to "exa" and decided to unload all i915 modules - i915, drm, and video.
The latter unexpectedly returned "Killed", although none of these modules showed any 'used by' count.
I then did 'init 5' upon which I had a black screen, and decided to reboot. I then noticed that the following OOPS occurred prior to the reboot, likely the result of my "rmmod drm" or "rmmod output".
May 18 19:35:56 linux-7vph kernel: Restarting tasks ... done. May 18 19:36:07 linux-7vph kdm[2882]: X server for display :0 terminated unexpectedly May 18 19:36:18 linux-7vph bonobo-activation-server (niella-10440): could not associate with desktop session: Failed to connect to socket /tmp/dbus-snlESQlAbp: Connection refused May 18 19:36:32 linux-7vph kernel: [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0 May 18 19:37:01 linux-7vph kernel: [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0 May 18 19:37:03 linux-7vph init: Switching to runlevel: 3 May 18 19:37:34 linux-7vph kernel: mtrr: MTRR 4 not used May 18 19:37:34 linux-7vph kernel: [drm] Module unloaded May 18 19:37:47 linux-7vph kernel: BUG: unable to handle kernel NULL pointer dereference at 00000010 May 18 19:37:47 linux-7vph kernel: IP: [<c02fbbef>] klist_put+0x12/0x6f May 18 19:37:47 linux-7vph kernel: *pde = 00000000 May 18 19:37:47 linux-7vph kernel: Oops: 0000 [#1] SMP May 18 19:37:47 linux-7vph kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/rfkill/rfkill1/state May 18 19:37:47 linux-7vph kernel: Modules linked in: usbhid hid tun i2c_algo_bit af_packet ip6t_LOG xt_tcpudp xt_pkttype ipt_LOG xt_limit snd_pcm_oss snd_mixer_oss snd_seq binfmt_misc ip6t_REJECT nf_conntrack_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT xt_state cpufreq_conservative cpufreq_userspace iptable_raw cpufreq_powersave iptable_filter acpi_cpufreq speedstep_lib ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables ip6table_filter ip6_tables x_tables ipv6 microcode fuse loop dm_mod snd_usb_audio snd_usb_lib snd_rawmidi snd_seq_device arc4 ecb iwlagn iwlcore thinkpad_acpi rfkill led_class snd_hda_codec_conexant video(-) mac80211 ohci1394 battery ac output nvram ieee1394 rtc_cmos snd_hda_intel wmi snd_hda_codec rtc_core button snd_hwdep snd_pcm snd_timer snd i2c_i801 soundcore iTCO_wdt snd_page_alloc iTCO_vendor_support intel_agp cfg80211 rtc_lib e1000e i2c_core agpgart sr_mod cdrom joydev sg ehci_hcd uhci_hcd sd_mod usbcore ext4 jbd2 crc16 edd ext3 mbcache jbd fan ahci l May 18 19:37:47 linux-7vph kernel: ibata scsi_mod thermal processor [last unloaded: drm] May 18 19:37:47 linux-7vph kernel: May 18 19:37:47 linux-7vph kernel: Pid: 10594, comm: rmmod Not tainted (2.6.30-rc6-pae #47) 40622XG May 18 19:37:47 linux-7vph kernel: EIP: 0060:[<c02fbbef>] EFLAGS: 00010246 CPU: 1 May 18 19:37:47 linux-7vph kernel: EIP is at klist_put+0x12/0x6f May 18 19:37:47 linux-7vph kernel: EAX: f5c281f8 EBX: 00000001 ECX: 00000004 EDX: 00000001 May 18 19:37:47 linux-7vph kernel: ESI: 00000000 EDI: f5c281f8 EBP: f44adef0 ESP: f44adedc May 18 19:37:47 linux-7vph kernel: DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 May 18 19:37:47 linux-7vph kernel: Process rmmod (pid: 10594, ti=f44ac000 task=f5c7f0b0 task.ti=f44ac000) May 18 19:37:47 linux-7vph kernel: Stack: May 18 19:37:47 linux-7vph kernel: c0134d30 00000000 00000002 00000000 c04297b4 f44adef8 c02fbc77 f44adf18 May 18 19:37:47 linux-7vph kernel: c02fbd7b c04376d0 c04376d0 f5c281f8 f5c7f0b0 00000000 f85e08c0 f44adf2c May 18 19:37:47 linux-7vph kernel: c026d83e 00000000 f85e08c0 00000000 f44adf3c c026e6e1 f85e0980 bf994ca0 May 18 19:37:47 linux-7vph kernel: Call Trace: May 18 19:37:47 linux-7vph kernel: [<c0134d30>] ? insert_work+0x78/0x81 May 18 19:37:47 linux-7vph kernel: [<c02fbc77>] ? klist_del+0xd/0xf May 18 19:37:47 linux-7vph kernel: [<c02fbd7b>] ? klist_remove+0x58/0x81 May 18 19:37:47 linux-7vph kernel: [<c026d83e>] ? bus_remove_driver+0x5c/0x89 May 18 19:37:47 linux-7vph kernel: [<c026e6e1>] ? driver_unregister+0x2a/0x2e May 18 19:37:47 linux-7vph kernel: [<c0226253>] ? acpi_bus_unregister_driver+0xd/0xf May 18 19:37:47 linux-7vph kernel: [<f85de371>] ? cleanup_module+0xd/0x25 [video] May 18 19:37:47 linux-7vph kernel: [<c01477d5>] ? sys_delete_module+0x18a/0x1e3 May 18 19:37:47 linux-7vph kernel: [<c017b9be>] ? remove_vma+0x46/0x4c May 18 19:37:47 linux-7vph kernel: [<c017c5d2>] ? do_munmap+0x20a/0x225 May 18 19:37:47 linux-7vph kernel: [<c01029d4>] ? sysenter_do_call+0x12/0x28 May 18 19:37:47 linux-7vph kernel: Code: 90 83 7d f0 00 74 09 85 ff 74 05 89 f8 ff 55 f0 8b 46 04 5a 5b 5e 5f 5d c3 55 89 e5 57 89 c7 56 53 89 d3 83 ec 08 8b 30 83 e6 fe <8b> 46 10 89 45 f0 89 f0 e8 0b f4 00 00 84 db 74 17 f6 07 01 74 May 18 19:37:47 linux-7vph kernel: EIP: [<c02fbbef>] klist_put+0x12/0x6f SS:ESP 0068:f44adedc May 18 19:37:47 linux-7vph kernel: CR2: 0000000000000010 May 18 19:37:47 linux-7vph kernel: ---[ end trace c76e3f0980caa485 ]--- May 18 19:38:41 linux-7vph sudo: niella : TTY=tty2 ; PWD=/home/niella ; USER=root ; COMMAND=/sbin/reboot
Xorg.0.log contained the following at more or less the same time of the X crash:
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux linux-7vph 2.6.30-rc6-pae #47 SMP Mon May 18 00:42:36 SAST 2009 i686 Build Date: 16 May 2009 11:20:59AM
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon May 18 19:36:14 2009 (==) Using config file: "/etc/X11/xorg.conf"
Setting master
/org/freedesktop/Hal/devices/computer
xrandr for VGA: new mode 1600x1024 136.36 1600 1704 1872 2144 1024 1025 1028 1060 X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 149 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 23
Current serial number in output stream: 23
Dropping master
Setting master
Dropping master
Regards,
Niel
Quoted 1 line · On Mon, 18 May 2009 21:21:18 +0200 Niel Lambrechts <[email protected]>…
Hi,
Huge response, huh?
Quoted 107 lines
I use s2disk on a daily basis, and I recently tried to switch to UXA in xorg.conf in anticipation of KMS, for my Lenovo W500 with the integrated Intel card active:
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)Resuming worked just fine the last couple of days using UXA but I admittedly frequently update Mesa/Xorg/git kernel.
Tonight the X server crashed on resume and I was placed back at the KDM prompt. I thought "$%^&$ the one time I actually had real applications open! I am switching back to EXA!", so I changed AccelMethod back to "exa" and decided to unload all i915 modules - i915, drm, and video.
The latter unexpectedly returned "Killed", although none of these modules showed any 'used by' count.
I then did 'init 5' upon which I had a black screen, and decided to reboot. I then noticed that the following OOPS occurred prior to the reboot, likely the result of my "rmmod drm" or "rmmod output".
May 18 19:35:56 linux-7vph kernel: Restarting tasks ... done. May 18 19:36:07 linux-7vph kdm[2882]: X server for display :0 terminated unexpectedly May 18 19:36:18 linux-7vph bonobo-activation-server (niella-10440): could not associate with desktop session: Failed to connect to socket /tmp/dbus-snlESQlAbp: Connection refused May 18 19:36:32 linux-7vph kernel: [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0 May 18 19:37:01 linux-7vph kernel: [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0 May 18 19:37:03 linux-7vph init: Switching to runlevel: 3 May 18 19:37:34 linux-7vph kernel: mtrr: MTRR 4 not used May 18 19:37:34 linux-7vph kernel: [drm] Module unloaded May 18 19:37:47 linux-7vph kernel: BUG: unable to handle kernel NULL pointer dereference at 00000010 May 18 19:37:47 linux-7vph kernel: IP: [<c02fbbef>] klist_put+0x12/0x6f May 18 19:37:47 linux-7vph kernel: *pde = 00000000 May 18 19:37:47 linux-7vph kernel: Oops: 0000 [#1] SMP May 18 19:37:47 linux-7vph kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/rfkill/rfkill1/state May 18 19:37:47 linux-7vph kernel: Modules linked in: usbhid hid tun
i2c_algo_bitaf_packetip6t_LOGxt_tcpudpxt_pkttypeipt_LOGxt_limitsnd_pcm_osssnd_mixer_osssnd_seqbinfmt_miscip6t_REJECTnf_conntrack_ipv6ip6table_rawxt_NOTRACKipt_REJECTxt_statecpufreq_conservativecpufreq_userspaceiptable_rawcpufreq_powersaveiptable_filteracpi_cpufreqspeedstep_libip6table_manglenf_conntrack_netbios_nsnf_conntrack_ipv4nf_conntracknf_defrag_ipv4ip_tablesip6table_filterip6_tablesx_tablesipv6 microcode fuse loopdm_modsnd_usb_audiosnd_usb_libsnd_rawmidisnd_seq_devicearc4 ecb iwlagn iwlcorethinkpad_acpirfkillled_classsnd_hda_codec_conexantvideo(-) mac80211 ohci1394 battery ac output nvram ieee1394rtc_cmossnd_hda_intelwmisnd_hda_codecrtc_corebuttonsnd_hwdepsnd_pcmsnd_timersndi2c_i801soundcoreiTCO_wdtsnd_page_allociTCO_vendor_supportintel_agpcfg80211rtc_libe1000ei2c_coreagpgartsr_modcdrom joydev sgehci_hcduhci_hcdsd_modusbcore ext4 jbd2 crc16 edd ext3 mbcache jbd fan ahci lMay 18 19:37:47 linux-7vph kernel: ibata scsi_mod thermal processor [last unloaded: drm] May 18 19:37:47 linux-7vph kernel: May 18 19:37:47 linux-7vph kernel: Pid: 10594, comm: rmmod Not tainted (2.6.30-rc6-pae #47) 40622XG May 18 19:37:47 linux-7vph kernel: EIP: 0060:[<c02fbbef>] EFLAGS: 00010246 CPU: 1 May 18 19:37:47 linux-7vph kernel: EIP is at klist_put+0x12/0x6f May 18 19:37:47 linux-7vph kernel: EAX: f5c281f8 EBX: 00000001 ECX: 00000004 EDX: 00000001 May 18 19:37:47 linux-7vph kernel: ESI: 00000000 EDI: f5c281f8 EBP: f44adef0 ESP: f44adedc May 18 19:37:47 linux-7vph kernel: DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 May 18 19:37:47 linux-7vph kernel: Process rmmod (pid: 10594, ti=f44ac000 task=f5c7f0b0 task.ti=f44ac000) May 18 19:37:47 linux-7vph kernel: Stack: May 18 19:37:47 linux-7vph kernel: c0134d30 00000000 00000002 00000000 c04297b4 f44adef8 c02fbc77 f44adf18 May 18 19:37:47 linux-7vph kernel: c02fbd7b c04376d0 c04376d0 f5c281f8 f5c7f0b0 00000000 f85e08c0 f44adf2c May 18 19:37:47 linux-7vph kernel: c026d83e 00000000 f85e08c0 00000000 f44adf3c c026e6e1 f85e0980 bf994ca0 May 18 19:37:47 linux-7vph kernel: Call Trace: May 18 19:37:47 linux-7vph kernel: [<c0134d30>] ? insert_work+0x78/0x81 May 18 19:37:47 linux-7vph kernel: [<c02fbc77>] ? klist_del+0xd/0xf May 18 19:37:47 linux-7vph kernel: [<c02fbd7b>] ? klist_remove+0x58/0x81 May 18 19:37:47 linux-7vph kernel: [<c026d83e>] ? bus_remove_driver+0x5c/0x89 May 18 19:37:47 linux-7vph kernel: [<c026e6e1>] ? driver_unregister+0x2a/0x2e May 18 19:37:47 linux-7vph kernel: [<c0226253>] ? acpi_bus_unregister_driver+0xd/0xf May 18 19:37:47 linux-7vph kernel: [<f85de371>] ? cleanup_module+0xd/0x25 [video] May 18 19:37:47 linux-7vph kernel: [<c01477d5>] ? sys_delete_module+0x18a/0x1e3 May 18 19:37:47 linux-7vph kernel: [<c017b9be>] ? remove_vma+0x46/0x4c May 18 19:37:47 linux-7vph kernel: [<c017c5d2>] ? do_munmap+0x20a/0x225 May 18 19:37:47 linux-7vph kernel: [<c01029d4>] ? sysenter_do_call+0x12/0x28 May 18 19:37:47 linux-7vph kernel: Code: 90 83 7d f0 00 74 09 85 ff 74 05 89 f8 ff 55 f0 8b 46 04 5a 5b 5e 5f 5d c3 55 89 e5 57 89 c7 56 53 89 d3 83 ec 08 8b 30 83 e6 fe <8b> 46 10 89 45 f0 89 f0 e8 0b f4 00 00 84 db 74 17 f6 07 01 74 May 18 19:37:47 linux-7vph kernel: EIP: [<c02fbbef>] klist_put+0x12/0x6f SS:ESP 0068:f44adedc May 18 19:37:47 linux-7vph kernel: CR2: 0000000000000010 May 18 19:37:47 linux-7vph kernel: ---[ end trace c76e3f0980caa485 ]--- May 18 19:38:41 linux-7vph sudo: niella : TTY=tty2 ; PWD=/home/niella
Quoted 2 lines
; USER=root ; COMMAND=/sbin/reboot
The wordwrapping makes this painful to read.
rmmod crashed under drivers/acpi/video.c:acpi_video_exit()'s call to acpi_bus_unregister_driver(). So it might be an acpi-related bug.
If it's reproducible at all, please raise a (non-wordwrapped!) report against acpi at bugzilla.kernel.org, thanks.
Hi Andrew,
Quoted 8 lines · Andrew Morton
Quoted 2 lines · On Mon, 18 May 2009 21:21:18 +0200 Niel Lambrechts <[email protected]>…
Hi,
Huge response, huh?
Yeah, no one fell for the humour coating... ;-)
Quoted 8 lines
The wordwrapping makes this painful to read.
rmmod crashed under drivers/acpi/video.c:acpi_video_exit()'s call to
acpi_bus_unregister_driver(). So it might be an acpi-related bug.If it's reproducible at all, please raise a (non-wordwrapped!) report against acpi at bugzilla.kernel.org, thanks.
Ugh, Thunderbird doesn't format it like this when you preview - but when I save it to a file it looks horrible...
I don't think I would easily be able to reproduce this, but I still had a copy of my kernel log for that date. The bug is filed at:
http://bugzilla.kernel.org/show_bug.cgi?id=13396
Also, if you do have a moment, I'd love to hear your opinion on my post "2.6.29.4: hibernation fails with large kernel trace"!
Thanks for the response!
Niel
Quoted 24 lines · On Thu, 28 May 2009 07:13:57 +0200 Niel Lambrechts <[email protected]>…
Hi Andrew,
Quoted 8 lines · Andrew Morton
Quoted 2 lines · On Mon, 18 May 2009 21:21:18 +0200 Niel Lambrechts <[email protected]>…
Hi,
Huge response, huh?
Yeah, no one fell for the humour coating... ;-)
Quoted 8 lines
The wordwrapping makes this painful to read.
rmmod crashed under drivers/acpi/video.c:acpi_video_exit()'s call to
acpi_bus_unregister_driver(). So it might be an acpi-related bug.If it's reproducible at all, please raise a (non-wordwrapped!) report against acpi at bugzilla.kernel.org, thanks.
Ugh, Thunderbird doesn't format it like this when you preview - but when I save it to a file it looks horrible...
Quoted 8 lines
I don't think I would easily be able to reproduce this, but I still had a copy of my kernel log for that date. The bug is filed at:
http://bugzilla.kernel.org/show_bug.cgi?id=13396Also, if you do have a moment, I'd love to hear your opinion on my post "2.6.29.4: hibernation fails with large kernel trace"!
Thanks for the response!
Btw I think this is fixed now (I noticed it recently but it's gone now). IIRC it was a bug caused by trying to uninit the ACPI video portion of the driver twice at unload time.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Quoted 24 lines · Niel Lambrechts
Hi Andrew,
Quoted 8 lines · Andrew Morton
Quoted 2 lines · On Mon, 18 May 2009 21:21:18 +0200 Niel Lambrechts <[email protected]>…
Hi,
Huge response, huh?
Yeah, no one fell for the humour coating... ;-)
Quoted 8 lines
The wordwrapping makes this painful to read.
rmmod crashed under drivers/acpi/video.c:acpi_video_exit()'s call to
acpi_bus_unregister_driver(). So it might be an acpi-related bug.If it's reproducible at all, please raise a (non-wordwrapped!) report against acpi at bugzilla.kernel.org, thanks.
Ugh, Thunderbird doesn't format it like this when you preview - but when I save it to a file it looks horrible...
Quoted 8 lines
I don't think I would easily be able to reproduce this, but I still had a copy of my kernel log for that date. The bug is filed at:
http://bugzilla.kernel.org/show_bug.cgi?id=13396Also, if you do have a moment, I'd love to hear your opinion on my post "2.6.29.4: hibernation fails with large kernel trace"!
Thanks for the response!
Yes. This bug can be reproduced very easily.
I attach one patch in bug
http://bugzilla.kernel.org/show_bug.cgi?id=13396#C5.
And the issue should be fixed by the patch.
In the patch the reference count is added to avoid loading/unloading the ACPI video bus twice.
Thanks.
Quoted 6 lines
Niel
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html