Bug 463380 - Putting system to sleep hangs the system
Summary: Putting system to sleep hangs the system
Status: RESOLVED UPSTREAM
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-23 06:12 UTC by Rajinder Yadav
Modified: 2022-12-25 16:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
dmesh output (143.04 KB, text/plain)
2022-12-25 07:16 UTC, Rajinder Yadav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rajinder Yadav 2022-12-23 06:12:40 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

When putting the system to sleep, at times it will hang, or crash, not sure exactly what is going on.
This stop working for me months ago.

STEPS TO REPRODUCE
1. Put system to sleep

OBSERVED RESULT

Hangs or crashes

EXPECTED RESULT

Put PC to sleep.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Operating System: openSUSE Tumbleweed 20221221
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-1-default (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7A38
System Version: 8.0
Comment 1 Fushan Wen 2022-12-23 13:58:39 UTC
Did dmesg show any messages?
Comment 2 Rajinder Yadav 2022-12-25 07:16:20 UTC
Created attachment 154816 [details]
dmesh output
Comment 3 Rajinder Yadav 2022-12-25 07:19:38 UTC
I was able to suspend my system once, now when I try again after why it will not go into suspend mode and will after a little while present the login screen and I need to re-login backin to my running session.

I've attached the dmesg log for you to view, but I did notice the section at the bottom stating some bug?

[178099.490425] usb 1-2: USB disconnect, device number 2
[178106.473716] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 5
[178108.402907] PM: suspend entry (deep)
[178108.424506] Filesystems sync: 0.021 seconds
[178108.424627] BUG: unable to handle page fault for address: 00000005d566c000
[178108.424650] #PF: supervisor instruction fetch in kernel mode
[178108.424665] #PF: error_code(0x0010) - not-present page
[178108.424679] PGD 0 P4D 0 
[178108.424688] Oops: 0010 [#1] PREEMPT SMP NOPTI
[178108.424700] CPU: 8 PID: 3172 Comm: systemd-sleep Tainted: P           OE      6.0.12-1-default #1 openSUSE Tumbleweed 21b79504127c49fe5a884954af431438cb2057cc
[178108.424734] Hardware name: Micro-Star International Co., Ltd. MS-7A38/B450M PRO-VDH MAX (MS-7A38), BIOS B.D0 01/11/2022
[178108.424760] RIP: 0010:0x5d566c000
[178108.424771] Code: Unable to access opcode bytes at RIP 0x5d566bfd6.
[178108.424788] RSP: 0018:ffffae2b824e7d88 EFLAGS: 00010206
[178108.424802] RAX: 00000005d566c000 RBX: 0000000000000000 RCX: 0000000000000000
[178108.424820] RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff9fdbfb978b78
[178108.424837] RBP: 00000005d566d000 R08: ffffffffbbdceff0 R09: ffffae2b824e7d18
[178108.424855] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[178108.424873] R13: 0000000000000003 R14: 000000000000000a R15: 0000000000000009
[178108.424890] FS:  00007f375333cb00(0000) GS:ffff9fea3ec00000(0000) knlGS:0000000000000000
[178108.424910] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[178108.424925] CR2: 00000005d566c000 CR3: 0000000a71e7a000 CR4: 0000000000750ee0
[178108.424943] PKRU: 55555554
[178108.424951] Call Trace:
[178108.424960]  <TASK>
[178108.424967]  ? blocking_notifier_call_chain_robust+0x6e/0xd0
[178108.424985]  ? pm_notifier_call_chain_robust+0x19/0x40
[178108.425000]  ? pm_suspend.cold+0x16f/0x35e
[178108.425012]  ? state_store+0x68/0xd0
[178108.425024]  ? kernfs_fop_write_iter+0x11e/0x1f0
[178108.425038]  ? vfs_write+0x1f7/0x3b0
[178108.425050]  ? ksys_write+0x63/0xe0
[178108.425061]  ? do_syscall_64+0x5b/0x80
[178108.425074]  ? entry_SYSCALL_64_after_hwframe+0x63/0xcd
[178108.425090]  </TASK>
[178108.425097] Modules linked in: udp_diag tcp_diag inet_diag rfcomm veth xt_nat nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype br_netfilter xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT xt_tcpudp overlay bridge stp llc af_packet nf_nat_ftp nf_nat_tftp nf_conntrack_ftp nft_objref nf_conntrack_tftp nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_mangle iptable_raw iscsi_ibft iscsi_boot_sysfs iptable_security ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter bpfilter qrtr cmac algif_hash algif_skcipher af_alg nct6775 nct6775_core bnep hwmon_vid hid_generic usbhid squashfs nls_iso8859_1 nls_cp437 loop vfat binfmt_misc fat nvidia_drm(POE) nvidia_modeset(POE) intel_rapl_msr
[178108.425126]  nvidia_uvm(POE) btusb btrtl btbcm btintel snd_hda_codec_realtek btmtk snd_hda_codec_generic intel_rapl_common bluetooth ledtrig_audio uvcvideo snd_hda_codec_hdmi ecdh_generic videobuf2_vmalloc videobuf2_memops rfkill edac_mce_amd snd_hda_intel videobuf2_v4l2 snd_intel_dspcfg snd_intel_sdw_acpi videobuf2_common kvm_amd snd_hda_codec nvidia(POE) snd_usb_audio snd_hda_core videodev snd_usbmidi_lib kvm snd_rawmidi snd_seq_device r8169 snd_hwdep mc snd_pcm realtek snd_timer irqbypass mdio_devres snd wmi_bmof parport_pc libphy pcspkr efi_pstore i2c_piix4 soundcore k10temp ppdev parport gpio_amdpt gpio_generic acpi_cpufreq tiny_power_button fuse configfs dmi_sysfs ip_tables x_tables ext4 mbcache jbd2 uas usb_storage crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic gf128mul ghash_clmulni_intel xhci_pci xhci_pci_renesas xhci_hcd aesni_intel nvme crypto_simd usbcore cryptd ccp sp5100_tco nvme_core wmi button sg dm_multipath dm_mod
[178108.425326]  scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr efivarfs
[178108.427340] CR2: 00000005d566c000
[178108.427970] ---[ end trace 0000000000000000 ]---
[178108.428602] RIP: 0010:0x5d566c000
[178108.429221] Code: Unable to access opcode bytes at RIP 0x5d566bfd6.
[178108.429839] RSP: 0018:ffffae2b824e7d88 EFLAGS: 00010206
[178108.430442] RAX: 00000005d566c000 RBX: 0000000000000000 RCX: 0000000000000000
[178108.431039] RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff9fdbfb978b78
[178108.431636] RBP: 00000005d566d000 R08: ffffffffbbdceff0 R09: ffffae2b824e7d18
[178108.432231] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[178108.432824] R13: 0000000000000003 R14: 000000000000000a R15: 0000000000000009
[178108.433410] FS:  00007f375333cb00(0000) GS:ffff9fea3ec00000(0000) knlGS:0000000000000000
[178108.434003] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[178108.434596] CR2: 00000005d566c000 CR3: 0000000a71e7a000 CR4: 0000000000750ee0
[178108.435193] PKRU: 55555554
Comment 4 Fushan Wen 2022-12-25 11:05:15 UTC
Simliar bugreport: https://github.com/pop-os/system76-power/issues/285

Can be a bug in bumblebee

```
[178108.428602] RIP: 0010:0x5d566c000
```
It seems you don't have kernel module debuginfo installed, so I was just guessing.

As it's not likely a bug in KDE, closed as resolved upstream.
Comment 5 Rajinder Yadav 2022-12-25 16:59:17 UTC
I don't have bumblebee installed, but I will install the kernel-debug module and go from there, thanks