[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
Still facing the issue with kernel 4.2.0-23-generic, gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2), bbswitch-dkms 0.7-2ubuntu1, no bumblebee package installed. I attach a full dmesg (from kern.log) from the boot to the freeze. After booting, I logged into tty1 and entered the following commands: sudo service sdsm stop sudo rmmod nouveau sudo modprobe bbswitch load_state=0 sudo service sdsm start Ctrl-Alt-F7 and closed the lid ** Attachment added: "dmesg" https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+attachment/4551571/+files/extract-kern.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
Do you have a full dmesg since the first boot? I have seen machines having issues due to hotplugging where the device is gone during suspend. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
For me on my UL30VT with ubuntu 15.04 it was: gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) And cat /proc/version Linux version 3.19.0-15-generic (buildd@komainu) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) ) #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 Nevertheless, I discovered and remove some old gcc versions and re-installed all dkms packages, but still have the same behaviour as detailed above. I wonder if there are any ul*0vt laptops that are still working out there? I will try installing bbswitch on a clean install of ubuntu when I have time -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
This problem may occur when your compiler (gcc) is different than the one used to compile the kernel. Have you installed an older gcc version (maybe via CUDA?). What does `gcc -v` show? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
** Changed in: bbswitch (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
What else information is needed? I have tried with the daily kernel 3.17.0-999.201409272205 and the tainting still occurs. The syslog trace related to suspending event is slightly different (dis_dev_get+0x15/0x40 [bbswitch] instead of pci_bus_read_config_dword+0x64/0x90 in the initial report with kernel 3.13): [ 3342.022581] init: anacron main process (13582) killed by TERM signal [ 3342.297888] PM: Syncing filesystems ... done. [ 3342.489577] PM: Preparing system for mem sleep [ 3342.489787] general protection fault: [#1] SMP [ 3342.489988] Modules linked in: bbswitch(OE) ip6table_filter ip6_tables iptable_filter ip_tables x_tables snd_hrtimer cuse rfcomm bnep bluetooth binfmt_misc dm_crypt snd_hda_codec_hdmi arc4 ath9k ath9k_common ath9k_hw snd_hda_codec_realtek snd_hda_codec_generic ath snd_hda_intel snd_hda_controller snd_hda_codec mac80211 snd_hwdep uvcvideo snd_pcm videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common snd_seq_midi snd_seq_midi_event kvm_intel videodev media snd_rawmidi snd_seq cfg80211 snd_seq_device kvm snd_timer snd parport_pc mxm_wmi ppdev soundcore coretemp joydev lp lpc_ich serio_raw parport mac_hid asus_laptop wmi sparse_keymap input_polldev uas usb_storage psmouse ahci libahci i915 atl1c i2c_algo_bit drm_kms_helper drm video [ 3342.491087] CPU: 1 PID: 13498 Comm: pm-suspend Tainted: GW OE 3.17.0-999-generic #201409272205 [ 3342.491296] Hardware name: ASUSTeK Computer Inc. UL80VT /UL80VT, BIOS 214 01/17/2011 [ 3342.491505] task: 8800b8d1a800 ti: 88003586 task.ti: 88003586 [ 3342.491713] RIP: 0010:[] [] dis_dev_get+0x15/0x40 [bbswitch] [ 3342.491928] RSP: 0018:880035863d10 EFLAGS: 00010202 [ 3342.492133] RAX: 6e6f697461727564 RBX: 0003 RCX: 0002 [ 3342.492335] RDX: RSI: 0003 RDI: c08b [ 3342.492535] RBP: 880035863d18 R08: 814e00e0 R09: [ 3342.492737] R10: R11: 000fffe0 R12: [ 3342.492939] R13: fffa R14: 81cd3f90 R15: [ 3342.493142] FS: 7f8b8e80d740() GS:88013fd0() knlGS: [ 3342.493345] CS: 0010 DS: ES: CR0: 8005003b [ 3342.493529] CR2: 7f8b8f73cf10 CR3: 9c68b000 CR4: 000407e0 [ 3342.493529] Stack: [ 3342.493529] c08ae545 880035863d58 81093f2d 81ec685c [ 3342.493529] 81c521c0 0003 [ 3342.493529] 880035863da8 81094188 880035863d48 [ 3342.493529] Call Trace: [ 3342.493529] [] ? bbswitch_pm_handler+0x55/0x70 [bbswitch] [ 3342.493529] [] notifier_call_chain+0x4d/0x70 [ 3342.493529] [] __blocking_notifier_call_chain+0x58/0x80 [ 3342.493529] [] blocking_notifier_call_chain+0x16/0x20 [ 3342.493529] [] pm_notifier_call_chain+0x1a/0x30 [ 3342.493529] [] suspend_prepare+0x46/0xcd [ 3342.493529] [] enter_state+0x16f/0x250 [ 3342.493529] [] pm_suspend+0x1b/0x60 [ 3342.493529] [] state_store+0x8e/0xf0 [ 3342.493529] [] ? kernfs_fop_write+0x5b/0x170 [ 3342.493529] [] kobj_attr_store+0xf/0x30 [ 3342.493529] [] sysfs_kf_write+0x41/0x50 [ 3342.493529] [] kernfs_fop_write+0x106/0x170 [ 3342.493529] [] vfs_write+0xc7/0x1f0 [ 3342.493529] [] SyS_write+0x4f/0xb0 [ 3342.493529] [] system_call_fastpath+0x1a/0x1f [ 3342.493529] Code: d2 48 c7 c6 e0 e0 8a c0 48 89 e5 e8 b6 f2 95 c0 5d c3 0f 1f 40 00 66 66 66 66 90 48 8b 05 04 24 00 00 48 8b 40 10 48 85 c0 74 1f <48> 8b 78 38 48 85 ff 74 16 55 48 81 c7 98 00 00 00 be 04 00 00 [ 3342.493529] RIP [] dis_dev_get+0x15/0x40 [bbswitch] [ 3342.493529] RSP [ 3342.498777] ---[ end trace 1c9a645295e2191f ]--- As additional info, my xorg.conf contains a section for backlight to work around Bug #1178796 : Section "Device" Identifier "Default Device" Option "Backlight" "intel_backlight" Driver "intel" BusID "PCI:0:2:0" EndSection -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
$ sudo modprobe bbswitch load_state=-1 dmesg log: [ 2780.584599] bbswitch: module verification failed: signature and/or required key missing - tainting kernel [ 2780.584809] bbswitch: version 0.7 [ 2780.584818] bbswitch: Found integrated VGA device :00:02.0: \_SB_.PCI0.VGA_ [ 2780.584830] bbswitch: Found discrete VGA device :01:00.0: \_SB_.PCI0.P0P1.VGA_ [ 2780.584843] ACPI Warning: \_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95) [ 2780.584892] ACPI Warning: \_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95) [ 2780.584982] bbswitch: detected a nVidia _DSM function [ 2780.584999] pci :01:00.0: enabling device ( -> 0003) [ 2780.585046] bbswitch: Succesfully loaded. Discrete card :01:00.0 is on [ 2790.596471] init: Failed to spawn nvidia-persistenced main process: unable to execute: No such file or directory $ lspci -nnvvd10de: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218M [GeForce G210M] [10de:0a74] (rev a2) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. Device [1043:1bc2] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 01:00.1 Audio device [0403]: NVIDIA Corporation High Definition Audio Controller [10de:0be3] (rev a1) Subsystem: ASUSTeK Computer Inc. Device [1043:1bc2] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: snd_hda_intel $ sudo tee /proc/acpi/bbswitch <<] dump_stack+0x45/0x56 [ 3058.312328] [] warn_slowpath_common+0x7d/0xa0 [ 3058.312331] [] warn_slowpath_fmt+0x4c/0x50 [ 3058.312335] [] ? sysfs_get_dirent_ns+0x4e/0x70 [ 3058.312338] [] sysfs_remove_group+0xc6/0xd0 [ 3058.312343] [] dpm_sysfs_remove+0x43/0x50 [ 3058.312348] [] device_del+0x45/0x1c0 [ 3058.312351] [] device_unregister+0x1e/0x60 [ 3058.312355] [] backlight_device_unregister+0x98/0xa0 [ 3058.312365] [] acpi_video_bus_remove+0xd8/0x1d9 [video] [ 3058.312370] [] acpi_device_remove+0x80/0x9f [ 3058.312375] [] __device_release_driver+0x7f/0xf0 [ 3058.312378] [] device_release_driver+0x23/0x30 [ 3058.312382] [] acpi_bus_device_detach+0x57/0x5b [ 3058.312386] [] acpi_bus_trim+0x3f/0x74 [ 3058.312391] [] acpiphp_bus_trim+0x2c/0x30 [ 3058.312395] [] disable_slot+0xaa/0xd0 [ 3058.312398] [] acpiphp_check_bridge+0x118/0x120 [ 3058.312402] [] hotplug_event+0x117/0x260 [ 3058.312406] [] hotplug_event_work+0x2a/0x70 [ 3058.312409] [] acpi_hotplug_work_fn+0x1c/0x27 [ 3058.312415] [] process_one_work+0x182/0x450 [ 3058.312418] [] worker_thread+0x121/0x410 [ 3058.312422] [] ? rescuer_thread+0x430/0x430 [ 3058.312426] [] kthread+0xd2/0xf0 [ 3058.312429] [] ? kthread_create_on_node+0x1d0/0x1d0 [ 3058.312434] [] ret_from_fork+0x7c/0xb0 [ 3058.312438] [] ? kthread_create_on_node+0x1d0/0x1d0 [ 3058.312440] ---[ end trace a09392417cf927a4 ]--- $ lspci -nnvvd10de: $ sudo tee /proc/acpi/bbswitch <<] pci_bus_read_config_dword+0x64/0x90 [ 3324.089125] PGD 4673d067 PUD 4e1a4067 PMD 0 [ 3324.089157] Oops: [#1] SMP [ 3324.089181] Modules linked in: bbswitch(OF) hid_generic cdc_acm usbhid hid snd_hrtimer ip6table_filter ip6_tables iptable_filter ip_tables x_tables cuse bnep rfcomm bluetooth binfmt_misc dm_crypt snd_hda_codec_hdmi arc4 uvcvideo ath9k ath9k_common ath9k_hw videobuf2_vmalloc videobuf2_memops snd_hda_codec_realtek videobuf2_core ath mac80211 snd_hda_intel videodev snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq cfg80211 snd_seq_device snd_timer kvm_intel kvm snd soundcore parport_pc mxm_wmi ppdev asus_laptop joydev coretemp serio_raw wmi sparse_keymap input_polldev lp parport mac_hid lpc_ich usb_storage psmouse ahci libahci atl1c i915 i2c_algo_bit drm_kms_helper drm video [ 3324.089667] CPU: 1 PID: 4103 Comm: tee Tainted: GF W O 3.13.0-32-generic #57-Ubuntu [ 3324.089719] Hardware name: ASUSTeK Computer Inc. UL80VT /UL80VT, BIOS 214 01/17/2011 [ 3324.089775] task: 880063b347d0 ti: 8800b02e2000 task.ti: 8800b02e2000 [ 3324.089815] RIP: 0010:[] [] pci_bus_read_config_dword+0x64/0x90 [ 3324.089872] RSP: 0018:8800b02e3e48 EFLAGS: 00010046 [ 3324.089910] RAX: RBX: ea0001a9e180 RCX: 0004 [ 3324.089949] RDX: RSI: RDI: ea0001a9e180 [ 3324.089988] RBP: 8800b02e3e70 R08: 8800b02e3e54 R09: 8800495454d4 [ 3324.090027] R10: 0001 R11: 0246 R12: 8800b02e3e84 [ 3324.090066] R13: 0246 R14: 0003 R15: 0008 [ 3324.090106] FS: 7f9deaff4740(0
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
Disabling the graphics card seems to trigger an ACPI hotplug event which seems to remove the device from the system. Could you prevent bbswitch from loading at boot (nvidia/nouveau should not load either), then report the output of the following steps including a dmesg log: sudo modprobe bbswitch load_state=-1 lspci -nnvvd10de: sudo tee /proc/acpi/bbswitch << Incomplete ** Changed in: bbswitch (Ubuntu) Assignee: (unassigned) => Peter Wu (lekensteyn) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
Still apears with linux-image-3.15.0-031500rc5-generic. For now, I stay with 3.11 kernel from kubuntu 13.10. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1318040] Re: bbswitch prevents suspend and taints kernel
dmesg just after trying to suspend ** Attachment added: "dmesg-pci_bus_read_config_dword" https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+attachment/4108976/+files/dmesg-pci_bus_read_config_dword ** Description changed: When initiating suspend (to RAM), the kernel gets tainted. This is a regression that appeared after upgrading from Kubuntu 13.10 to 14.04. My - computer has a discrete nVidia card (hybrid SLI system, on ASUS UL80VT). - Here is an extract from dmesg: + computer has a discrete nVidia G210M card (hybrid SLI system, on ASUS + UL80VT). Here is an extract from dmesg: PM: Preparing system for mem sleep BUG: unable to handle kernel NULL pointer dereference at 00b8 IP: [] pci_bus_read_config_dword+0x4b/0x90 - ProblemType: Bug - DistroRelease: Ubuntu 14.04 - Package: xorg 1:7.7+1ubuntu8 - ProcVersionSignature: Ubuntu 3.13.0-26.48-generic 3.13.11 - Uname: Linux 3.13.0-26-generic x86_64 - ApportVersion: 2.14.1-0ubuntu3 - Architecture: amd64 - CurrentDesktop: KDE - Date: Fri May 9 23:34:03 2014 - InstallationDate: Installed on 2010-01-19 (1571 days ago) - InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release amd64 (20091027) - SourcePackage: xorg - Symptom: display - UpgradeStatus: Upgraded to trusty on 2014-05-07 (2 days ago) - --- + --- ApportVersion: 2.14.1-0ubuntu3 Architecture: amd64 CurrentDesktop: KDE DistroRelease: Ubuntu 14.04 InstallationDate: Installed on 2010-01-19 (1571 days ago) InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release amd64 (20091027) Package: bbswitch-dkms 0.7-2ubuntu1 PackageArchitecture: amd64 ProcVersionSignature: Ubuntu 3.13.0-26.48-generic 3.13.11 Tags: trusty Uname: Linux 3.13.0-26-generic x86_64 UpgradeStatus: Upgraded to trusty on 2014-05-07 (2 days ago) UserGroups: adm admin audio bumblebee cdrom dialout fuse lpadmin plugdev sambashare src users vboxusers _MarkForUpload: True -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1318040 Title: bbswitch prevents suspend and taints kernel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1318040/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs