WARNING: CPU: 3 PID: 4101 at kernel/workqueue.c:3167 __flush_work.isra.0+0x25d/0x270
On the MSI MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.O6 07/13/2022, Linux 6.2-rc1+ prints the warning below during resume from suspend:
[ 134.033016] ------------[ cut here ]------------
[ 134.033018] WARNING: CPU: 3 PID: 4101 at kernel/workqueue.c:3167 __flush_work.isra.0+0x25d/0x270
[ 134.033025] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device sr_mod cdrom binfmt_misc intel_rapl_msr snd_hda_codec_realtek intel_rapl_common snd_hda_codec_generic ledtrig_audio crct10dif_pclmul crc32_pclmul snd_hda_codec_hdmi ghash_clmulni_intel usb_storage sha512_ssse3 sha512_generic r8169 rapl snd_hda_intel snd_intel_dspcfg snd_hda_codec realtek i2c_piix4 k10temp snd_hda_core snd_pcm 8250 snd_timer 8250_base snd serial_mctrl_gpio ccp soundcore serial_core tpm_crb tpm_tis sg tpm_tis_core tpm acpi_cpufreq loop fuse ipv6 autofs4 amdgpu i2c_algo_bit drm_ttm_helper ttm video drm_buddy crc32c_intel gpu_sched xhci_pci drm_display_helper xhci_hcd wmi
[ 134.033066] CPU: 3 PID: 4101 Comm: kworker/u8:19 Not tainted 6.2.0-10934-g88d72c418afb #426
[ 134.033069] Hardware name: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.O6 07/13/2022
[ 134.033071] Workqueue: events_unbound async_run_entry_fn
[ 134.033076] RIP: 0010:__flush_work.isra.0+0x25d/0x270
[ 134.033079] Code: 25 00 c2 02 00 48 89 44 24 40 8b 43 28 4c 8b 43 30 89 c1 e9 e5 fe ff ff 40 30 f6 4c 8b 36 e9 24 fe ff ff 0f 0b e9 03 ff ff ff <0f> 0b 45 31 ed e9 f9 fe ff ff e8 c4 1e 9f 00 0f 1f 40 00 90 90 90
[ 134.033081] RSP: 0018:ffffb0e241ca3ca0 EFLAGS: 00010246
[ 134.033083] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 134.033085] RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff977ffdee0340
[ 134.033086] RBP: ffff977ffdee0340 R08: 0000000000000000 R09: ffff977fff85ab68
[ 134.033087] R10: 000000000000000f R11: 000000000000000f R12: ffff977ffdee0340
[ 134.033088] R13: 0000000000000001 R14: ffffffffa2260371 R15: ffff977f8010cd05
[ 134.033089] FS: 0000000000000000(0000) GS:ffff97829f180000(0000) knlGS:0000000000000000
[ 134.033091] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 134.033092] CR2: 00005579d8008b96 CR3: 000000010748e000 CR4: 00000000003506e0
[ 134.033094] Call Trace:
[ 134.033096] <TASK>
[ 134.033100] ? preempt_schedule_thunk+0x16/0x20
[ 134.033106] __cancel_work_timer+0x103/0x190
[ 134.033108] ? __wait_for_common+0x1a7/0x1e0
[ 134.033113] ? __pfx_schedule_timeout+0x10/0x10
[ 134.033116] ? _raw_spin_unlock_irqrestore+0x1b/0x40
[ 134.033119] ? preempt_count_add+0x70/0xa0
[ 134.033122] ? __pfx_pci_pm_suspend+0x10/0x10
[ 134.033126] drm_kms_helper_poll_disable+0x1e/0x40
[ 134.033131] amdgpu_device_suspend+0xa0/0x190 [amdgpu]
[ 134.033367] ? __pfx_pci_pm_suspend+0x10/0x10
[ 134.033370] pci_pm_suspend+0x74/0x220
[ 134.033373] ? __pfx_pci_pm_suspend+0x10/0x10
[ 134.033375] dpm_run_callback+0x8b/0x1e0
[ 134.033379] __device_suspend+0x148/0x610
[ 134.033383] async_suspend+0x1a/0x70
[ 134.033386] async_run_entry_fn+0x30/0x130
[ 134.033389] process_one_work+0x1e5/0x3f0
[ 134.033394] worker_thread+0x50/0x3a0
[ 134.033397] ? __pfx_worker_thread+0x10/0x10
[ 134.033401] kthread+0xe7/0x110
[ 134.033404] ? __pfx_kthread+0x10/0x10
[ 134.033407] ret_from_fork+0x2c/0x50
[ 134.033411] </TASK>
[ 134.033412] ---[ end trace 0000000000000000 ]---