Suspend and resume yet again broken with 340.58 and Linux kernel 3.17.3

340.xx had issue with suspend and resume with Linux kernel >=3.15. System was unusable after resume. 340.58 fixed this bug:

* Fixed a bug that could cause VT-switching to fail following a
  suspend, resume, and driver reload sequence.

It works excellent with Linux kernel 3.17.0. But with kernel 3.17.3 everything is broken yet again. After resume system is unusable. In /var/log/syslog I get the same listing before system is completely suspended:

Nov 20 15:38:28 GreyPad kernel: [ 8083.072062] pci 0000:01:00.0: [10de:06ec] type 00 class 0x030000
Nov 20 15:38:28 GreyPad kernel: [ 8083.072082] pci 0000:01:00.0: reg 0x10: [mem 0xfc000000-0xfcffffff]
Nov 20 15:38:28 GreyPad kernel: [ 8083.072097] pci 0000:01:00.0: reg 0x14: [mem 0xd0000000-0xdfffffff 64bit pref]
Nov 20 15:38:28 GreyPad kernel: [ 8083.072112] pci 0000:01:00.0: reg 0x1c: [mem 0xfa000000-0xfbffffff 64bit]
Nov 20 15:38:28 GreyPad kernel: [ 8083.072122] pci 0000:01:00.0: reg 0x24: [io  0xdc00-0xdc7f]
Nov 20 15:38:28 GreyPad kernel: [ 8083.072132] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0001ffff pref]
Nov 20 15:38:28 GreyPad kernel: [ 8083.072269] vgaarb: setting as boot device: PCI:0000:01:00.0
Nov 20 15:38:28 GreyPad kernel: [ 8083.072271] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
Nov 20 15:38:28 GreyPad kernel: [ 8083.080052] pci 0000:01:00.0: BAR 1: assigned [mem 0xd0000000-0xdfffffff 64bit pref]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080063] pci 0000:01:00.0: BAR 3: assigned [mem 0xfa000000-0xfbffffff 64bit]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080073] pci 0000:01:00.0: BAR 0: assigned [mem 0xfc000000-0xfcffffff]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080077] pci 0000:01:00.0: BAR 6: assigned [mem 0xf9f00000-0xf9f1ffff pref]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080079] pci 0000:01:00.0: BAR 5: assigned [io  0xd000-0xd07f]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080084] pcieport 0000:00:01.0: PCI bridge to [bus 01]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080086] pcieport 0000:00:01.0:   bridge window [io  0xd000-0xdfff]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080089] pcieport 0000:00:01.0:   bridge window [mem 0xf9f00000-0xfcffffff]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080092] pcieport 0000:00:01.0:   bridge window [mem 0xd0000000-0xdfffffff 64bit pref]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080112] pci 0000:01:00.0: Video device with shadowed ROM
Nov 20 15:38:28 GreyPad kernel: [ 8083.080252] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
Nov 20 15:38:28 GreyPad kernel: [ 8083.080462] ------------[ cut here ]------------
Nov 20 15:38:28 GreyPad kernel: [ 8083.080468] WARNING: CPU: 0 PID: 12765 at fs/proc/generic.c:315 proc_register+0xc0/0x140()
Nov 20 15:38:28 GreyPad kernel: [ 8083.080469] proc_dir_entry 'gpus/0000:01:00.0' already registered
Nov 20 15:38:28 GreyPad kernel: [ 8083.080510] Modules linked in: ctr ccm binfmt_misc pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) cpufreq_powersave cpufreq_stats cpufr
eq_userspace xfrm_user cpufreq_conservative xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo hid_generic ecb btusb usbhid bluetooth hid uvcvideo videobuf2_vmalloc vi
deobuf2_memops videobuf2_core v4l2_common videodev media joydev nvidia(PO) iTCO_wdt iTCO_vendor_support r852 sm_common nand nand_ecc nand_bch r8169 bch kvm_intel sdhci_pci kvm drm ar
c4 sdhci nand_ids sr_mod snd_hda_codec_hdmi iwldvm mtd mac80211 mmc_core firewire_ohci cdrom mii sg r592 i2c_core snd_hda_codec_conexant evdev memstick pcspkr snd_hda_codec_generic i
wlwifi psmouse serio_raw snd_hda_intel snd_hda_controller cfg80211 lpc_ich mfd_core snd_hda_codec asus_laptop sparse_keymap rfkill input_polldev uhci_hcd ehci_pci shpchp ehci_hcd snd
_hwdep usbcore snd_pcm battery usb_common video ac snd_timer snd soundcore button acpi_cpufreq processor coretemp loop firewire_sbp2 firewire_core crc_itu_t fuse parport_pc ppdev lp 
parport autofs4 ext4 crc16 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic crct10dif_common ahci libahci libata scsi_mod thermal thermal_sys
Nov 20 15:38:28 GreyPad kernel: [ 8083.080534] CPU: 0 PID: 12765 Comm: kworker/u4:8 Tainted: P           O   3.17.3-GreyPad #2
Nov 20 15:38:28 GreyPad kernel: [ 8083.080535] Hardware name: LENOVO                         2746ENG/2746ENG   , BIOS 6AET64WW 12/01/2010
Nov 20 15:38:28 GreyPad kernel: [ 8083.080540] Workqueue: events_unbound async_run_entry_fn
Nov 20 15:38:28 GreyPad kernel: [ 8083.080542]  0000000000000009 ffffffff8151bda6 ffff88012ec3fa78 ffffffff81067757
Nov 20 15:38:28 GreyPad kernel: [ 8083.080544]  ffff8800378ebc40 ffff88012ec3fac8 ffff8800b2d4b340 ffff8800b7c1fdc0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080545]  ffff8800378ebc40 ffffffff810677bc ffffffff81736268 0000000000000028
Nov 20 15:38:28 GreyPad kernel: [ 8083.080546] Call Trace:
Nov 20 15:38:28 GreyPad kernel: [ 8083.080551]  [<ffffffff8151bda6>] ? dump_stack+0x41/0x51
Nov 20 15:38:28 GreyPad kernel: [ 8083.080554]  [<ffffffff81067757>] ? warn_slowpath_common+0x77/0x90
Nov 20 15:38:28 GreyPad kernel: [ 8083.080556]  [<ffffffff810677bc>] ? warn_slowpath_fmt+0x4c/0x50
Nov 20 15:38:28 GreyPad kernel: [ 8083.080558]  [<ffffffff81215ab0>] ? proc_register+0xc0/0x140
Nov 20 15:38:28 GreyPad kernel: [ 8083.080559]  [<ffffffff81215c2c>] ? proc_mkdir_data+0x4c/0x70
Nov 20 15:38:28 GreyPad kernel: [ 8083.080677]  [<ffffffffa0b4494e>] ? nv_procfs_add_gpu+0x6e/0x150 [nvidia]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080724]  [<ffffffffa0b3d40f>] ? nvidia_probe+0x68f/0xf10 [nvidia]
Nov 20 15:38:28 GreyPad kernel: [ 8083.080726]  [<ffffffff8151fc2e>] ? mutex_lock+0xe/0x30
Nov 20 15:38:28 GreyPad kernel: [ 8083.080730]  [<ffffffff812f03cd>] ? local_pci_probe+0x3d/0xa0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080732]  [<ffffffff812f17d8>] ? pci_device_probe+0xc8/0x120
Nov 20 15:38:28 GreyPad kernel: [ 8083.080737]  [<ffffffff813b05ce>] ? driver_probe_device+0x9e/0x400
Nov 20 15:38:28 GreyPad kernel: [ 8083.080738]  [<ffffffff813b0930>] ? driver_probe_device+0x400/0x400
Nov 20 15:38:28 GreyPad kernel: [ 8083.080740]  [<ffffffff813ae5eb>] ? bus_for_each_drv+0x5b/0x90
Nov 20 15:38:28 GreyPad kernel: [ 8083.080742]  [<ffffffff813b04b8>] ? device_attach+0x98/0xc0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080745]  [<ffffffff812e7779>] ? pci_bus_add_device+0x39/0x70
Nov 20 15:38:28 GreyPad kernel: [ 8083.080747]  [<ffffffff812e7b79>] ? pci_bus_add_devices+0x39/0x80
Nov 20 15:38:28 GreyPad kernel: [ 8083.080749]  [<ffffffff81306701>] ? pciehp_configure_device+0xc1/0x150
Nov 20 15:38:28 GreyPad kernel: [ 8083.080751]  [<ffffffff813060b3>] ? pciehp_enable_slot+0x153/0x290
Nov 20 15:38:28 GreyPad kernel: [ 8083.080754]  [<ffffffff812fe0c0>] ? suspend_iter+0x40/0x40
Nov 20 15:38:28 GreyPad kernel: [ 8083.080756]  [<ffffffff81304e55>] ? pciehp_resume+0x65/0x70
Nov 20 15:38:28 GreyPad kernel: [ 8083.080758]  [<ffffffff812fe0f3>] ? resume_iter+0x33/0x40
Nov 20 15:38:28 GreyPad kernel: [ 8083.080759]  [<ffffffff813abed3>] ? device_for_each_child+0x43/0x70
Nov 20 15:38:28 GreyPad kernel: [ 8083.080761]  [<ffffffff812f0c90>] ? pci_pm_suspend_noirq+0x1a0/0x1a0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080763]  [<ffffffff813ba586>] ? dpm_run_callback+0x46/0xf0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080765]  [<ffffffff813ba9b6>] ? device_resume+0x86/0x1a0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080766]  [<ffffffff813baae9>] ? async_resume+0x19/0x40
Nov 20 15:38:28 GreyPad kernel: [ 8083.080768]  [<ffffffff81085e92>] ? async_run_entry_fn+0x32/0x120
Nov 20 15:38:28 GreyPad kernel: [ 8083.080771]  [<ffffffff8107e43e>] ? process_one_work+0x14e/0x3f0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080773]  [<ffffffff8107ed0b>] ? worker_thread+0x6b/0x4a0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080774]  [<ffffffff8107eca0>] ? rescuer_thread+0x290/0x290
Nov 20 15:38:28 GreyPad kernel: [ 8083.080776]  [<ffffffff810837bf>] ? kthread+0xcf/0xf0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080778]  [<ffffffff810836f0>] ? kthread_create_on_node+0x180/0x180
Nov 20 15:38:28 GreyPad kernel: [ 8083.080779]  [<ffffffff81521d3c>] ? ret_from_fork+0x7c/0xb0
Nov 20 15:38:28 GreyPad kernel: [ 8083.080781]  [<ffffffff810836f0>] ? kthread_create_on_node+0x180/0x180
Nov 20 15:38:28 GreyPad kernel: [ 8083.080782] ---[ end trace 9f51f51b79e56cc6 ]---

Something must change between Linux kernel 3.17.0 and 3.17.3.
nvidia-bug-report.log.gz (68.6 KB)

Suspend/hibertantion is still broken. Even after upgrade to NVIDIA driver 340.65.

Same problem here:

https://devtalk.nvidia.com/default/topic/803899/linux/suspen-to-ram-resume-failure-on-opensuse-13-2-using-gtx750/