All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Bainbridge <chris.bainbridge@gmail.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Mario Limonciello <superm1@kernel.org>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Linux PM <linux-pm@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Johan Hovold <johan@kernel.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	Jon Hunter <jonathanh@nvidia.com>,
	Saravana Kannan <saravanak@google.com>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3 2/5] PM: sleep: Suspend async parents after suspending children
Date: Tue, 3 Jun 2025 11:17:53 +0100	[thread overview]
Message-ID: <aD7L0RD4HT-mEtBc@debian.local> (raw)
In-Reply-To: <CAJZ5v0jDZQaR8S6Kn_RoXHBU86+tpjp=qgyxm5h03YEe2S=nPg@mail.gmail.com>

On Tue, Jun 03, 2025 at 11:38:37AM +0200, Rafael J. Wysocki wrote:
> 
> Chris, please check if the attached patch helps.  I'm going to post it
> as a fix anyway later today, but it would be good to verify that it is
> sufficient.

This did not fix my test case, pstore crash log was:

<6>[  100.690222] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
<6>[  100.690392] printk: Suspending console(s) (use no_console_suspend to debug)
<7>[  100.949462] PM: suspend of devices aborted after 1.796 msecs
<7>[  100.949469] PM: start suspend of devices aborted after 258.160 msecs
<3>[  100.949472] PM: Some devices failed to suspend, or early wake event detected
<4>[  100.949565]  slab kmalloc-cg-4k start ffff916fede97000 pointer offset 1936 size 4096
<3>[  100.949589] list_add corruption. prev->next should be next (ffffffff8f877180), but was ffff916f8ed40998. (prev=ffff916fede97790).
<4>[  100.949600] ------------[ cut here ]------------
<2>[  100.949601] kernel BUG at lib/list_debug.c:32!
<4>[  100.949607] Oops: invalid opcode: 0000 [#1] SMP
<4>[  100.949610] CPU: 13 UID: 0 PID: 3703 Comm: amd_s2idle.py.o Not tainted 6.15.0-09119-g98079dc6057f #438 PREEMPT(voluntary) 
<4>[  100.949613] Hardware name: HP HP Pavilion Aero Laptop 13-be0xxx/8916, BIOS F.17 12/18/2024
<4>[  100.949614] RIP: 0010:__list_add_valid_or_report+0x90/0xa0
<4>[  100.949619] Code: 98 8a ff 0f 0b 48 89 f7 48 89 34 24 e8 69 c6 c5 ff 48 8b 34 24 48 c7 c7 30 53 40 8f 48 8b 16 48 89 f1 48 89 de e8 50 98 8a ff <0f> 0b 90 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 41 54
<4>[  100.949621] RSP: 0018:ffffa0f6c715fb68 EFLAGS: 00010246
<4>[  100.949622] RAX: 0000000000000075 RBX: ffffffff8f877180 RCX: 0000000000000027
<4>[  100.949623] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff91724689e180
<4>[  100.949624] RBP: ffffffff8f876140 R08: 0000000000000001 R09: 0000000000000000
<4>[  100.949625] R10: 0000000000000001 R11: 0000000000000006 R12: 0000000000000010
Oops#1 Part3
<4>[  100.949626] R13: 000000177d0d8fb9 R14: ffff916fede97790 R15: ffff916f8e564820
<4>[  100.949627] FS:  00007f076a109100(0000) GS:ffff9172b67c7000(0000) knlGS:0000000000000000
<4>[  100.949628] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4>[  100.949629] CR2: 00007fa8ce10f61c CR3: 00000001b80bb000 CR4: 0000000000f50ef0
<4>[  100.949630] PKRU: 55555554
<4>[  100.949630] Call Trace:
<4>[  100.949631]  <TASK>
<4>[  100.949632]  dpm_resume+0x139/0x350
<4>[  100.949636]  dpm_resume_end+0x11/0x20
<4>[  100.949639]  suspend_devices_and_enter+0x18e/0x9f0
<4>[  100.949642]  pm_suspend.cold+0x273/0x2cf
<4>[  100.949645]  state_store+0x6c/0xd0
<4>[  100.949647]  kernfs_fop_write_iter+0x194/0x250
<4>[  100.949650]  vfs_write+0x254/0x550
<4>[  100.949654]  ksys_write+0x71/0xe0
<4>[  100.949656]  do_syscall_64+0x97/0x3d0
<4>[  100.949658]  ? __lock_acquire+0x469/0x2200
<4>[  100.949662]  ? __handle_mm_fault+0xaa7/0xf70
<4>[  100.949665]  ? lock_acquire+0xc9/0x2d0
<4>[  100.949667]  ? find_held_lock+0x2b/0x80
<4>[  100.949669]  ? rcu_read_unlock+0x17/0x60
<4>[  100.949672]  ? lock_release+0xd1/0x2a0
<4>[  100.949674]  ? find_held_lock+0x2b/0x80
<4>[  100.949676]  ? exc_page_fault+0x90/0x240
<4>[  100.949678]  ? lock_release+0xd1/0x2a0
<4>[  100.949681]  ? do_user_addr_fault+0x36e/0x690
<4>[  100.949684]  ? lockdep_hardirqs_on_prepare+0xd7/0x170
<4>[  100.949686]  entry_SYSCALL_64_after_hwframe+0x4b/0x53
<4>[  100.949688] RIP: 0033:0x7f076a199687
<4>[  100.949690] Code: 48 89 fa 4c 89 df e8 58 b3 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
Oops#1 Part2
<4>[  100.949691] RSP: 002b:00007ffd3a7a3990 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
<4>[  100.949693] RAX: ffffffffffffffda RBX: 00007f076a109100 RCX: 00007f076a199687
<4>[  100.949694] RDX: 0000000000000003 RSI: 0000000008d3e090 RDI: 0000000000000004
<4>[  100.949694] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
<4>[  100.949695] R10: 0000000000000000 R11: 0000000000000202 R12: 00007f076a109068
<4>[  100.949696] R13: 0000000000000004 R14: 0000000000a7e4f0 R15: 0000000000a50af8
<4>[  100.949700]  </TASK>
<4>[  100.949700] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables br_netfilter bridge stp llc ccm overlay qrtr rfcomm cmac algif_hash algif_skcipher af_alg bnep binfmt_misc ext4 mbcache jbd2 nls_ascii nls_cp437 vfat fat snd_acp3x_rn snd_soc_dmic snd_acp3x_pdm_dma snd_sof_amd_rembrandt snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_ctl_led snd_soc_core snd_compress snd_hda_codec_realtek iwlmvm snd_pci_ps snd_hda_codec_generic snd_soc_acpi_amd_match snd_hda_scodec_component snd_rpl_pci_acp6x snd_hda_codec_hdmi intel_rapl_msr uvcvideo snd_acp_pci mac80211 btusb snd_hda_intel intel_rapl_common videobuf2_vmalloc snd_amd_acpi_mach btrtl snd_intel_dspcfg videobuf2_memops libarc4 kvm_amd snd_acp_legacy_common btintel snd_hda_codec uvc videobuf2_v4l2 snd_hwdep snd_pci_acp6x btbcm kvm videodev snd_hda_core snd_pci_acp5x btmtk
Oops#1 Part1
<4>[  100.949738]  iwlwifi snd_rn_pci_acp3x videobuf2_common snd_pcm hp_wmi bluetooth irqbypass sg snd_acp_config mc snd_timer platform_profile rapl cfg80211 snd_soc_acpi pcspkr sparse_keymap snd wmi_bmof ee1004 snd_pci_acp3x soundcore k10temp ccp rfkill battery ac evdev joydev acpi_tad amd_pmc msr parport_pc ppdev lp parport nvme_fabrics efi_pstore configfs nfnetlink efivarfs ip_tables x_tables autofs4 crc32c_cryptoapi btrfs blake2b_generic xor raid6_pq dm_crypt dm_mod sd_mod uas usb_storage scsi_mod scsi_common amdgpu drm_client_lib i2c_algo_bit drm_ttm_helper ttm drm_panel_backlight_quirks drm_exec drm_suballoc_helper amdxcp drm_buddy gpu_sched hid_multitouch drm_display_helper hid_generic nvme xhci_pci drm_kms_helper ucsi_acpi sp5100_tco typec_ucsi ghash_clmulni_intel cec i2c_hid_acpi nvme_core xhci_hcd watchdog roles sha512_ssse3 rc_core amd_sfh i2c_hid nvme_keyring usbcore i2c_piix4 typec video aesni_intel serio_raw crc16 hid nvme_auth i2c_smbus fan usb_common drm button wmi
<4>[  100.949784] ---[ end trace 0000000000000000 ]---

  reply	other threads:[~2025-06-03 13:27 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-14 12:46 [PATCH v3 0/5] PM: sleep: Improvements of async suspend and resume of devices Rafael J. Wysocki
2025-03-14 12:50 ` [PATCH v3 1/5] PM: sleep: Resume children after resuming the parent Rafael J. Wysocki
2025-05-01  9:51   ` Jon Hunter
2025-05-02 20:33     ` Rafael J. Wysocki
2025-05-07 13:21       ` Jon Hunter
2025-05-07 13:39         ` Rafael J. Wysocki
2025-05-07 14:25           ` Rafael J. Wysocki
2025-05-07 14:39             ` Jon Hunter
2025-05-07 14:56               ` Rafael J. Wysocki
2025-05-07 15:39                 ` Jon Hunter
2025-05-07 16:43                   ` Rafael J. Wysocki
2025-05-08 13:38                     ` Jon Hunter
2025-05-08 18:06                       ` Rafael J. Wysocki
2025-05-10 11:39                   ` Rafael J. Wysocki
2025-05-10 11:50                     ` Jon Hunter
2025-07-11 13:08   ` Tudor Ambarus
2025-07-11 13:38     ` Rafael J. Wysocki
2025-07-11 13:54       ` Rafael J. Wysocki
2025-07-11 18:30         ` Saravana Kannan
2025-07-12  7:57           ` Rafael J. Wysocki
2025-07-12  7:54         ` Rafael J. Wysocki
2025-07-14  7:09           ` Tudor Ambarus
2025-07-14  7:29             ` Rafael J. Wysocki
2025-07-14 10:35               ` Tudor Ambarus
2025-07-14 12:14                 ` Tudor Ambarus
2025-03-14 13:13 ` [PATCH v3 2/5] PM: sleep: Suspend async parents after suspending children Rafael J. Wysocki
2025-06-02 12:11   ` Chris Bainbridge
2025-06-02 14:29     ` Rafael J. Wysocki
2025-06-02 15:21       ` Mario Limonciello
2025-06-02 19:58         ` Rafael J. Wysocki
2025-06-03  9:38           ` Rafael J. Wysocki
2025-06-03 10:17             ` Chris Bainbridge [this message]
2025-06-03 10:29               ` Rafael J. Wysocki
2025-06-03 10:30                 ` Rafael J. Wysocki
2025-06-03 11:37                   ` Rafael J. Wysocki
2025-06-03 11:39                     ` Rafael J. Wysocki
2025-06-03 12:14                       ` Chris Bainbridge
2025-06-03 12:23                         ` Rafael J. Wysocki
2025-06-03 12:26                           ` Chris Bainbridge
2025-06-03 13:04                             ` Rafael J. Wysocki
2025-06-03 13:36                               ` Chris Bainbridge
2025-06-03 13:59                                 ` Rafael J. Wysocki
2025-03-14 13:14 ` [PATCH v3 3/5] PM: sleep: Make suspend of devices more asynchronous Rafael J. Wysocki
2025-03-14 13:16 ` [PATCH v3 4/5] PM: sleep: Make async suspend handle suppliers like parents Rafael J. Wysocki
2025-03-14 13:17 ` [PATCH v3 5/5] PM: sleep: Make async resume handle consumers like children Rafael J. Wysocki
2025-03-14 21:06 ` [PATCH v3 0/5] PM: sleep: Improvements of async suspend and resume of devices Saravana Kannan
2025-03-15 14:57   ` Rafael J. Wysocki
2025-04-08 13:39     ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aD7L0RD4HT-mEtBc@debian.local \
    --to=chris.bainbridge@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=johan@kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=saravanak@google.com \
    --cc=stern@rowland.harvard.edu \
    --cc=superm1@kernel.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.