I tried mainline kernels in Ubuntu 22.10:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.3/ - resume now works, but both resume and suspend are really slow (20+ seconds)
https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.1-rc1/ - works as well, without the long delay
Probably something was finally fixed in the kernel.
Note: mainline 6.x kernels also log the following error:
[ 49.449840] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 49.452576] OOM killer disabled. [ 49.452578] Freezing remaining freezable tasks ... (elapsed 2.760 seconds) done. [ 52.216297] printk: Suspending console(s) (use no_console_suspend to debug) [ 52.594630] ACPI: EC: interrupt blocked [ 52.637203] ================================================================================ [ 52.637205] UBSAN: array-index-out-of-bounds in /home/kernel/COD/linux/drivers/acpi/acpica/dswexec.c:401:12 [ 52.637208] index -1 is out of range for type 'acpi_operand_object *[9]' [ 52.637210] CPU: 0 PID: 240 Comm: kworker/u16:4 Tainted: G U OE 6.1.0-060100rc1-generic #202210162332 [ 52.637214] Hardware name: ASUSTeK COMPUTER INC. ZenBook UX393EA_UX393EA/UX393EA, BIOS UX393EA.312 04/22/2022 [ 52.637216] Workqueue: events_unbound async_run_entry_fn [ 52.637224] Call Trace: [ 52.637226] <TASK> [ 52.637229] show_stack+0x4e/0x61 [ 52.637234] dump_stack_lvl+0x4a/0x6f [ 52.637241] dump_stack+0x10/0x18 [ 52.637245] ubsan_epilogue+0x9/0x43 [ 52.637249] __ubsan_handle_out_of_bounds.cold+0x42/0x47 [ 52.637253] acpi_ds_exec_end_op+0x1ca/0x828 [ 52.637259] acpi_ps_parse_loop+0x58d/0x678 [ 52.637263] acpi_ps_parse_aml+0x2e6/0x59e [ 52.637265] acpi_ps_execute_method+0x241/0x315 [ 52.637269] acpi_ns_evaluate+0x34c/0x515 [ 52.637273] acpi_evaluate_object+0x212/0x3a5 [ 52.637275] __acpi_power_off+0x26/0x70 [ 52.637279] acpi_power_off_unlocked+0x54/0x90 [ 52.637283] acpi_power_off_list.isra.0+0x43/0xa0 [ 52.637287] acpi_power_transition+0xab/0x100 [ 52.637291] acpi_device_set_power+0x319/0x470 [ 52.637295] ? _raw_spin_lock_irqsave+0xe/0x20 [ 52.637298] acpi_pci_set_power_state+0x98/0x150 [ 52.637303] pci_set_power_state+0x9f/0x220 [ 52.637306] ? acpi_pci_choose_state+0x26/0x50 [ 52.637309] pci_prepare_to_sleep+0x7e/0xd0 [ 52.637312] pci_pm_suspend_noirq+0x1f7/0x2c0 [ 52.637316] ? pci_pm_suspend_late+0x50/0x50 [ 52.637319] dpm_run_callback+0x63/0x160 [ 52.637322] __device_suspend_noirq+0x8f/0x290 [ 52.637325] async_suspend_noirq+0x23/0x70 [ 52.637327] async_run_entry_fn+0x30/0x130 [ 52.637331] process_one_work+0x222/0x400 [ 52.637334] worker_thread+0x50/0x3e0 [ 52.637337] ? process_one_work+0x400/0x400 [ 52.637339] kthread+0xe6/0x110 [ 52.637342] ? kthread_complete_and_exit+0x20/0x20 [ 52.637344] ret_from_fork+0x1f/0x30 [ 52.637350] </TASK> [ 52.637351] ================================================================================ [ 60.734902] ACPI: EC: interrupt unblocked [ 61.575520] pcieport 10000:e0:1d.0: can't derive routing for PCI INT A [ 61.575528] nvme 10000:e1:00.0: PCI INT A: no GSI [ 61.576151] i915 0000:00:02.0: [drm] GuC firmware i915/tgl_guc_70.1.1.bin version 70.1.1 [ 61.576157] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_huc_7.9.3.bin version 7.9.3 [ 61.580528] i915 0000:00:02.0: [drm] HuC authenticated [ 61.580535] i915 0000:00:02.0: [drm] GuC submission disabled [ 61.580537] i915 0000:00:02.0: [drm] GuC SLPC disabled [ 61.580970] nvme nvme0: 8/0/0 default/read/poll queues [ 61.905786] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915]) [ 61.906125] OOM killer enabled. [ 61.906128] Restarting tasks ... [ 61.906449] mei_pxp 0000:00:16.0-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:00:02.0 (ops i915_pxp_tee_component_ops [i915]) [ 61.922392] done. [ 61.922431] random: crng reseeded on system resumption [ 61.935746] thermal thermal_zone6: failed to read out thermal zone (-61) [ 61.949978] PM: suspend exit
I tried mainline kernels in Ubuntu 22.10:
https:/ /kernel. ubuntu. com/~kernel- ppa/mainline/ v6.0.3/ - resume now works, but both resume and suspend are really slow (20+ seconds)
https:/ /kernel. ubuntu. com/~kernel- ppa/mainline/ v6.1-rc1/ - works as well, without the long delay
Probably something was finally fixed in the kernel.
Note: mainline 6.x kernels also log the following error:
[ 49.449840] Freezing user space processes ... (elapsed 0.002 seconds) done. ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === out-of- bounds in /home/kernel/ COD/linux/ drivers/ acpi/acpica/ dswexec. c:401:12 object *[9]' -generic #202210162332 UX393EA/ UX393EA, BIOS UX393EA.312 04/22/2022 0x4e/0x61 lvl+0x4a/ 0x6f 0x10/0x18 0x9/0x43 handle_ out_of_ bounds. cold+0x42/ 0x47 exec_end_ op+0x1ca/ 0x828 parse_loop+ 0x58d/0x678 parse_aml+ 0x2e6/0x59e execute_ method+ 0x241/0x315 evaluate+ 0x34c/0x515 object+ 0x212/0x3a5 power_off+ 0x26/0x70 off_unlocked+ 0x54/0x90 off_list. isra.0+ 0x43/0xa0 transition+ 0xab/0x100 set_power+ 0x319/0x470 lock_irqsave+ 0xe/0x20 set_power_ state+0x98/ 0x150 power_state+ 0x9f/0x220 choose_ state+0x26/ 0x50 to_sleep+ 0x7e/0xd0 suspend_ noirq+0x1f7/ 0x2c0 suspend_ late+0x50/ 0x50 callback+ 0x63/0x160 suspend_ noirq+0x8f/ 0x290 noirq+0x23/ 0x70 entry_fn+ 0x30/0x130 one_work+ 0x222/0x400 thread+ 0x50/0x3e0 one_work+ 0x400/0x400 complete_ and_exit+ 0x20/0x20 fork+0x1f/ 0x30 ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === guc_70. 1.1.bin version 70.1.1 huc_7.9. 3.bin version 7.9.3 16.0-b638ab7e- 94e2-4ea2- a552-d1c54b627f 04: bound 0000:00:02.0 (ops i915_hdcp_ component_ ops [i915]) 16.0-fbf6fcf1- 96cf-4e2e- a6a6-1bab8cbe36 b1: bound 0000:00:02.0 (ops i915_pxp_ tee_component_ ops [i915])
[ 49.452576] OOM killer disabled.
[ 49.452578] Freezing remaining freezable tasks ... (elapsed 2.760 seconds) done.
[ 52.216297] printk: Suspending console(s) (use no_console_suspend to debug)
[ 52.594630] ACPI: EC: interrupt blocked
[ 52.637203] =======
[ 52.637205] UBSAN: array-index-
[ 52.637208] index -1 is out of range for type 'acpi_operand_
[ 52.637210] CPU: 0 PID: 240 Comm: kworker/u16:4 Tainted: G U OE 6.1.0-060100rc1
[ 52.637214] Hardware name: ASUSTeK COMPUTER INC. ZenBook UX393EA_
[ 52.637216] Workqueue: events_unbound async_run_entry_fn
[ 52.637224] Call Trace:
[ 52.637226] <TASK>
[ 52.637229] show_stack+
[ 52.637234] dump_stack_
[ 52.637241] dump_stack+
[ 52.637245] ubsan_epilogue+
[ 52.637249] __ubsan_
[ 52.637253] acpi_ds_
[ 52.637259] acpi_ps_
[ 52.637263] acpi_ps_
[ 52.637265] acpi_ps_
[ 52.637269] acpi_ns_
[ 52.637273] acpi_evaluate_
[ 52.637275] __acpi_
[ 52.637279] acpi_power_
[ 52.637283] acpi_power_
[ 52.637287] acpi_power_
[ 52.637291] acpi_device_
[ 52.637295] ? _raw_spin_
[ 52.637298] acpi_pci_
[ 52.637303] pci_set_
[ 52.637306] ? acpi_pci_
[ 52.637309] pci_prepare_
[ 52.637312] pci_pm_
[ 52.637316] ? pci_pm_
[ 52.637319] dpm_run_
[ 52.637322] __device_
[ 52.637325] async_suspend_
[ 52.637327] async_run_
[ 52.637331] process_
[ 52.637334] worker_
[ 52.637337] ? process_
[ 52.637339] kthread+0xe6/0x110
[ 52.637342] ? kthread_
[ 52.637344] ret_from_
[ 52.637350] </TASK>
[ 52.637351] =======
[ 60.734902] ACPI: EC: interrupt unblocked
[ 61.575520] pcieport 10000:e0:1d.0: can't derive routing for PCI INT A
[ 61.575528] nvme 10000:e1:00.0: PCI INT A: no GSI
[ 61.576151] i915 0000:00:02.0: [drm] GuC firmware i915/tgl_
[ 61.576157] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_
[ 61.580528] i915 0000:00:02.0: [drm] HuC authenticated
[ 61.580535] i915 0000:00:02.0: [drm] GuC submission disabled
[ 61.580537] i915 0000:00:02.0: [drm] GuC SLPC disabled
[ 61.580970] nvme nvme0: 8/0/0 default/read/poll queues
[ 61.905786] mei_hdcp 0000:00:
[ 61.906125] OOM killer enabled.
[ 61.906128] Restarting tasks ...
[ 61.906449] mei_pxp 0000:00:
[ 61.922392] done.
[ 61.922431] random: crng reseeded on system resumption
[ 61.935746] thermal thermal_zone6: failed to read out thermal zone (-61)
[ 61.949978] PM: suspend exit