[Bug 2065838] Re: System crash on resume from sleep
*** This bug is a duplicate of bug 2067945 *** https://bugs.launchpad.net/bugs/2067945 Resume issue still present in the 6.11.0-061100rc6 kernel. - Also, suspending live booted Kubuntu and Ubuntu 24.10 Daily builds (06-Sept) produces crash. - System crashes on resume when suspending both from Wayland and X11. - This attempt also failed: "sudo systemctl edit systemd-suspend.service" then adding [Service] Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false" The 6.6 kernel still is the only stable kernel on for my system. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
*** This bug is a duplicate of bug 2067945 *** https://bugs.launchpad.net/bugs/2067945 BIOS update was not the fix. About half of "wake from sleep" results in crash. Reverted back to 6.6 kernel. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
*** This bug is a duplicate of bug 2067945 *** https://bugs.launchpad.net/bugs/2067945 X570S AORUS ELITE AX BIOS update from f7 to f9b (released July 11,2024) may have fixed this issue (2 successful resumes so far...). I will monitor for next few days and report back. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
*** This bug is a duplicate of bug 2067945 *** https://bugs.launchpad.net/bugs/2067945 This issue persists in the 6.11 rc3 kernel and in the 6.10.5 kernel and thus I still must to use the 6.6.42 kernel to avoid crashes. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
*** This bug is a duplicate of bug 2067945 *** https://bugs.launchpad.net/bugs/2067945 Have the same bug afer upgrading to kubuntu 24.04. With the old kerenl linux-image-6.8.0-38 my redmibook 2022 Ryzen 6800H (no video card version) wakes up from sleep fine. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
*** This bug is a duplicate of bug 2067945 *** https://bugs.launchpad.net/bugs/2067945 ** This bug has been marked a duplicate of bug 2067945 Restart after resume from suspend -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: linux (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
Do you have secure boot enabled? if so, turn it off and hopefully the kernel you built should be bootadble. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
I have tried building an unpatched kernel a couple different ways including following the direction from the recommended link (https://itsfoss.com/compile-linux-kernel/) but failed to produce a bootable kernel. The kernel appeared to build correctly as I did not notice any compile errors, but once installed, it failed to boot. I am unsure how/where to check the build logs (I still have the failed session so I can review if needed.) Following my notes from previous successful kernel builds (to fix sound issues on my Lenovo laptop): *Ubuntu version: 1) install kernel build tools: (https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel): * sudo apt install libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf git 2) clone the kernel from github and checkout (Rather large, multiple GB's): * git clone https://github.com/torvalds/linux.git * cd linux * git checkout v6.xx 3) load current kernel config and change configuration then run the following scripts/config commands: * make olddefconfig 4) build the kernel * make -j 16 But both the v6.8 and v6.9 kernel fail after ~10 to 15min of compiling with this same error: make[1]: *** [/home/darin/kernel/linux/Makefile:1919: .] Error 2 make: *** [Makefile:240: __sub-make] Error 2 I inspected the MakeFile at lines 240 and 1919 but failed to see anything obvious to edit or delete. Not sure how to proceed from here. I am more than happy to keep trying, but I don't want to waste anyone's time with painful remote troubleshooting. A side note, I did try patching just for the experience, but the provide patch did not work with either the 6.8 or 6.9 kernel version of exregion.c. However, the patch is clear enough to manually perform the edit and I could manually find the lines that required updatng. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
Save the below as a patch file and then apply using "patch -p1 < FILE". Build your kernel and see if it has helped. diff --git a/drivers/acpi/acpica/exregion.c b/drivers/acpi/acpica/exregion.c index 8907b8bf4267..ca060ec6936e 100644 --- a/drivers/acpi/acpica/exregion.c +++ b/drivers/acpi/acpica/exregion.c @@ -44,7 +44,6 @@ acpi_ex_system_memory_space_handler(u32 function, struct acpi_mem_mapping *mm = mem_info->cur_mm; u32 length; acpi_size map_length; - acpi_size page_boundary_map_length; #ifdef ACPI_MISALIGNMENT_NOT_SUPPORTED u32 remainder; #endif @@ -138,25 +137,8 @@ acpi_ex_system_memory_space_handler(u32 function, map_length = (acpi_size) ((mem_info->address + mem_info->length) - address); - /* -* If mapping the entire remaining portion of the region will cross -* a page boundary, just map up to the page boundary, do not cross. -* On some systems, crossing a page boundary while mapping regions -* can cause warnings if the pages have different attributes -* due to resource management. -* -* This has the added benefit of constraining a single mapping to -* one page, which is similar to the original code that used a 4k -* maximum window. -*/ - page_boundary_map_length = (acpi_size) - (ACPI_ROUND_UP(address, ACPI_DEFAULT_PAGE_SIZE) - address); - if (page_boundary_map_length == 0) { - page_boundary_map_length = ACPI_DEFAULT_PAGE_SIZE; - } - - if (map_length > page_boundary_map_length) { - map_length = page_boundary_map_length; + if (map_length > ACPI_DEFAULT_PAGE_SIZE) { + map_length = ACPI_DEFAULT_PAGE_SIZE; } /* Create a new mapping starting at the address given */ -- 2.34.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
Kernel compiled and I am familiar with installing my own kernel. I just have never applied or reverted a patch. Please post the reversion and respective instructions. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
Yes since you didn't clone using git you can't use git revert. Once you can successfully build and test that kernel I'll post you a revert patch' with explanation how to use it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
Correction. To revert, the command should be: git revert d410ee5109a1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
OK, kernel successfully compiled sans reverting the commit. Googling kernel patching, I found these commands to revert based on git repo: git checkout d410ee5109a1 git checkout d410ee5109a1 However, since I downloaded the file from here, https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/, I don't know how to initialize the my download as a get repo. Please advise. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
Yeah I know they're different symptoms but the reason for that revert might have a similar root cause. I'm saying this because I've got a different system that fails to boot up that reverting that helps. In terms of specific instructions, I'd start with this: https://itsfoss.com/compile-linux-kernel/ Once you can get that compiling on your own I can help you with a applying a revert patch to see if it helps. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
My bug symptoms are different as my PC successfully reaches a suspend state. After additional testing, the PC will successfully resume about 50% of the time with the 6.8.0-31-generic kernel. Another side note, when the PC sleep is initiated by the user, PC resume seems to fail more consistently. PC sleep induced by the system power management timeout (almost?) always resumes successfully. This resume observation could be purely coincidental however. Reverting d410ee5109a1 is beyond my skillset without explicit instructions. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
As a random guess; could this be the same as https://bugzilla.kernel.org/show_bug.cgi?id=218849? Try reverting d410ee5109a1 ("ACPICA: avoid "Info: mapping multiple BARs. Your kernel is fine."") ** Bug watch added: Linux Kernel Bug Tracker #218849 https://bugzilla.kernel.org/show_bug.cgi?id=218849 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065838 Title: System crash on resume from sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2065838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2065838] Re: System crash on resume from sleep
I am having the exact same issue. OS: Ubuntu 24.04 LTS Kernel: 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC CPU: 12th Gen Intel(R) Core(TM) i7-12700H - jake@CodeBox:~/temp$ cat lshw.txt H/W path Device Class Description == system 21DCCTO1WW (LENOVO_MT_21DC_BU_Think_FM_ThinkPad P1 Gen 5) /0 bus21DCCTO1WW /0/1memory 64GiB System Memory /0/1/0 memory 32GiB SODIMM Synchronous 4800 MHz (0.2 ns) /0/1/1 memory 32GiB SODIMM Synchronous 4800 MHz (0.2 ns) /0/cmemory 288KiB L1 cache /0/dmemory 192KiB L1 cache /0/ememory 7680KiB L2 cache /0/fmemory 24MiB L3 cache /0/10 memory 256KiB L1 cache /0/11 memory 512KiB L1 cache /0/12 memory 4MiB L2 cache /0/13 memory 24MiB L3 cache /0/14 processor 12th Gen Intel(R) Core(TM) i7-12700H /0/15 memory 128KiB BIOS /0/100 bridge 12th Gen Core Processor Host Bridge/DRAM Registers /0/100/1bridge 12th Gen Core Processor PCI Express x16 Controller #1 /0/100/1/0 /dev/fb0 displayGA107GLM [RTX A1000 Laptop GPU] /0/100/1/0.1 card0multimedia NVIDIA Corporation /0/100/1/0.1/0 input13 input HDA NVidia HDMI/DP,pcm=3 /0/100/1/0.1/1 input14 input HDA NVidia HDMI/DP,pcm=7 /0/100/1/0.1/2 input15 input HDA NVidia HDMI/DP,pcm=8 /0/100/1/0.1/3 input16 input HDA NVidia HDMI/DP,pcm=9 /0/100/2 /dev/fb0 displayAlder Lake-P GT2 [Iris Xe Graphics] /0/100/4genericAlder Lake Innovation Platform Framework Processor Participant /0/100/6bridge 12th Gen Core Processor PCI Express x4 Controller #0 /0/100/6/0 /dev/nvme0 storageWD PC SN810 SDCQNRY-1T00-1001 /0/100/6/0/0 hwmon3 disk NVMe disk /0/100/6/0/2 /dev/ng0n1 disk NVMe disk /0/100/6/0/1 /dev/nvme0n1 disk 1024GB NVMe disk /0/100/6/0/1/1 /dev/nvme0n1p1 volume 99MiB Windows FAT volume /0/100/6/0/1/2 /dev/nvme0n1p2 volume 15MiB reserved partition /0/100/6/0/1/3 /dev/nvme0n1p3 volume 464GiB Windows NTFS volume /0/100/6/0/1/4 /dev/nvme0n1p4 volume 624MiB Windows NTFS volume /0/100/6/0/1/5 /dev/nvme0n1p5 volume 488GiB EXT4 volume /0/100/8generic12th Gen Core Processor Gaussian & Neural Accelerator /0/100/agenericPlatform Monitoring Technology /0/100/14 busAlder Lake PCH USB 3.2 xHCI Host Controller /0/100/14/0usb1 busxHCI Host Controller /0/100/14/0/1 busUSB2.0 Hub /0/100/14/0/1/4 busUSB2.0 Hub /0/100/14/0/1/4/2 busUSB 2.0 Hub [MTT] /0/100/14/0/1/4/2/1 genericUSB-Serial Bridge /0/100/14/0/1/4/4 busUSB 2.0 Hub /0/100/14/0/1/4/4/1 input USB Receiver /0/100/14/0/1/4/4/1/0 input43 input Logitech Wireless Keyboard PID:4023 /0/100/14/0/1/4/4/1/1 input44 input Logitech Wireless Mouse /0/100/14/0/1/4/4/2card3multimedia DeSheng Electronics Inc. XIBERIA /0/100/14/0/1/4/4/4input31 input SINOWEALTH 2.4G Wireless Receiver Keyboard /0/100/14/0/6 genericGeneric USB device /0/100/14/0/8 multimedia Integrated Camera /0/100/14/0/a communication AX211 Bluetooth /0/100/14/1usb2 busxHCI Host Controller /0/100/14.2 memory RAM memory /0/100/14.3wlp0s20f3networkAlder Lake-P PCH CNVi WiFi /0/100/15 busAlder Lake PCH Serial IO I2C Controller #0 /0/100/16 communication Alder Lake