Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel stacktrace on Ubuntu LTS on poweroff #315

Open
sniku opened this issue Nov 9, 2022 · 0 comments
Open

Kernel stacktrace on Ubuntu LTS on poweroff #315

sniku opened this issue Nov 9, 2022 · 0 comments

Comments

@sniku
Copy link

sniku commented Nov 9, 2022

PCEngines firmware version

PC Engines apu6/apu6, BIOS v4.17.0.2 07/28/2022

APU variant

apu6b4, apu4d4 and possibly others

OS and OS Version

Ubuntu Server 22.04 LTS

Affected component(s), peripheral(s) or functionality

poweroff stacktraces

Brief summary

 ...
[  OK  ] Stopped Monitoring of LVM2… dmeventd or progress polling.
[  OK  ] Reached target System Shutdown.
[  OK  ] Reached target Late Shutdown Services.
[  OK  ] Finished System Power Off.                                                                                                      
[  OK  ] Reached target System Power Off.
[  197.557664] ------------[ cut here ]------------
[  197.562379] __dma_async_device_channel_unregister called while 2 clients hold a reference
[  197.570655] WARNING: CPU: 0 PID: 1 at drivers/dma/dmaengine.c:1110 __dma_async_device_channel_unregister+0xcf/0xe0
[  197.581060] Modules linked in: amd64_edac edac_mce_amd kvm_amd kvm fam15h_power k10temp ccp leds_gpio mac_hid sch_fq_codel dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua ipmi_devintf ipmi_msghandler msr drm ip_tables x_tables autofs4 btrfs blake2b_generic zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear crct10dif_pclmul sdhci_pci crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd cqhci igb cryptd sdhci ahci i2c_piix4 dca xhci_pci libahci xhci_pci_renesas i2c_algo_bit gpio_keys
[  197.632258] CPU: 0 PID: 1 Comm: shutdown Not tainted 5.15.0-52-generic #58-Ubuntu
[  197.639777] Hardware name: PC Engines apu6/apu6, BIOS v4.17.0.2 07/28/2022
[  197.646685] RIP: 0010:__dma_async_device_channel_unregister+0xcf/0xe0
[  197.653163] Code: 30 41 83 e5 01 0f 85 6e ff ff ff 41 8b 54 24 50 48 c7 c6 e0 cd eb a4 48 c7 c7 c8 8c 26 a5 c6 05 91 7d a3 01 01 e8 22 0e 54 00 <0f> 0b e9 48 ff ff ff e9 d4 1e 59 00 0f 1f 44 00 00 0f 1f 44 00 00
[  197.671976] RSP: 0018:ffffb08740023c20 EFLAGS: 00010282
[  197.677241] RAX: 0000000000000000 RBX: ffff9c7d03925970 RCX: ffffffffa5b7a608
[  197.684429] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000003
[  197.691589] RBP: ffffb08740023c38 R08: 0000000000000003 R09: 00000000000003df
[  197.698770] R10: 645f636e7973615f R11: 73615f616d645f5f R12: ffff9c7d09b978a8
[  197.705933] R13: 0000000000000000 R14: ffff9c7d03925028 R15: 0000000000000000
[  197.713104] FS:  00007f9c1ea32d40(0000) GS:ffff9c7d2ac00000(0000) knlGS:0000000000000000
[  197.721225] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  197.727017] CR2: 00007f9c1f7eab08 CR3: 000000011828e000 CR4: 00000000000406f0
[  197.734194] Call Trace:
[  197.736661]  <TASK>
[  197.738819]  dma_async_device_unregister+0x4b/0x100
[  197.743747]  ccp_dmaengine_unregister+0x2e/0xc0 [ccp]
[  197.748870]  ccp_destroy+0x18/0x260 [ccp]
[  197.752943]  ccp_dev_destroy+0x26/0x40 [ccp]
[  197.757291]  sp_destroy+0x1d/0x80 [ccp]
[  197.761194]  sp_pci_shutdown+0x1a/0x30 [ccp]
[  197.765538]  pci_device_shutdown+0x3a/0x80
[  197.769684]  device_shutdown+0x185/0x210
[  197.773682]  kernel_power_off+0x35/0x80
[  197.777562]  __do_sys_reboot+0x133/0x200
[  197.781552]  ? __rseq_handle_notify_resume+0x2d/0xc0
[  197.786552]  ? do_writev+0x75/0x120
[  197.790056]  ? exit_to_user_mode_prepare+0x37/0xb0
[  197.794884]  __x64_sys_reboot+0x1b/0x30
[  197.798759]  do_syscall_64+0x5c/0xc0
[  197.802370]  ? do_user_addr_fault+0x1e7/0x670
[  197.806776]  ? exit_to_user_mode_prepare+0x37/0xb0
[  197.811608]  ? syscall_exit_to_user_mode+0x27/0x50
[  197.816454]  ? __x64_sys_waitid+0x1f/0x30
[  197.820518]  ? do_syscall_64+0x69/0xc0
[  197.824306]  entry_SYSCALL_64_after_hwframe+0x61/0xcb
[  197.829402] RIP: 0033:0x7f9c1f3eebb7
[  197.833029] Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 89 fa be 69 19 12 28 bf ad de e1 fe b8 a9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 49 d2 0f 00 f7 d8 64 89 02 b8
[  197.851818] RSP: 002b:00007fff1546de08 EFLAGS: 00000202 ORIG_RAX: 00000000000000a9
[  197.859428] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9c1f3eebb7
[  197.866593] RDX: 000000004321fedc RSI: 0000000028121969 RDI: 00000000fee1dead
[  197.873755] RBP: 00007f9c1ea32be8 R08: 0000000000000000 R09: 00007fff1546d210
[  197.880937] R10: 00007f9c1ea32be8 R11: 0000000000000202 R12: 0000000000000004
[  197.888126] R13: 0000000000000000 R14: 0000000000000000 R15: 000055f9332a0133
[  197.895304]  </TASK>
[  197.897508] ---[ end trace ae6fd9d8adb0b471 ]---
[  197.906647] reboot: Power down

How reproducible

On every poweroff.

How to reproduce

Steps to reproduce the behavior:

  1. run sudo poweroff

Expected behavior

No stacktrace.

Actual behavior

Stacktrace

Screenshots

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant